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.context.ResourceLoaderAware
,org.springframework.web.context.ServletContextAware
- Enclosing class:
- WebMvcAutoConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(WebProperties.class)
public static class WebMvcAutoConfiguration.EnableWebMvcConfiguration
extends org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
implements org.springframework.context.ResourceLoaderAware
Configuration equivalent to
@EnableWebMvc
.-
Constructor Summary
ConstructorDescriptionEnableWebMvcConfiguration
(WebMvcProperties mvcProperties, WebProperties webProperties, org.springframework.beans.factory.ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, org.springframework.beans.factory.ListableBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
protected void
extendHandlerExceptionResolvers
(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) org.springframework.web.servlet.FlashMapManager
protected org.springframework.web.bind.support.ConfigurableWebBindingInitializer
getConfigurableWebBindingInitializer
(org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.validation.Validator mvcValidator) org.springframework.web.servlet.LocaleResolver
org.springframework.web.accept.ContentNegotiationManager
org.springframework.format.support.FormattingConversionService
org.springframework.validation.Validator
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
requestMappingHandlerAdapter
(org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager, org.springframework.format.support.FormattingConversionService conversionService, org.springframework.validation.Validator validator) void
setResourceLoader
(org.springframework.core.io.ResourceLoader resourceLoader) org.springframework.web.servlet.ThemeResolver
Deprecated.org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping
welcomePageHandlerMapping
(org.springframework.context.ApplicationContext applicationContext, org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.web.servlet.resource.ResourceUrlProvider mvcResourceUrlProvider) org.springframework.boot.autoconfigure.web.servlet.WelcomePageNotAcceptableHandlerMapping
welcomePageNotAcceptableHandlerMapping
(org.springframework.context.ApplicationContext applicationContext, org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.web.servlet.resource.ResourceUrlProvider mvcResourceUrlProvider) Methods inherited from class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidator, setConfigurers
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, beanNameHandlerMapping, defaultServletHandlerMapping, getApplicationContext, getArgumentResolvers, getAsyncSupportConfigurer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcPatternParser, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcViewResolver, requestMappingHandlerMapping, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping, viewNameTranslator
-
Constructor Details
-
EnableWebMvcConfiguration
public EnableWebMvcConfiguration(WebMvcProperties mvcProperties, WebProperties webProperties, org.springframework.beans.factory.ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, org.springframework.beans.factory.ListableBeanFactory beanFactory)
-
-
Method Details
-
requestMappingHandlerAdapter
@Bean public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter requestMappingHandlerAdapter(@Qualifier("mvcContentNegotiationManager") org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager, @Qualifier("mvcConversionService") org.springframework.format.support.FormattingConversionService conversionService, @Qualifier("mvcValidator") org.springframework.validation.Validator validator) - 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
-
welcomePageHandlerMapping
@Bean public org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping welcomePageHandlerMapping(org.springframework.context.ApplicationContext applicationContext, org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.web.servlet.resource.ResourceUrlProvider mvcResourceUrlProvider) -
welcomePageNotAcceptableHandlerMapping
@Bean public org.springframework.boot.autoconfigure.web.servlet.WelcomePageNotAcceptableHandlerMapping welcomePageNotAcceptableHandlerMapping(org.springframework.context.ApplicationContext applicationContext, org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.web.servlet.resource.ResourceUrlProvider mvcResourceUrlProvider) -
localeResolver
@Bean @ConditionalOnMissingBean(name="localeResolver") public org.springframework.web.servlet.LocaleResolver localeResolver()- Overrides:
localeResolver
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
themeResolver
@Bean @ConditionalOnMissingBean(name="themeResolver") @Deprecated(since="3.0.0", forRemoval=false) public org.springframework.web.servlet.ThemeResolver themeResolver()Deprecated.- Overrides:
themeResolver
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
flashMapManager
@Bean @ConditionalOnMissingBean(name="flashMapManager") public org.springframework.web.servlet.FlashMapManager flashMapManager()- Overrides:
flashMapManager
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(org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.validation.Validator mvcValidator) - 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
-
extendHandlerExceptionResolvers
protected void extendHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) - Overrides:
extendHandlerExceptionResolvers
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
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoader
in interfaceorg.springframework.context.ResourceLoaderAware
-