org.springframework.web.bind.annotation

## Annotation Type ControllerAdvice

    @Target(value=TYPE)
    @Retention(value=RUNTIME)
    @Documented
    @Component
    public @interface ControllerAdvice

Indicates the annotated class assists a "Controller".

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.

Since:
  3.2
Author:
  Rossen Stoyanchev