类 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 void
configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
protected org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver
createExceptionHandlerExceptionResolver()
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
createRequestMappingHandlerAdapter()
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
createRequestMappingHandlerMapping()
protected org.springframework.web.bind.support.ConfigurableWebBindingInitializer
getConfigurableWebBindingInitializer()
org.springframework.web.accept.ContentNegotiationManager
mvcContentNegotiationManager()
org.springframework.validation.Validator
mvcValidator()
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
requestMappingHandlerAdapter()
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
requestMappingHandlerMapping()
从类继承的方法 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