Class WebMvcAutoConfiguration.EnableWebMvcConfiguration
- java.lang.Object
- org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
- org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
- org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.EnableWebMvcConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
- Enclosing class:
- WebMvcAutoConfiguration
@Configuration public static class WebMvcAutoConfiguration.EnableWebMvcConfiguration extends org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
Configuration equivalent to@EnableWebMvc
.
Constructor Summary
Constructors Constructor Description EnableWebMvcConfiguration(org.springframework.beans.factory.ObjectProvider<WebMvcProperties> mvcPropertiesProvider, org.springframework.beans.factory.ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, org.springframework.beans.factory.ListableBeanFactory beanFactory)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
protected org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver
createExceptionHandlerExceptionResolver()
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
createRequestMappingHandlerAdapter()
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
createRequestMappingHandlerMapping()
protected org.springframework.web.bind.support.ConfigurableWebBindingInitializer
getConfigurableWebBindingInitializer()
org.springframework.web.accept.ContentNegotiationManager
mvcContentNegotiationManager()
org.springframework.format.support.FormattingConversionService
mvcConversionService()
org.springframework.validation.Validator
mvcValidator()
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
requestMappingHandlerAdapter()
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
requestMappingHandlerMapping()
Methods inherited from class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator, setConfigurers
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, beanNameHandlerMapping, defaultServletHandlerMapping, getApplicationContext, getArgumentResolvers, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, handlerExceptionResolver, httpRequestHandlerAdapter, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcViewResolver, resourceHandlerMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping
Constructor Detail
EnableWebMvcConfiguration
public EnableWebMvcConfiguration(org.springframework.beans.factory.ObjectProvider<WebMvcProperties> mvcPropertiesProvider, org.springframework.beans.factory.ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, org.springframework.beans.factory.ListableBeanFactory beanFactory)
Method Detail
requestMappingHandlerAdapter
@Bean public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter requestMappingHandlerAdapter()
- Overrides:
requestMappingHandlerAdapter
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
createRequestMappingHandlerAdapter
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter createRequestMappingHandlerAdapter()
- Overrides:
createRequestMappingHandlerAdapter
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
requestMappingHandlerMapping
@Bean @Primary public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping requestMappingHandlerMapping()
- Overrides:
requestMappingHandlerMapping
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
mvcConversionService
@Bean public org.springframework.format.support.FormattingConversionService mvcConversionService()
- Overrides:
mvcConversionService
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
mvcValidator
@Bean public org.springframework.validation.Validator mvcValidator()
- Overrides:
mvcValidator
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
createRequestMappingHandlerMapping
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping createRequestMappingHandlerMapping()
- Overrides:
createRequestMappingHandlerMapping
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
getConfigurableWebBindingInitializer
protected org.springframework.web.bind.support.ConfigurableWebBindingInitializer getConfigurableWebBindingInitializer()
- Overrides:
getConfigurableWebBindingInitializer
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
createExceptionHandlerExceptionResolver
protected org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver createExceptionHandlerExceptionResolver()
- Overrides:
createExceptionHandlerExceptionResolver
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
configureHandlerExceptionResolvers
protected void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
- Overrides:
configureHandlerExceptionResolvers
in classorg.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
mvcContentNegotiationManager
@Bean public org.springframework.web.accept.ContentNegotiationManager mvcContentNegotiationManager()
- Overrides:
mvcContentNegotiationManager
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport