Category Archives: Spring Boot

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

By | February 4, 2024

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 »

Webhooks vs API | What is Webhooks?

By | June 18, 2025

Webhooks are a way in which two applications communicate with each other in real-time by sending event-driven HTTP callbacks. Webhooks are event-driven HTTP callbacks meaning that if any specific event occurs in one application it triggers a request to a predefined URL in another application. Webhooks Example Let’s understand webhooks with an example of a… Read More »

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

By | January 1, 2024

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?

By | November 3, 2024

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?

By | June 17, 2025

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 »

Lombok is not generating Getter and Setter?

By | December 28, 2024

Lombok is a popular Java library that simplifies Java application development by reducing boilerplate code and making our codebase clean and easy to understand. It is an annotation-based library that provides several annotations to be used in Java classes to automatically generate the biolerplate codes for getters, setters, constructors, etc. These annotations are processed at… Read More »

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 »

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 »