Category Archives: Spring Boot

Spring Boot Session Management using Redis

What is Session Management? Session management in Spring Boot refers to the process of managing user sessions in a web application. Sessions are used to maintain stateful information about the user’s interaction with the application across multiple requests. What is the purpose of Session Management? Following are the benefits of session management: How to do… Read More »

How to add STS plugin in Eclipse?

Spring Tool Suite (STS) is an integrated development environment (IDE) designed to facilitate the development of enterprise Java applications using the Spring framework. STS provides tools and features that streamline the development process, making it easier for developers to create, debug, and deploy Spring-based applications. In this tutorial, we will learn how we can add… Read More »

Spring Boot Scheduler – How to implement task scheduler in Spring Boot?

In Spring Boot, Job scheduler (Spring Boot Scheduler) is a feature that provides the facilities to automate the executions of tasks at specified interval. It is very useful in terms of running background jobs, periodic maintenance activity or any activity that needs to be performed. Spring Boot supports various scheduling strategies which allows us to… Read More »

Can JPA entity have a field not mapped to DB column?

JPA stands for Java Persistence API. It is a specification for managing relational databases in Java applications. JPA is a part of Java EE (Enterprise Edition), and it is used for persisting, retrieving and managing Java objects in a relational database. It provides facilities for developers to interact with the relational database using object-oriented programming… Read More »

What is Sonarlint? How to add Sonarlint in Eclipse?

Sonarlint by Sonar is a free extension for our development environments that covers all the most popular programming languages. Like spell checker, Sonarlint squiggles coding issues and performs on-the-fly analysis to detect common mistakes, tricky bugs, and security vulnerabilities. Along with this, it also teaches us clean coding practices. This way, it helps us spend… Read More »

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 applications. In this tutorial, we are going to use a Spring Batch… Read More »