@ExceptionHandler and @ControllerAdvice both annotations are used in Exception handling in SpringBoot. SpringBoot Makes the exception handling easily. @ControllerAdvice: It is an Informer to Spring
Tag: Spring Boot
If we define the annotation @SpringBootApplication, the compiler marks the main class as Spring Boot Configuration Class and does all auto configurations and other related