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
ConstructorDescriptionEnableWebMvcConfiguration
(WebMvcProperties mvcProperties, WebProperties webProperties, ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, ListableBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExceptionHandlerExceptionResolver
protected RequestMappingHandlerAdapter
protected RequestMappingHandlerMapping
protected void
extendHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers) protected ConfigurableWebBindingInitializer
getConfigurableWebBindingInitializer
(FormattingConversionService mvcConversionService, Validator mvcValidator) requestMappingHandlerAdapter
(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator) void
setResourceLoader
(ResourceLoader resourceLoader) Deprecated.org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping
welcomePageHandlerMapping
(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, 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, ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, ListableBeanFactory beanFactory)
-
-
Method Details
-
requestMappingHandlerAdapter
@Bean public RequestMappingHandlerAdapter requestMappingHandlerAdapter(@Qualifier("mvcContentNegotiationManager") ContentNegotiationManager contentNegotiationManager, @Qualifier("mvcConversionService") FormattingConversionService conversionService, @Qualifier("mvcValidator") Validator validator) - Overrides:
requestMappingHandlerAdapter
in classWebMvcConfigurationSupport
-
createRequestMappingHandlerAdapter
- Overrides:
createRequestMappingHandlerAdapter
in classWebMvcConfigurationSupport
-
welcomePageHandlerMapping
@Bean public org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping welcomePageHandlerMapping(ApplicationContext applicationContext, FormattingConversionService mvcConversionService, ResourceUrlProvider mvcResourceUrlProvider) -
localeResolver
- Overrides:
localeResolver
in classWebMvcConfigurationSupport
-
themeResolver
@Bean @ConditionalOnMissingBean(name="themeResolver") @Deprecated(since="3.0.0", forRemoval=false) public ThemeResolver themeResolver()Deprecated.- Overrides:
themeResolver
in classWebMvcConfigurationSupport
-
flashMapManager
- Overrides:
flashMapManager
in classWebMvcConfigurationSupport
-
mvcConversionService
- Overrides:
mvcConversionService
in classWebMvcConfigurationSupport
-
mvcValidator
- Overrides:
mvcValidator
in classWebMvcConfigurationSupport
-
createRequestMappingHandlerMapping
- Overrides:
createRequestMappingHandlerMapping
in classWebMvcConfigurationSupport
-
getConfigurableWebBindingInitializer
protected ConfigurableWebBindingInitializer getConfigurableWebBindingInitializer(FormattingConversionService mvcConversionService, Validator mvcValidator) - Overrides:
getConfigurableWebBindingInitializer
in classWebMvcConfigurationSupport
-
createExceptionHandlerExceptionResolver
- Overrides:
createExceptionHandlerExceptionResolver
in classWebMvcConfigurationSupport
-
extendHandlerExceptionResolvers
- Overrides:
extendHandlerExceptionResolvers
in classDelegatingWebMvcConfiguration
-
mvcContentNegotiationManager
- Overrides:
mvcContentNegotiationManager
in classWebMvcConfigurationSupport
-
setResourceLoader
- Specified by:
setResourceLoader
in interfaceResourceLoaderAware
-