Spring Boot – How to load initial data on startup
In Spring Boot, we can load the initial data into the database while startup the application. It is a powerful feature while we are working with different environments.…
Press Esc to close
Archive
In Spring Boot, we can load the initial data into the database while startup the application. It is a powerful feature while we are working with different environments.…
In this tutorial, we are going to see the Spring Boot PostgreSQL DB CRUD example application. Versions: Spring Boot 2.5.0 Java 14 PostgreSQL 13.3 Spring JPA 2.5.2 Spring…
There are multiple ways to configure Spring profile in tomcat. Let's see here. How to Configure Spring Profile in Tomcat: If you are running the application in your…
Here we will see how to fix BeanDefinitionOverrideException. How to fix BeanDefinitionOverrideException: Problem: You may get the BeanDefinitionOverrideException exception while running the test cases, when you update the…
Here we will see how to enable swagger in spring boot application. Technologies: Spring Boot Starter 2.2.5 Swagger 2.7.0 Swagger UI 2.7.0 Gradle Enable Swagger in Spring Boot:…
In this tutorial, we are going to see how to implement Spring Boot Soap Webservices with a simple use case. SOAP WebServices: SOAP stands for Simple Object Access…
In this tutorial, we are going to see how to implement a Spring Boot RabbitMQ Consumer Messages example. Spring Boot RabbitMQ Consumer Messages: In the previous tutorial, we…
In this tutorial, we are going to see an example for Spring Boot RabbitMQ Message Publishing. Spring Boot RabbitMQ Message Publishing: As part of this example, we will…
In this tutorial, we are going to see How to Enable Spring Boot CORS example. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at…
In this tutorial, we are going to see an essential crud operation on Spring Boot DataRest Example. Spring Boot DataRest: Spring Boot DataRest build on top of the…
In this tutorial, we are going to see how to work with Spring Boot Redis Cache using Redis Server as backend. Spring Boot Redis Cache: In our previous…
In this tutorial, we are going to see how to enable Spring Boot Lazy Loading of beans while running the application. What is Spring Boot Lazy Loading: Spring…
This tutorial helps you to understand how to consume Kafka JSON messages from spring boot application. Spring Boot Kafka Consume JSON Messages: As part of this example, I…
Here we will see how to send Spring Boot Kafka JSON Message to Kafka Topic using Kafka Template. Spring Boot Kafka JSON Message: We can publish the JSON…
In this tutorial, we are going to see how to publish Kafka messages with Spring Boot Kafka Producer. Spring Boot Kafka Producer: As part of this example, we…
Here I am going to show a simple Spring Boot Batch example, which will read data from csv file and write into a database using JdbcTemplate. Spring Boot…
In this tutorials, we are going to see a Step by Step Spring Boot Docker deployment process. Spring Boot Docker Deployment: Here I am going to create a…
In this tutorial, we are going to write JUnit test cases for the Spring Boot controller. Spring MVC test framework provides MockMvc class to test the controllers by…
In this tutorials, we are going to see how to enable Spring Boot HTTPs connection. Spring Boot Https: Enabling HTTPs (SSL) for Spring Boot application on embedded Tomcat…
Here I am going to show how to check database health using Spring boot actuator health endpoint. Spring Boot Actuator Database Health Check: Include the spring boot actuator…