@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Component public @interface ControllerAdvice
Serves as a specialization of @Component, allowing for
implementation classes to be autodetected through classpath scanning.
It is typically used to define @ExceptionHandler,
@InitBinder, and @ModelAttribute
methods that apply to all @RequestMapping methods.