接口的使用
org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
使用RequestBodyAdvice的程序包 程序包 说明 org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.mvc.method.annotation中RequestBodyAdvice的使用
实现RequestBodyAdvice的org.springframework.web.servlet.mvc.method.annotation中的类 修饰符和类型 类 说明 class
JsonViewRequestBodyAdvice
ARequestBodyAdvice
implementation that adds support for Jackson's@JsonView
annotation declared on a Spring MVC@HttpEntity
or@RequestBody
method parameter.class
RequestBodyAdviceAdapter
A convenient starting point for implementingResponseBodyAdvice
with default method implementations.类型变量类型为RequestBodyAdvice的org.springframework.web.servlet.mvc.method.annotation中的方法参数 修饰符和类型 方法 说明 void
RequestMappingHandlerAdapter. setRequestBodyAdvice(List<RequestBodyAdvice> requestBodyAdvice)
Add one or moreRequestBodyAdvice
instances to intercept the request before it is read and converted for@RequestBody
andHttpEntity
method arguments.