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:
Aware,ApplicationContextAware,ResourceLoaderAware,ServletContextAware
- Enclosing class:
- WebMvcAutoConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(WebProperties.class)
public static class WebMvcAutoConfiguration.EnableWebMvcConfiguration
extends DelegatingWebMvcConfiguration
implements ResourceLoaderAware
Configuration equivalent to
@EnableWebMvc.-
Constructor Summary
ConstructorsConstructorDescriptionEnableWebMvcConfiguration(WebMvcProperties mvcProperties, WebProperties webProperties, ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, ListableBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExceptionHandlerExceptionResolverprotected RequestMappingHandlerAdapterprotected RequestMappingHandlerMappingprotected voidextendHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) protected ConfigurableWebBindingInitializergetConfigurableWebBindingInitializer(FormattingConversionService mvcConversionService, Validator mvcValidator) voidsetResourceLoader(ResourceLoader resourceLoader) Deprecated.org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMappingwelcomePageHandlerMapping(ApplicationContext applicationContext, FormattingConversionService mvcConversionService, ResourceUrlProvider mvcResourceUrlProvider) org.springframework.boot.autoconfigure.web.servlet.WelcomePageNotAcceptableHandlerMappingwelcomePageNotAcceptableHandlerMapping(ApplicationContext applicationContext, FormattingConversionService mvcConversionService, 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, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping, viewNameTranslator
-
Constructor Details
-
EnableWebMvcConfiguration
public EnableWebMvcConfiguration(WebMvcProperties mvcProperties, WebProperties webProperties, ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, ListableBeanFactory beanFactory)
-
-
Method Details
-
createRequestMappingHandlerAdapter
- Overrides:
createRequestMappingHandlerAdapterin classWebMvcConfigurationSupport
-
welcomePageHandlerMapping
@Bean public org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping welcomePageHandlerMapping(ApplicationContext applicationContext, FormattingConversionService mvcConversionService, ResourceUrlProvider mvcResourceUrlProvider) -
welcomePageNotAcceptableHandlerMapping
@Bean public org.springframework.boot.autoconfigure.web.servlet.WelcomePageNotAcceptableHandlerMapping welcomePageNotAcceptableHandlerMapping(ApplicationContext applicationContext, FormattingConversionService mvcConversionService, ResourceUrlProvider mvcResourceUrlProvider) -
localeResolver
- Overrides:
localeResolverin classWebMvcConfigurationSupport
-
themeResolver
@Bean @ConditionalOnMissingBean(name="themeResolver") @Deprecated(since="3.0.0", forRemoval=false) public ThemeResolver themeResolver()Deprecated.- Overrides:
themeResolverin classWebMvcConfigurationSupport
-
flashMapManager
- Overrides:
flashMapManagerin classWebMvcConfigurationSupport
-
mvcConversionService
- Overrides:
mvcConversionServicein classWebMvcConfigurationSupport
-
mvcValidator
- Overrides:
mvcValidatorin classWebMvcConfigurationSupport
-
createRequestMappingHandlerMapping
- Overrides:
createRequestMappingHandlerMappingin classWebMvcConfigurationSupport
-
getConfigurableWebBindingInitializer
protected ConfigurableWebBindingInitializer getConfigurableWebBindingInitializer(FormattingConversionService mvcConversionService, Validator mvcValidator) - Overrides:
getConfigurableWebBindingInitializerin classWebMvcConfigurationSupport
-
createExceptionHandlerExceptionResolver
- Overrides:
createExceptionHandlerExceptionResolverin classWebMvcConfigurationSupport
-
extendHandlerExceptionResolvers
- Overrides:
extendHandlerExceptionResolversin classDelegatingWebMvcConfiguration
-
mvcContentNegotiationManager
- Overrides:
mvcContentNegotiationManagerin classWebMvcConfigurationSupport
-
setResourceLoader
- Specified by:
setResourceLoaderin interfaceResourceLoaderAware
-