类 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
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware
@Configuration public static class WebMvcAutoConfiguration.EnableWebMvcConfiguration extends org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
Configuration equivalent to@EnableWebMvc.
构造器概要
构造器 构造器 说明 EnableWebMvcConfiguration(org.springframework.beans.factory.ObjectProvider<WebMvcProperties> mvcPropertiesProvider, org.springframework.beans.factory.ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, org.springframework.beans.factory.ListableBeanFactory beanFactory)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()从类继承的方法 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
从类继承的方法 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
构造器详细资料
EnableWebMvcConfiguration
public EnableWebMvcConfiguration(org.springframework.beans.factory.ObjectProvider<WebMvcProperties> mvcPropertiesProvider, org.springframework.beans.factory.ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, org.springframework.beans.factory.ListableBeanFactory beanFactory)
方法详细资料
requestMappingHandlerAdapter
@Bean public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter requestMappingHandlerAdapter()
- 覆盖:
requestMappingHandlerAdapter在类中org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
createRequestMappingHandlerAdapter
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter createRequestMappingHandlerAdapter()
- 覆盖:
createRequestMappingHandlerAdapter在类中org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
requestMappingHandlerMapping
@Bean @Primary public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping requestMappingHandlerMapping()
- 覆盖:
requestMappingHandlerMapping在类中org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
mvcValidator
@Bean public org.springframework.validation.Validator mvcValidator()
- 覆盖:
mvcValidator在类中org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
createRequestMappingHandlerMapping
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping createRequestMappingHandlerMapping()
- 覆盖:
createRequestMappingHandlerMapping在类中org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
getConfigurableWebBindingInitializer
protected org.springframework.web.bind.support.ConfigurableWebBindingInitializer getConfigurableWebBindingInitializer()
- 覆盖:
getConfigurableWebBindingInitializer在类中org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
createExceptionHandlerExceptionResolver
protected org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver createExceptionHandlerExceptionResolver()
- 覆盖:
createExceptionHandlerExceptionResolver在类中org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
configureHandlerExceptionResolvers
protected void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
- 覆盖:
configureHandlerExceptionResolvers在类中org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
mvcContentNegotiationManager
@Bean public org.springframework.web.accept.ContentNegotiationManager mvcContentNegotiationManager()
- 覆盖:
mvcContentNegotiationManager在类中org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport