WebMvcConfigurer that delegates to one or more others.
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addArgumentResolvers(List<HandlerMethodArgumentResolver>
initially an empty list argumentResolvers)Overrides default org. Add resolvers to support custom controller method argument types. |
| public void | addCorsMappings(CorsRegistry registry)
Overrides default org. Configure "global" cross-origin request processing. |
| public void | addFormatters(FormatterRegistry registry)
Overrides default org. Add |
| public void | addInterceptors(InterceptorRegistry registry)
Overrides default org. Add Spring MVC lifecycle interceptors for pre- and post-processing of controller method invocations and resource handler requests. |
| public void | addResourceHandlers(ResourceHandlerRegistry registry)
Overrides default org. Add handlers to serve static resources such as images, js, and, css files from specific locations under web application root, the classpath, and others. |
| public void | addReturnValueHandlers(List<HandlerMethodReturnValueHandler>
initially an empty list returnValueHandlers)Overrides default org. Add handlers to support custom controller method return value types. |
| public void | addViewControllers(ViewControllerRegistry registry)
Overrides default org. Configure simple automated controllers pre-configured with the response status code and/or a view to render the response body. |
| public void | |
| public void | configureAsyncSupport(AsyncSupportConfigurer configurer)
Overrides default org. Configure asynchronous request handling options. |
| public void | configureContentNegotiation(ContentNegotiationConfigurer configurer)
Overrides default org. Configure content negotiation options. |
| public void | configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer)
Overrides default org. Configure a handler to delegate unhandled requests by forwarding to the Servlet container's "default" servlet. |
| public void | configureHandlerExceptionResolvers(List<HandlerExceptionResolver>
initially an empty list exceptionResolvers)Overrides default org. Configure exception resolvers. |
| public void | configureMessageConverters(List<HttpMessageConverter<?>>
initially an empty list of converters converters)Overrides default org. Configure the |
| public void | configurePathMatch(PathMatchConfigurer configurer)
Overrides default org. Help with configuring |
| public void | configureViewResolvers(ViewResolverRegistry registry)
Overrides default org. Configure view resolvers to translate String-based view names returned from
controllers into concrete |
| public void | extendHandlerExceptionResolvers(List<HandlerExceptionResolver>
the list of configured resolvers to extend exceptionResolvers)Overrides default org. Extending or modify the list of exception resolvers configured by default. |
| public void | extendMessageConverters(List<HttpMessageConverter<?>>
the list of configured converters to be extended converters)Overrides default org. Extend or modify the list of converters after it has been, either
|
| public MessageCodesResolver | getMessageCodesResolver()
Overrides default org. Provide a custom |
| public Validator | getValidator()
Overrides default org. Provide a custom |
| delegates | back to summary |
|---|---|
| private final List<WebMvcConfigurer> delegates | |
| WebMvcConfigurerComposite | back to summary |
|---|---|
| pack-priv WebMvcConfigurerComposite() | |
| addArgumentResolvers | back to summary |
|---|---|
| public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) Overrides default org. Doc from org. Add resolvers to support custom controller method argument types. This does not override the built-in support for resolving handler
method arguments. To customize the built-in support for argument
resolution, configure
| |
| addCorsMappings | back to summary |
|---|---|
| public void addCorsMappings(CorsRegistry registry) Overrides default org. Doc from org. 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 void addFormatters(FormatterRegistry registry) Overrides default org. Doc from org. Add
| |
| addInterceptors | back to summary |
|---|---|
| public void addInterceptors(InterceptorRegistry registry) Overrides default org. Doc from org. Add Spring MVC lifecycle interceptors for pre- and post-processing of controller method invocations and resource handler requests. Interceptors can be registered to apply to all requests or be limited to a subset of URL patterns.
| |
| addResourceHandlers | back to summary |
|---|---|
| public void addResourceHandlers(ResourceHandlerRegistry registry) Overrides default org. Doc from org. Add handlers to serve static resources such as images, js, and, css files from specific locations under web application root, the classpath, and others.
| |
| addReturnValueHandlers | back to summary |
|---|---|
| public void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) Overrides default org. Doc from org. Add handlers to support custom controller method return value types. Using this option does not override the built-in support for handling return values. To customize the built-in support for handling return values, configure RequestMappingHandlerAdapter directly.
| |
| addViewControllers | back to summary |
|---|---|
| public void addViewControllers(ViewControllerRegistry registry) Overrides default org. Doc from org. Configure simple automated controllers pre-configured with the response status code and/or a view to render the response body. This is useful in cases where there is no need for custom controller logic -- e.g. render a home page, perform simple site URL redirects, return a 404 status with HTML content, a 204 with no content, and more.
| |
| addWebMvcConfigurers | back to summary |
|---|---|
| public void addWebMvcConfigurers(List<WebMvcConfigurer> configurers) | |
| configureAsyncSupport | back to summary |
|---|---|
| public void configureAsyncSupport(AsyncSupportConfigurer configurer) Overrides default org. Doc from org. Configure asynchronous request handling options.
| |
| configureContentNegotiation | back to summary |
|---|---|
| public void configureContentNegotiation(ContentNegotiationConfigurer configurer) Overrides default org. Doc from org. Configure content negotiation options.
| |
| configureDefaultServletHandling | back to summary |
|---|---|
| public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) Overrides default org. Doc from org. Configure a handler to delegate unhandled requests by forwarding to the
Servlet container's "default" servlet. A common use case for this is when
the
| |
| configureHandlerExceptionResolvers | back to summary |
|---|---|
| public void configureHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) Overrides default org. Configure exception resolvers. The given list starts out empty. If it is left empty, the framework
configures a default set of resolvers, see
Alternatively you can use
| |
| configureMessageConverters | back to summary |
|---|---|
| public void configureMessageConverters(List<HttpMessageConverter<?>> converters) Overrides default org. Doc from org. Configure the By default, all built-in converters are configured as long as the corresponding 3rd party libraries such Jackson JSON, JAXB2, and others are present on the classpath. Note that use of this method turns off default converter
registration. However, in a Spring Boot application the
| |
| configurePathMatch | back to summary |
|---|---|
| public void configurePathMatch(PathMatchConfigurer configurer) Overrides default org. Doc from org. Help with configuring
| |
| configureViewResolvers | back to summary |
|---|---|
| public void configureViewResolvers(ViewResolverRegistry registry) Overrides default org. Doc from org. Configure view resolvers to translate String-based view names returned from
controllers into concrete
| |
| extendHandlerExceptionResolvers | back to summary |
|---|---|
| public void extendHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) Overrides default org. Doc from org. Extending or modify the list of exception resolvers configured by default. This can be useful for inserting a custom exception resolver without interfering with default ones.
| |
| extendMessageConverters | back to summary |
|---|---|
| public void extendMessageConverters(List<HttpMessageConverter<?>> converters) Overrides default org. Doc from org. Extend or modify the list of converters after it has been, either
Note that the order of converter registration is important. Especially
in cases where clients accept
| |
| getMessageCodesResolver | back to summary |
|---|---|
| public MessageCodesResolver getMessageCodesResolver() Overrides default org. Doc from org. Provide a custom | |
| getValidator | back to summary |
|---|---|
| public Validator getValidator() Overrides default org. Doc from org. Provide a custom
| |