Home » Spring Boot

Tag Archives: Spring Boot

Things that make Spring boot Awesome!

spring-interview-questions-answers

For every Java developer Hibernate, Spring are everyday terms. Although recently there was an addition to this list of ‘Spring-boot’. Nowadays Spring Boot is one of the most used open source frameworks. Hence if you are a java developer you must know about spring boot. In this tutorial we will cover srping boot features in detials. Spring-boot can be used ...

Read More »

Developing a Simple Service with Spring Boot

spring-interview-questions-answers

In this post, I will demonstrate how to create a simple web service using Spring Boot.  This framework makes it almost effortless to develop web services, so long as the appropriate dependencies are in-place.  In this example, I will create a web service that will read the current temperature from a file and make it available to clients via a ...

Read More »

Spring boot data JPA – Query for nested object

spring-interview-questions-answers

Nowadays spring boot and spring data are widely used frameworks. If you are building web application in java, spring boot is the first choice. If you have Database then spring data JPA is best choice. In spring boot spring data is the default implementation for database interaction. Spring boot using spring data JPA even creates nested object query from method ...

Read More »

Spring Boot Data JPA – beginner guide

spring-interview-questions-answers

Databases form an integral part of computer applications. With it comes considerable amount of database operations and the corresponding code. For huge applications which have large number of tables/entities, these operations or the code is repeated and duplicated to a large extent. Eventually a programmer would like to reduce this duplicate code. Spring framework took up the challenge and provided ...

Read More »

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 »