接口的使用
org.springframework.web.reactive.HandlerResultHandler
使用HandlerResultHandler的程序包 程序包 说明 org.springframework.web.reactive.function.server.support Classes supporting theorg.springframework.web.reactive.function.server
package.org.springframework.web.reactive.result.method.annotation Infrastructure for annotation-based handler method processing.org.springframework.web.reactive.result.view Support for result handling through view resolution.org.springframework.web.reactive.function.server.support中HandlerResultHandler的使用
实现HandlerResultHandler的org.springframework.web.reactive.function.server.support中的类 修饰符和类型 类 说明 class
ServerResponseResultHandler
HandlerResultHandler
implementation that supportsServerResponses
.org.springframework.web.reactive.result.method.annotation中HandlerResultHandler的使用
实现HandlerResultHandler的org.springframework.web.reactive.result.method.annotation中的类 修饰符和类型 类 说明 class
ResponseBodyResultHandler
HandlerResultHandler
that handles return values from methods annotated with@ResponseBody
writing to the body of the request or response with anHttpMessageWriter
.class
ResponseEntityResultHandler
HandlesHttpEntity
andResponseEntity
return values.org.springframework.web.reactive.result.view中HandlerResultHandler的使用
实现HandlerResultHandler的org.springframework.web.reactive.result.view中的类 修饰符和类型 类 说明 class
ViewResolutionResultHandler
HandlerResultHandler
that encapsulates the view resolution algorithm supporting the following return types:Void
or no value -- default view nameString
-- view name unless@ModelAttribute
-annotatedView
-- View to render withModel
-- attributes to add to the modelMap
-- attributes to add to the modelRendering
-- use case driven API for view resolution@ModelAttribute
-- attribute for the model Non-simple value -- attribute for the model