Category Archives: Spring Boot

Spring Batch 5 tutorial – Read from MySQL and Write to MongoDB

By | December 28, 2024

Spring Batch is an open-source framework and one of the core modules of Spring Framework. It is used to create a robust batch processing application that provides error handling, recovery mechanisms, easy scalability, and parallel processing of large volumes of data in Java enterprise applications (J2EE). In this tutorial, we are going to use a… Read More: Spring Batch 5 tutorial – Read from MySQL and Write… »

How to make YAML to Java object

By | June 17, 2025

YAML stands for YAML Ain’t Markup Language also know as Yet Another Markup Language, It is a popular configuration format used to define application properties and settings in a more human-readable manner. It is an alternative to the traditional properties file format (.properties), commonly used in Java applications. In this tutorial, we will learn to… Read More: How to make YAML to Java object »

How to configure multiple database in Spring Boot

By | June 18, 2025

In Enterprise applications, we may be required to have multiple databases for storing different kinds of information. For example, in an e-commerce application, it may be required to keep the user’s information in a different database, product-related information in a different database, and payment-related information in a separate database. In this tutorial, we will configure… Read More: How to configure multiple database in Spring Boot »

Spring Profile – How to configure different environments in Spring Boot?

By | November 5, 2024

Spring Boot Profile Spring profile is a feature of the Spring framework that allows us to map a part of our application or the complete application to different profiles. i.e., environments (dev, uat or prod). Any @Component or the @Configurations of an application can be marked with the @Profile annotation to limit its scope to… Read More: Spring Profile – How to configure different environments in Spring… »

Spring Boot MongoDB CRUD Example

By | June 17, 2025

CRUD stands for Create, Read, Update, and Delete. The CRUD Operations are the four basic operations that are performed by the software application on the persistence layer. Software applications perform CRUD operations through the use of the Hyper-Text Transfer Protocol (HTTP). These HTTP protocols have methods that are used to create, read, update, or delete… Read More: Spring Boot MongoDB CRUD Example »

How to create a Spring Boot project in Eclipse IDE using Maven?

By | April 1, 2023

Spring Boot is built on the top of Spring framework which means it supports all the features of Spring framework. Spring Boot makes it easy to create standalone, production-grade spring based application that you can “Just Run”. As the standard definition says, Spring Boot provides a production-ready environment, which enables developers to focus more on… Read More: How to create a Spring Boot project in Eclipse IDE… »

Bean Validation – How to validate data using Bean Validation?

By | June 19, 2025

The Bean Validation API is used for the validation of constraints on an object model using annotations. It can be very useful for validating the length, format, regular expressions, etc. of an object model. By default, bean validation is a Java specification; we need to explicitly provide its implementation. Basics of Bean Validation API In… Read More: Bean Validation – How to validate data using Bean Validation? »

How to map Entity to DTO using ModelMapper?

By | June 18, 2025

The ModelMapper is a library that is used for converting/mapping two similar object models to each other in a simple and easy way. It is used when the two models have similar data, but their structures and use cases are different. ModelMapper allows us to convert one model to another without affecting the original object… Read More: How to map Entity to DTO using ModelMapper? »