Home » Spring Boot

Tag Archives: Spring Boot

Containerizing Spring Boot Applications with Buildpacks

In this article, we will see how to containerize the Spring Boot applications with Buildpacks. In one of the previous articles, I discussed Jib. Jib allows us to build any Java application as the docker image without Dockerfile. Now, starting with Spring Boot 2.3, we can directly containerize the Spring Boot application as a Docker image as Buildpacks support is ...

Read More »

Spring boot custom banner generation

spring-interview-questions-answers

Whenever we start a Spring Boot application a text message shown below is displayed . This is called as a banner. Now, wouldn’t it be wonderful if we could create a custom banner which is specific to our Spring Boot application and use it instead of default Spring Boot banner. There are many ways to generate and use spring boot ...

Read More »

Spring Boot Port Change To Custom or New Port From Default

spring-interview-questions-answers

A quick guide to change the port for Spring Boot application. Examples to server.port property in application.properties file and yml file. And also from Command Line Arguments, @SpringBootApplication, WebServerFactoryCustomizer 1. Introduction In this tutorial, You’ll learn how to change the port in Spring Boot application. Spring Boot by default does many auto configurations and provides the ways to customize as ...

Read More »

Using Testcontainers in Spring Boot Tests For Database Integration Tests

spring-interview-questions-answers

In this blog post I’d like to demonstrate how I integrate Testcontainers in Spring Boot tests for running integration tests with a database. I’m not using Testcontainers’ Spring Boot modules. How it works with them, I will show in a separate blog post. All samples can be found on GitHub. Why Testcontainers? Testcontainers is a library that helps to integrate infrastructure ...

Read More »

Deep Learning with Spring Boot and DJL

spring-interview-questions-answers

Overview This is another post on Spring Boot that will show how to build a sample web application using Deep Java Library (DJL), an open-source Deep Learning library for Java to diagnose COVID-19 on X-ray images. The sample app is a Spring Boot based version of DJL’s similar COVID-19 example and it has a simple static HTML page built using Twitter Bootstrap and JQuery where users ...

Read More »

Packaging a React App with Spring Boot

1. Introduction This is an in-depth article related to building a react app with Spring Boot. Spring Boot framework has features related to creating web based applications. The framework has utilities and annotations to create REST based services. 2. Spring Boot – React App 2.1 Prerequisites Java 8 or 9 is required on the linux, windows or mac operating system. ...

Read More »

Spring Boot and Micrometer with Prometheus Part 5: Spinning up prometheus

spring-interview-questions-answers

Previously we got our Spring Boot Application adapter in order to expose the endpoints for prometheus.This blog will focus on setting up prometheus and configure it in order to server the Spring Boot Endpoints.So let’s get started by spinning up the prometheus server using docker. Before proceeding on spinning up prometheus we need to supply a configuration file to pull ...

Read More »