@EnableWebFlux.
@EnableWebFlux-annotated configuration classes may implement
this interface to be called back and given a chance to customize the
default configuration. Consider implementing this interface and
overriding the relevant methods for your needs.
WebFluxConfigurationSupport, DelegatingWebFluxConfiguration
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public default void | addFormatters(FormatterRegistry registry)
Add custom |
| public default void | addResourceHandlers(ResourceHandlerRegistry registry)
Add resource handlers for serving static resources. |
| public default void | configureArgumentResolvers(ArgumentResolverConfigurer
to configurer to use configurer)Configure resolvers for custom |
| public default void | configureBlockingExecution(BlockingExecutionConfigurer configurer)
Configure settings related to blocking execution in WebFlux. |
| public default void | configureContentTypeResolver(RequestedContentTypeResolverBuilder
for configuring the resolvers to use builder)Configure how the content type requested for the response is resolved when handling requests with annotated controllers. |
| public default void | configureHttpMessageCodecs(ServerCodecConfigurer
the configurer to customize readers and writers configurer)Configure the HTTP message readers and writers for reading from the request body and for writing to the response body in annotated controllers and functional endpoints. |
| public default void | configurePathMatching(PathMatchConfigurer
the configurer)PathMatchConfigurer instanceConfigure path matching options. |
| public default 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. JSON, XML). |
| public default MessageCodesResolver | getMessageCodesResolver()
Provide a custom |
| public default Validator | |
| public default WebSocketService | getWebSocketService()
Provide the |
| addCorsMappings | back to summary |
|---|---|
| public default void addCorsMappings(CorsRegistry registry) Configure "global" cross-origin request processing. The configured CORS mappings apply to annotated controllers, functional endpoints, and static resources. Annotated controllers can further declare more fine-grained config via
| |
| addFormatters | back to summary |
|---|---|
| public default void addFormatters(FormatterRegistry registry) Add custom | |
| addResourceHandlers | back to summary |
|---|---|
| public default void addResourceHandlers(ResourceHandlerRegistry registry) Add resource handlers for serving static resources.
| |
| configureArgumentResolvers | back to summary |
|---|---|
| public default void configureArgumentResolvers(ArgumentResolverConfigurer configurer) Configure resolvers for custom
| |
| configureBlockingExecution | back to summary |
|---|---|
| public default void configureBlockingExecution(BlockingExecutionConfigurer configurer) Configure settings related to blocking execution in WebFlux.
| |
| configureContentTypeResolver | back to summary |
|---|---|
| public default void configureContentTypeResolver(RequestedContentTypeResolverBuilder builder) Configure how the content type requested for the response is resolved when handling requests with annotated controllers.
| |
| configureHttpMessageCodecs | back to summary |
|---|---|
| public default void configureHttpMessageCodecs(ServerCodecConfigurer configurer) Configure the HTTP message readers and writers for reading from the request body and for writing to the response body in annotated controllers and functional endpoints. By default, all built-in readers and writers are configured as long as the corresponding 3rd party libraries such Jackson JSON, JAXB2, and others are present on the classpath.
| |
| configurePathMatching | back to summary |
|---|---|
| public default void configurePathMatching(PathMatchConfigurer configurer) Configure path matching options. The configured path matching options will be used for mapping to
annotated controllers and also
| |
| configureViewResolvers | back to summary |
|---|---|
| public default 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. JSON, XML). The configured view resolvers will be used for both annotated controllers and functional endpoints. | |
| getMessageCodesResolver | back to summary |
|---|---|
| public default MessageCodesResolver getMessageCodesResolver() Provide a custom
| |
| getValidator | back to summary |
|---|---|
| public default Validator getValidator() Provide a custom 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.
| |
| getWebSocketService | back to summary |
|---|---|
| public default WebSocketService getWebSocketService() Provide the
| |