# Uses of Interface
org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice

Packages that use ResponseBodyAdvice
Package
Description
org.springframework.web.servlet.mvc.method.annotation
MVC infrastructure for annotation-based handler method processing, building on the `org.springframework.web.method.annotation` package.

## Uses of ResponseBodyAdvice in org.springframework.web.servlet.mvc.method.annotation

Classes in org.springframework.web.servlet.mvc.method.annotation that implement ResponseBodyAdvice
Modifier and Type
Class
Description
`class`
`AbstractMappingJacksonResponseBodyAdvice`
A convenient base class for `ResponseBodyAdvice` implementations that customize the response before JSON serialization with `AbstractJackson2HttpMessageConverter`'s concrete subclasses.
`class`
`JsonViewResponseBodyAdvice`
A `ResponseBodyAdvice` implementation that adds support for Jackson's `@JsonView` annotation declared on a Spring MVC `@RequestMapping` or `@ExceptionHandler` method.
Method parameters in org.springframework.web.servlet.mvc.method.annotation with type arguments of type ResponseBodyAdvice
Modifier and Type
Method
Description
`void`
ExceptionHandlerExceptionResolver.`setResponseBodyAdvice(List<ResponseBodyAdvice<?>> responseBodyAdvice)`
Add one or more components to be invoked after the execution of a controller method annotated with `@ResponseBody` or returning `ResponseEntity` but before the body is written to the response with the selected `HttpMessageConverter`.
`void`
RequestMappingHandlerAdapter.`setResponseBodyAdvice(List<ResponseBodyAdvice<?>> responseBodyAdvice)`
Add one or more `ResponseBodyAdvice` instances to intercept the response before `@ResponseBody` or `ResponseEntity` return values are written to the response body.