接口的使用
org.springframework.web.method.support.HandlerMethodReturnValueHandler
使用HandlerMethodReturnValueHandler的程序包 程序包 说明 org.springframework.test.web.servlet.setup Contains built-inMockMvcBuilder
implementations.org.springframework.web.method.annotation Support classes for annotation-based handler method processing.org.springframework.web.method.support Generic support classes for handler method processing.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.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.test.web.servlet.setup中HandlerMethodReturnValueHandler的使用
参数类型为HandlerMethodReturnValueHandler的org.springframework.test.web.servlet.setup中的方法 修饰符和类型 方法 说明 StandaloneMockMvcBuilder
StandaloneMockMvcBuilder. setCustomReturnValueHandlers(HandlerMethodReturnValueHandler... handlers)
Provide custom handlers for controller method return values.org.springframework.web.method.annotation中HandlerMethodReturnValueHandler的使用
实现HandlerMethodReturnValueHandler的org.springframework.web.method.annotation中的类 修饰符和类型 类 说明 class
MapMethodProcessor
class
ModelAttributeMethodProcessor
Resolve@ModelAttribute
annotated method arguments and handle return values from@ModelAttribute
annotated methods.class
ModelMethodProcessor
org.springframework.web.method.support中HandlerMethodReturnValueHandler的使用
org.springframework.web.method.support中HandlerMethodReturnValueHandler的子接口 修饰符和类型 接口 说明 interface
AsyncHandlerMethodReturnValueHandler
A return value handler that supports async types.实现HandlerMethodReturnValueHandler的org.springframework.web.method.support中的类 修饰符和类型 类 说明 class
HandlerMethodReturnValueHandlerComposite
Handles method return values by delegating to a list of registeredHandlerMethodReturnValueHandlers
.返回变量类型为HandlerMethodReturnValueHandler的类型的org.springframework.web.method.support中的方法 修饰符和类型 方法 说明 List<HandlerMethodReturnValueHandler>
HandlerMethodReturnValueHandlerComposite. getHandlers()
Return a read-only list with the registered handlers, or an empty list.参数类型为HandlerMethodReturnValueHandler的org.springframework.web.method.support中的方法 修饰符和类型 方法 说明 HandlerMethodReturnValueHandlerComposite
HandlerMethodReturnValueHandlerComposite. addHandler(HandlerMethodReturnValueHandler handler)
Add the givenHandlerMethodReturnValueHandler
.类型变量类型为HandlerMethodReturnValueHandler的org.springframework.web.method.support中的方法参数 修饰符和类型 方法 说明