接口的使用
org.springframework.web.reactive.result.view.View
使用View的程序包 程序包 说明 org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.reactive.result.view Support for result handling through view resolution.org.springframework.web.reactive.result.view.freemarker Support classes for the integration of FreeMarker as Spring web view technology.org.springframework.web.reactive.result.view.script Support classes for views based on the JSR-223 script engine abstraction (as included in Java 6+), e.g. using JavaScript via Nashorn on JDK 8.org.springframework.web.reactive.config中View的使用
返回变量类型为View的类型的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 protected List<View>
ViewResolverRegistry. getDefaultViews()
参数类型为View的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 void
ViewResolverRegistry. defaultViews(View... defaultViews)
Set default views associated with any view name and selected based on the best match for the requested content type.org.springframework.web.reactive.result.view中View的使用
实现View的org.springframework.web.reactive.result.view中的类 修饰符和类型 类 说明 class
AbstractUrlBasedView
Abstract base class for URL-based views.class
AbstractView
Base class forView
implementations.class
HttpMessageWriterView
View
that writes model attribute(s) with anHttpMessageWriter
.class
RedirectView
View that redirects to an absolute or context relative URL.返回View的org.springframework.web.reactive.result.view中的方法 修饰符和类型 方法 说明 protected View
UrlBasedViewResolver. applyLifecycleMethods(String viewName, AbstractUrlBasedView view)
Apply the containingApplicationContext
's lifecycle methods to the givenView
instance, if such a context is available.返回变量类型为View的类型的org.springframework.web.reactive.result.view中的方法 修饰符和类型 方法 说明 List<View>
ViewResolutionResultHandler. getDefaultViews()
Return the configured defaultView
's.reactor.core.publisher.Mono<View>
UrlBasedViewResolver. resolveViewName(String viewName, Locale locale)
reactor.core.publisher.Mono<View>
ViewResolver. resolveViewName(String viewName, Locale locale)
Resolve the view name to a View instance.类型变量类型为View的org.springframework.web.reactive.result.view中的方法参数 修饰符和类型 方法 说明 void
ViewResolutionResultHandler. setDefaultViews(List<View> defaultViews)
Set the default views to consider always when resolving view names and trying to satisfy the best matching content type.org.springframework.web.reactive.result.view.freemarker中View的使用
实现View的org.springframework.web.reactive.result.view.freemarker中的类 修饰符和类型 类 说明 class
FreeMarkerView
AView
implementation that uses the FreeMarker template engine.org.springframework.web.reactive.result.view.script中View的使用
实现View的org.springframework.web.reactive.result.view.script中的类 修饰符和类型 类 说明 class
ScriptTemplateView
AnAbstractUrlBasedView
subclass designed to run any template library based on a JSR-223 script engine.