类 DelegatingWebFluxConfiguration
- java.lang.Object
- org.springframework.web.reactive.config.WebFluxConfigurationSupport
- org.springframework.web.reactive.config.DelegatingWebFluxConfiguration
- 所有已实现的接口:
Aware
,ApplicationContextAware
@Configuration(proxyBeanMethods=false) public class DelegatingWebFluxConfiguration extends WebFluxConfigurationSupport
A subclass ofWebFluxConfigurationSupport
that detects and delegates to all beans of typeWebFluxConfigurer
allowing them to customize the configuration provided byWebFluxConfigurationSupport
. This is the class actually imported by@EnableWebFlux
.- 从以下版本开始:
- 5.0
- 作者:
- Brian Clozel
构造器概要
构造器 构造器 说明 DelegatingWebFluxConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
addCorsMappings(CorsRegistry registry)
Override this method to configure cross origin requests processing.protected void
addFormatters(FormatterRegistry registry)
Override this method to add customConverter
and/orFormatter
delegates to the commonFormattingConversionService
.protected void
addResourceHandlers(ResourceHandlerRegistry registry)
Override this method to add resource handlers for serving static resources.protected void
configureArgumentResolvers(ArgumentResolverConfigurer configurer)
Configure resolvers for custom controller method arguments.protected void
configureContentTypeResolver(RequestedContentTypeResolverBuilder builder)
Override to configure how the requested content type is resolved.protected void
configureHttpMessageCodecs(ServerCodecConfigurer configurer)
Override to configure the HTTP message readers and writers to use.void
configurePathMatching(PathMatchConfigurer configurer)
Override to configure path matching options.protected void
configureViewResolvers(ViewResolverRegistry registry)
Configure view resolution for supporting template engines.protected MessageCodesResolver
getMessageCodesResolver()
Override this method to provide a customMessageCodesResolver
.protected Validator
getValidator()
Override this method to provide a customValidator
.void
setConfigurers(List<WebFluxConfigurer> configurers)
从类继承的方法 org.springframework.web.reactive.config.WebFluxConfigurationSupport
createLocaleContextResolver, createRequestMappingHandlerAdapter, createRequestMappingHandlerMapping, createRouterFunctionMapping, getApplicationContext, getConfigurableWebBindingInitializer, getCorsConfigurations, getPathMatchConfigurer, getViewResolverRegistry, handlerFunctionAdapter, localeContextResolver, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, resourceUrlProvider, responseBodyResultHandler, responseEntityResultHandler, responseStatusExceptionHandler, routerFunctionMapping, serverCodecConfigurer, serverResponseResultHandler, setApplicationContext, simpleHandlerAdapter, viewResolutionResultHandler, webFluxAdapterRegistry, webFluxContentTypeResolver, webFluxConversionService, webFluxValidator, webHandler
构造器详细资料
DelegatingWebFluxConfiguration
public DelegatingWebFluxConfiguration()
方法详细资料
setConfigurers
@Autowired(required=false) public void setConfigurers(List<WebFluxConfigurer> configurers)
configureContentTypeResolver
protected void configureContentTypeResolver(RequestedContentTypeResolverBuilder builder)
从类复制的说明:WebFluxConfigurationSupport
Override to configure how the requested content type is resolved.
addCorsMappings
protected void addCorsMappings(CorsRegistry registry)
从类复制的说明:WebFluxConfigurationSupport
Override this method to configure cross origin requests processing.
configurePathMatching
public void configurePathMatching(PathMatchConfigurer configurer)
从类复制的说明:WebFluxConfigurationSupport
Override to configure path matching options.
addResourceHandlers
protected void addResourceHandlers(ResourceHandlerRegistry registry)
从类复制的说明:WebFluxConfigurationSupport
Override this method to add resource handlers for serving static resources.
configureArgumentResolvers
protected void configureArgumentResolvers(ArgumentResolverConfigurer configurer)
从类复制的说明:WebFluxConfigurationSupport
Configure resolvers for custom controller method arguments.
configureHttpMessageCodecs
protected void configureHttpMessageCodecs(ServerCodecConfigurer configurer)
从类复制的说明:WebFluxConfigurationSupport
Override to configure the HTTP message readers and writers to use.
addFormatters
protected void addFormatters(FormatterRegistry registry)
从类复制的说明:WebFluxConfigurationSupport
Override this method to add customConverter
and/orFormatter
delegates to the commonFormattingConversionService
.
getValidator
protected Validator getValidator()
从类复制的说明:WebFluxConfigurationSupport
Override this method to provide a customValidator
.
getMessageCodesResolver
protected MessageCodesResolver getMessageCodesResolver()
从类复制的说明:WebFluxConfigurationSupport
Override this method to provide a customMessageCodesResolver
.
configureViewResolvers
protected void configureViewResolvers(ViewResolverRegistry registry)
从类复制的说明:WebFluxConfigurationSupport
Configure view resolution for supporting template engines.