接口的使用
org.springframework.web.reactive.HandlerResultHandler
使用HandlerResultHandler的程序包 程序包 说明 org.springframework.web.reactive.function.server.support Classes supporting theorg.springframework.web.reactive.function.serverpackage.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中的类 修饰符和类型 类 说明 classServerResponseResultHandlerHandlerResultHandlerimplementation that supportsServerResponses.org.springframework.web.reactive.result.method.annotation中HandlerResultHandler的使用
实现HandlerResultHandler的org.springframework.web.reactive.result.method.annotation中的类 修饰符和类型 类 说明 classResponseBodyResultHandlerHandlerResultHandlerthat handles return values from methods annotated with@ResponseBodywriting to the body of the request or response with anHttpMessageWriter.classResponseEntityResultHandlerHandlesHttpEntityandResponseEntityreturn values.org.springframework.web.reactive.result.view中HandlerResultHandler的使用
实现HandlerResultHandler的org.springframework.web.reactive.result.view中的类 修饰符和类型 类 说明 classViewResolutionResultHandlerHandlerResultHandlerthat encapsulates the view resolution algorithm supporting the following return types:Voidor 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