Spring

Spring Data JPA Introduction

Spring Data JPA Introduction | First let us see the difference between JDBC, JPA, Hibernate, and Spring Data JPA. Spring Data JPA:- Annotation:- Example of Using H2 Database Use the spring starter to create the project and add the following dependencies:- Spring Data JPA, Lombok, Spring Web, and H2 database. To work with the H2 […]

Spring Data JPA Introduction Read More »

Scheduling in Spring Boot

Scheduling in Spring Boot | Executing a task in a loop (multiple times), based on a period (or) point of time is called scheduling. Period of time: Time gapEx: 5 minutes, 6 hours, 3 days, 2 months, etc. Point of time: Exact Date and TimeEx: Mar 31st 9 AM, 12th JAN 6 PM, etc. Use

Scheduling in Spring Boot Read More »

Spring Boot Profiles

Spring Boot Profiles | Writing and Loading Properties File based on Environment, is called as Profiles. Profiles are used to load property files based on the environment. Define one properties file for one Environment. Environment:- A system/place where we can deploy and use our application. Dev Env, QA Env, UAT Env, Production Env,..etc. From one

Spring Boot Profiles Read More »

Banner in Spring Boot

Banner in Spring Boot | When we start any Spring Boot application one logo is printed at the console called Banner. This Banner setup and printing is done when we run the starter class. We can even customize our code ie OFF Banner, modify data, etc. Example to turn off the Banner (Modify starter class):-

Banner in Spring Boot Read More »

YAML in Spring Boot

YAML In Spring Boot | YAML stands for yet another markup language. It is a file (like text format) that stores data in the key-value format without any duplicate words/levels. But still, Java supports key-value pairs input using java.util.Properties. YAML is another format of writing properties. YAML file internally converted into Properties format using Snake

YAML in Spring Boot Read More »

Runners in Spring Boot

Runners in Spring Boot | Runners in Spring Boot are used to execute any logic only once when the application is getting started. They are used for setup/test purposes/batch processing. Usually, they are used in dev and testing environments. There are two types of Runners in Spring Boot:- Spring boot starter class (main class) will

Runners in Spring Boot Read More »