Category Archives: Spring Boot

How to inject Collection name in @Document from properties file in Spring Boot?

Sometimes in enterprise applications, we are required to configure the collection name from the properties file to our entity (model) class instead of hardcoding the collection name. In this tutorial, we will learn to inject Collection name in @Document from properties file. Steps to inject Collection name in @Document from properties file We are using… Read More »

How to convert Java Object to YAML file?

YAML stands for YAML Ain’t Markup Language is also known as Yet Another Markup Language. It is generally used for configuration files and the data exchange between languages with different data structures. Given below is an example of a YAML file representing information about a website: Java Object to YAML file In this tutorial, we are… Read More »

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

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 »

How to make YAML to Java object

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 configure multiple database in Spring Boot

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 package Spring Boot application to JAR

JAR stands for Java ARchive. The jar file represents a group of .class files. It is a file format that is based on the ZIP format. It is used to archive .class files, audio files, image files, and directories into a single jar file, which is further used to distribute the application or libraries over… Read More »

Spring Boot MongoDB CRUD Example

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 »

How to create a RestFul APIs in Spring Boot | Category API

RestFul APIs RestFul APIs are the interface that two computer systems use to communicate and exchange data over the internet using HTTPS ports. The APIs that follow the REST architecture design paradigm are called Rest APIs. In this article, we will create a category API for our blog application. To learn more about the Category… Read More »