# Uses of Annotation Interface
org.springframework.web.bind.annotation.ControllerAdvice

Packages that use ControllerAdvice
Package
Description
org.springframework.web.bind.annotation
Annotations for binding requests to controllers and handler methods as well as for binding request parameters to method arguments.
org.springframework.web.method
Common infrastructure for handler method processing, as used by Spring MVC's `org.springframework.web.servlet.mvc.method` package.

## Uses of ControllerAdvice in org.springframework.web.bind.annotation

Classes in org.springframework.web.bind.annotation with annotations of type ControllerAdvice
Modifier and Type
Class
Description
`@interface`
`RestControllerAdvice`
A shortcut annotation that combines `@ControllerAdvice` with `@ResponseBody`, in effect simply an `@ControllerAdvice` whose exception handler methods render to the response body.

## Uses of ControllerAdvice in org.springframework.web.method

Constructors in org.springframework.web.method with parameters of type ControllerAdvice
Modifier
Constructor
Description
``
`ControllerAdviceBean(String beanName, org.springframework.beans.factory.BeanFactory beanFactory, ControllerAdvice controllerAdvice)`
Create a `ControllerAdviceBean` using the given bean name, `BeanFactory`, and `@ControllerAdvice` annotation.