SPRING CORE / NOTES</>↗Spring Core09 Jul 2025
A BeanFactoryPostProcessor is a special type of bean in Spring that allows you to modify the application context’s internal bean definitions before they are instantiated. To write and register a custom BeanFactoryPostProcessor, you can follow these steps: Step 1: Implement the BeanFactoryPostProcessor Interface You need to create a class that implements the BeanFactoryPostProcessor interface. This […]
SPRING BOOT / NOTES</>↗Spring Boot08 Jul 2025
In Spring Boot, both application.properties and application.yml are configuration files used to define application settings, but they differ mainly in syntax and structure. Here’s a detailed comparison to help you understand their essentials: 1. File Format application.properties: A key-value pair format, where each property is defined on a new line. A simple and widely used […]
SPRING CORE / NOTES</>↗Spring Core07 Jul 2025
In the Spring Framework, a custom BeanPostProcessor can be implemented to apply custom logic before and after initialization of each bean in the application context. This is primarily useful for scenarios where you need to modify bean instances, validate configurations, or apply custom processing during the initialization phase of a bean’s lifecycle. Here’s how you […]
SPRING BOOT / NOTES</>↗Spring Boot06 Jul 2025
Spring Boot DevTools is a valuable tool for speeding up the development process by enabling features like automatic application restart and live reload of web content. It is specifically designed to improve the development experience by reducing the time required to restart the application during testing and debugging. Here is a quick guide to using […]
SPRING CORE / NOTES</>↗Spring Core05 Jul 2025
Circular dependencies in Spring occur when two or more beans depend on each other, forming a cycle. For example, if BeanA depends on BeanB, and BeanB needs BeanA, a circular dependency is formed. Here are several ways to resolve such issues: 1. Using @Lazy Annotation Spring allows injecting dependencies lazily. The @Lazy annotation delays the […]
SPRING BOOT / NOTES</>↗Spring Boot04 Jul 2025
Creating a simple REST API using Spring Boot can be a smooth process, and it is entirely possible to get it done in under 10 minutes. Here’s a step-by-step guide to building your first REST API: 1. Setup Your Spring Boot Project Go to Spring Initializr. Configure the project: Project: Maven. Language: Java. Spring Boot […]