Uses of Interface
org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice
Package
Description
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
Modifier and TypeClassDescriptionclass
A convenient base class forResponseBodyAdvice
implementations that customize the response before JSON serialization withAbstractJackson2HttpMessageConverter
's concrete subclasses.class
AResponseBodyAdvice
implementation that adds support for Jackson's@JsonView
annotation declared on a Spring MVC@RequestMapping
or@ExceptionHandler
method.Modifier and TypeMethodDescriptionvoid
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.