Author Archives: paulsofts

Immutable object in Java- How to create immutable object in Java?

By | June 18, 2025

In Java, immutable objects are objects whose state cannot be changed once they are created; they will remain constant throughout the lifecycle of the object. It helps in terms of simplicity, thread-safety and security. For example, string objects, In Java, string objects are immutable. i.e., once they are initialized, they cannot be changed. To learn… 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 »

What is Swagger in Spring Boot | How to add Swagger in Spring Boot?

By | June 18, 2025

What is Swagger? Swagger, now known as OpenAPI Specification, is a tool that provides a set of rules and conventions for building, interacting with, and documenting APIs (application-programmable interfaces). It provides a standard to describe the robust APIs, which makes it easier for developers to understand the capabilities of a service without accessing its source… 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 »

How to Dockerize Spring Boot application with MySQL

By | June 26, 2025

The term Dockerize refers to the process of packaging an application and its dependencies into containers using Docker. Docker is an open-source platform that helps developers automate the deployment of applications into lightweight and portable containers that contain everything needed to run the application, including the source code, libraries, and system tools. In this tutorial,… Read More »

How to Dockerize Spring Boot application with MongoDB?

By | June 17, 2025

Docker is a platform that is used for developing, shipping and running applications inside containers. The containers are lightweight and portable units that package the application and its dependencies, enabling them to run consistently across different environments (DEV, SIT, and PROD) as well as on different systems. In this tutorial, we will learn how to… 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 »