类 WebFluxConfigurerComposite
- java.lang.Object
- org.springframework.web.reactive.config.WebFluxConfigurerComposite
- 所有已实现的接口:
WebFluxConfigurer
public class WebFluxConfigurerComposite extends Object implements WebFluxConfigurer
AWebFluxConfigurer
that delegates to one or more others.- 从以下版本开始:
- 5.0
- 作者:
- Brian Clozel, Rossen Stoyanchev
构造器概要
构造器 构造器 说明 WebFluxConfigurerComposite()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addCorsMappings(CorsRegistry registry)
Configure "global" cross origin request processing.void
addFormatters(FormatterRegistry registry)
Add customConverters
andFormatters
for performing type conversion and formatting of annotated controller method arguments.void
addResourceHandlers(ResourceHandlerRegistry registry)
Add resource handlers for serving static resources.void
addWebFluxConfigurers(List<WebFluxConfigurer> configurers)
void
configureArgumentResolvers(ArgumentResolverConfigurer configurer)
Configure resolvers for custom@RequestMapping
method arguments.void
configureContentTypeResolver(RequestedContentTypeResolverBuilder builder)
Configure how the content type requested for the response is resolved when handling requests with annotated controllers.void
configureHttpMessageCodecs(ServerCodecConfigurer configurer)
Configure custom HTTP message readers and writers or override built-in ones.void
configurePathMatching(PathMatchConfigurer configurer)
Configure path matching options.void
configureViewResolvers(ViewResolverRegistry registry)
Configure view resolution for rendering responses with a view and a model, where the view is typically an HTML template but could also be based on an HTTP message writer (e.g.MessageCodesResolver
getMessageCodesResolver()
Provide a customMessageCodesResolver
to use for data binding in annotated controller method arguments instead of the one created by default inDataBinder
.Validator
getValidator()
Provide a customValidator
.
构造器详细资料
WebFluxConfigurerComposite
public WebFluxConfigurerComposite()
方法详细资料
addWebFluxConfigurers
public void addWebFluxConfigurers(List<WebFluxConfigurer> configurers)
configureContentTypeResolver
public void configureContentTypeResolver(RequestedContentTypeResolverBuilder builder)
从接口复制的说明:WebFluxConfigurer
Configure how the content type requested for the response is resolved when handling requests with annotated controllers.- 指定者:
configureContentTypeResolver
在接口中WebFluxConfigurer
- 参数:
builder
- for configuring the resolvers to use
addCorsMappings
public void addCorsMappings(CorsRegistry registry)
从接口复制的说明:WebFluxConfigurer
Configure "global" cross origin request processing.The configured readers and writers will apply to all requests including annotated controllers and functional endpoints. Annotated controllers can further declare more fine-grained configuration via
@CrossOrigin
.- 指定者:
addCorsMappings
在接口中WebFluxConfigurer
- 另请参阅:
CorsRegistry
configurePathMatching
public void configurePathMatching(PathMatchConfigurer configurer)
从接口复制的说明:WebFluxConfigurer
Configure path matching options.The configured path matching options will be used for mapping to annotated controllers and also
static resources
.- 指定者:
configurePathMatching
在接口中WebFluxConfigurer
- 参数:
configurer
- thePathMatchConfigurer
instance
addResourceHandlers
public void addResourceHandlers(ResourceHandlerRegistry registry)
从接口复制的说明:WebFluxConfigurer
Add resource handlers for serving static resources.- 指定者:
addResourceHandlers
在接口中WebFluxConfigurer
- 另请参阅:
ResourceHandlerRegistry
configureArgumentResolvers
public void configureArgumentResolvers(ArgumentResolverConfigurer configurer)
从接口复制的说明:WebFluxConfigurer
Configure resolvers for custom@RequestMapping
method arguments.- 指定者:
configureArgumentResolvers
在接口中WebFluxConfigurer
- 参数:
configurer
- to configurer to use
configureHttpMessageCodecs
public void configureHttpMessageCodecs(ServerCodecConfigurer configurer)
从接口复制的说明:WebFluxConfigurer
Configure custom HTTP message readers and writers or override built-in ones.The configured readers and writers will be used for both annotated controllers and functional endpoints.
- 指定者:
configureHttpMessageCodecs
在接口中WebFluxConfigurer
- 参数:
configurer
- the configurer to use
addFormatters
public void addFormatters(FormatterRegistry registry)
从接口复制的说明:WebFluxConfigurer
Add customConverters
andFormatters
for performing type conversion and formatting of annotated controller method arguments.- 指定者:
addFormatters
在接口中WebFluxConfigurer
getValidator
public Validator getValidator()
从接口复制的说明:WebFluxConfigurer
Provide a customValidator
.By default a validator for standard bean validation is created if bean validation API is present on the classpath.
The configured validator is used for validating annotated controller method arguments.
- 指定者:
getValidator
在接口中WebFluxConfigurer
getMessageCodesResolver
public MessageCodesResolver getMessageCodesResolver()
从接口复制的说明:WebFluxConfigurer
Provide a customMessageCodesResolver
to use for data binding in annotated controller method arguments instead of the one created by default inDataBinder
.- 指定者:
getMessageCodesResolver
在接口中WebFluxConfigurer
configureViewResolvers
public void configureViewResolvers(ViewResolverRegistry registry)
从接口复制的说明:WebFluxConfigurer
Configure view resolution for rendering responses with a view and a model, where the view is typically an HTML template but could also be based on an HTTP message writer (e.g. JSON, XML).The configured view resolvers will be used for both annotated controllers and functional endpoints.
- 指定者:
configureViewResolvers
在接口中WebFluxConfigurer