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 theorg.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 forResponseBodyAdvice
implementations that customize the response before JSON serialization withAbstractJackson2HttpMessageConverter
's concrete subclasses.class
JsonViewResponseBodyAdvice
AResponseBodyAdvice
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 returningResponseEntity
but before the body is written to the response with the selectedHttpMessageConverter
.void
RequestMappingHandlerAdapter. setResponseBodyAdvice(List<ResponseBodyAdvice<?>> responseBodyAdvice)
Add one or moreResponseBodyAdvice
instances to intercept the response before@ResponseBody
orResponseEntity
return values are written to the response body.