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
ConstructorsConstructorDescriptionEnableWebMvcConfiguration(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.ExceptionHandlerExceptionResolverprotected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapterprotected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingprotected voidextendHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) org.springframework.web.servlet.FlashMapManagerprotected org.springframework.web.bind.support.ConfigurableWebBindingInitializergetConfigurableWebBindingInitializer(org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.validation.Validator mvcValidator) org.springframework.web.servlet.LocaleResolverorg.springframework.web.accept.ContentNegotiationManagerorg.springframework.format.support.FormattingConversionServiceorg.springframework.validation.Validatororg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapterrequestMappingHandlerAdapter(org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager, org.springframework.format.support.FormattingConversionService conversionService, org.springframework.validation.Validator validator) voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) org.springframework.web.servlet.ThemeResolverDeprecated.org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMappingwelcomePageHandlerMapping(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, setConfigurersMethods 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:
requestMappingHandlerAdapterin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
createRequestMappingHandlerAdapter
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter createRequestMappingHandlerAdapter()- Overrides:
createRequestMappingHandlerAdapterin 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) -
localeResolver
@Bean @ConditionalOnMissingBean(name="localeResolver") public org.springframework.web.servlet.LocaleResolver localeResolver()- Overrides:
localeResolverin 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:
themeResolverin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
flashMapManager
@Bean @ConditionalOnMissingBean(name="flashMapManager") public org.springframework.web.servlet.FlashMapManager flashMapManager()- Overrides:
flashMapManagerin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
mvcConversionService
@Bean public org.springframework.format.support.FormattingConversionService mvcConversionService()- Overrides:
mvcConversionServicein classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
mvcValidator
@Bean public org.springframework.validation.Validator mvcValidator()- Overrides:
mvcValidatorin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
createRequestMappingHandlerMapping
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping createRequestMappingHandlerMapping()- Overrides:
createRequestMappingHandlerMappingin 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:
getConfigurableWebBindingInitializerin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
createExceptionHandlerExceptionResolver
protected org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver createExceptionHandlerExceptionResolver()- Overrides:
createExceptionHandlerExceptionResolverin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
extendHandlerExceptionResolvers
protected void extendHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) - Overrides:
extendHandlerExceptionResolversin classorg.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
-
mvcContentNegotiationManager
@Bean public org.springframework.web.accept.ContentNegotiationManager mvcContentNegotiationManager()- Overrides:
mvcContentNegotiationManagerin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoaderin interfaceorg.springframework.context.ResourceLoaderAware
-