Spring Boot
Filter vs Inerceptor in Spring
TL;DR Aspect Servlet Filter Spring MVC Interceptor Layer Servlet container (before DispatcherServlet) Spring MVC (around handler/controller) Typical uses CORS, security pre-checks, logging, request/response wrapping, compression Auth/ACL per handler, auditing with...
Filter vs Inerceptor in Spring
TL;DR Aspect Servlet Filter Spring MVC Interceptor Layer Servlet container (before DispatcherServlet) Spring MVC (around handler/controller) Typical uses CORS, security pre-checks, logging, request/response wrapping, compression Auth/ACL per handler, auditing with...
@SpringBootApplication Annotation
It’s a convenience meta-annotation that combines three core Spring annotations: @SpringBootConfiguration → specialization of @Configuration (declares bean definitions). @EnableAutoConfiguration → turns on auto-configuration (wires beans based on classpath, properties, and conditions)....
@SpringBootApplication Annotation
It’s a convenience meta-annotation that combines three core Spring annotations: @SpringBootConfiguration → specialization of @Configuration (declares bean definitions). @EnableAutoConfiguration → turns on auto-configuration (wires beans based on classpath, properties, and conditions)....
Reactive Programming with Spring Boot
🔹 What is Reactive Programming? Reactive Programming is an asynchronous, non-blocking programming paradigm built around the idea of data streams and event-driven systems. Instead of executing tasks sequentially and blocking...
Reactive Programming with Spring Boot
🔹 What is Reactive Programming? Reactive Programming is an asynchronous, non-blocking programming paradigm built around the idea of data streams and event-driven systems. Instead of executing tasks sequentially and blocking...
Path variable vs Query Parameters in Spring Boot
Big idea Path Variable: part of the resource’s identity./users/{id} → “that specific user”. Query Param: filters/tweaks how you retrieve a resource (search, sort, paginate, flags)./users?role=ADMIN&page=2&size=20. TL;DR table Aspect Path Variable...
Path variable vs Query Parameters in Spring Boot
Big idea Path Variable: part of the resource’s identity./users/{id} → “that specific user”. Query Param: filters/tweaks how you retrieve a resource (search, sort, paginate, flags)./users?role=ADMIN&page=2&size=20. TL;DR table Aspect Path Variable...
Global Exceptions Handling in Spring Boot
In Spring Boot, a global exception handling mechanism allows you to catch and handle exceptions across the whole application in one central place — rather than duplicating try-catch logic everywhere....
Global Exceptions Handling in Spring Boot
In Spring Boot, a global exception handling mechanism allows you to catch and handle exceptions across the whole application in one central place — rather than duplicating try-catch logic everywhere....
What is @Qualifier?
1. What is @Qualifier? @Qualifier is an annotation in Spring used to resolve ambiguity when multiple beans of the same type exist in the Spring ApplicationContext. It tells Spring: "If...
What is @Qualifier?
1. What is @Qualifier? @Qualifier is an annotation in Spring used to resolve ambiguity when multiple beans of the same type exist in the Spring ApplicationContext. It tells Spring: "If...