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.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 voidconfigureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)protected org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolvercreateExceptionHandlerExceptionResolver()protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdaptercreateRequestMappingHandlerAdapter()protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingcreateRequestMappingHandlerMapping()protected org.springframework.web.bind.support.ConfigurableWebBindingInitializergetConfigurableWebBindingInitializer()org.springframework.web.accept.ContentNegotiationManagermvcContentNegotiationManager()org.springframework.validation.ValidatormvcValidator()org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapterrequestMappingHandlerAdapter()org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingrequestMappingHandlerMapping()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, mvcConversionService, 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:
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
requestMappingHandlerMapping
@Bean @Primary public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping requestMappingHandlerMapping()
- Overrides:
requestMappingHandlerMappingin 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()
- 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
configureHandlerExceptionResolvers
protected void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
- Overrides:
configureHandlerExceptionResolversin 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