@Configuration public static class WebMvcAutoConfiguration.EnableWebMvcConfiguration extends DelegatingWebMvcConfiguration implements InitializingBean
@EnableWebMvc
.Constructor and Description |
---|
EnableWebMvcConfiguration(ObjectProvider<WebMvcProperties> mvcPropertiesProvider,
ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider,
ApplicationContext context) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
configureHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) |
protected ExceptionHandlerExceptionResolver |
createExceptionHandlerExceptionResolver() |
protected RequestMappingHandlerAdapter |
createRequestMappingHandlerAdapter() |
protected RequestMappingHandlerMapping |
createRequestMappingHandlerMapping() |
protected ConfigurableWebBindingInitializer |
getConfigurableWebBindingInitializer() |
ContentNegotiationManager |
mvcContentNegotiationManager() |
Validator |
mvcValidator() |
RequestMappingHandlerAdapter |
requestMappingHandlerAdapter() |
RequestMappingHandlerMapping |
requestMappingHandlerMapping() |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator, setConfigurers
addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, beanNameHandlerMapping, defaultServletHandlerMapping, getApplicationContext, getArgumentResolvers, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, handlerExceptionResolver, httpRequestHandlerAdapter, mvcConversionService, mvcPathMatcher, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcViewResolver, resourceHandlerMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping
public EnableWebMvcConfiguration(ObjectProvider<WebMvcProperties> mvcPropertiesProvider, ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, ApplicationContext context)
@Bean public RequestMappingHandlerAdapter requestMappingHandlerAdapter()
requestMappingHandlerAdapter
in class WebMvcConfigurationSupport
protected RequestMappingHandlerAdapter createRequestMappingHandlerAdapter()
createRequestMappingHandlerAdapter
in class WebMvcConfigurationSupport
@Bean @Primary public RequestMappingHandlerMapping requestMappingHandlerMapping()
requestMappingHandlerMapping
in class WebMvcConfigurationSupport
@Bean @Conditional(value=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.DisableMvcValidatorCondition.class) public Validator mvcValidator()
mvcValidator
in class WebMvcConfigurationSupport
protected RequestMappingHandlerMapping createRequestMappingHandlerMapping()
createRequestMappingHandlerMapping
in class WebMvcConfigurationSupport
protected ConfigurableWebBindingInitializer getConfigurableWebBindingInitializer()
getConfigurableWebBindingInitializer
in class WebMvcConfigurationSupport
protected ExceptionHandlerExceptionResolver createExceptionHandlerExceptionResolver()
createExceptionHandlerExceptionResolver
in class WebMvcConfigurationSupport
protected void configureHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers)
configureHandlerExceptionResolvers
in class DelegatingWebMvcConfiguration
@Bean public ContentNegotiationManager mvcContentNegotiationManager()
mvcContentNegotiationManager
in class WebMvcConfigurationSupport
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.