@Configuration(proxyBeanMethods=false) public static class WebMvcAutoConfiguration.EnableWebMvcConfiguration extends DelegatingWebMvcConfiguration implements ResourceLoaderAware
@EnableWebMvc
.Constructor and Description |
---|
EnableWebMvcConfiguration(ResourceProperties resourceProperties,
ObjectProvider<WebMvcProperties> mvcPropertiesProvider,
ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider,
ListableBeanFactory beanFactory) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidator, setConfigurers
addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, beanNameHandlerMapping, defaultServletHandlerMapping, flashMapManager, getApplicationContext, getArgumentResolvers, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcViewResolver, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, themeResolver, viewControllerHandlerMapping, viewNameTranslator
public EnableWebMvcConfiguration(ResourceProperties resourceProperties, ObjectProvider<WebMvcProperties> mvcPropertiesProvider, ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, ListableBeanFactory beanFactory)
@Bean public RequestMappingHandlerAdapter requestMappingHandlerAdapter(@Qualifier(value="mvcContentNegotiationManager") ContentNegotiationManager contentNegotiationManager, @Qualifier(value="mvcConversionService") FormattingConversionService conversionService, @Qualifier(value="mvcValidator") Validator validator)
requestMappingHandlerAdapter
in class WebMvcConfigurationSupport
protected RequestMappingHandlerAdapter createRequestMappingHandlerAdapter()
createRequestMappingHandlerAdapter
in class WebMvcConfigurationSupport
@Bean @Primary public RequestMappingHandlerMapping requestMappingHandlerMapping(@Qualifier(value="mvcContentNegotiationManager") ContentNegotiationManager contentNegotiationManager, @Qualifier(value="mvcConversionService") FormattingConversionService conversionService, @Qualifier(value="mvcResourceUrlProvider") ResourceUrlProvider resourceUrlProvider)
requestMappingHandlerMapping
in class WebMvcConfigurationSupport
@Bean public org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping welcomePageHandlerMapping(ApplicationContext applicationContext, FormattingConversionService mvcConversionService, ResourceUrlProvider mvcResourceUrlProvider)
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.mvc", name="locale", matchIfMissing=true) public LocaleResolver localeResolver()
localeResolver
in class WebMvcConfigurationSupport
@Bean public FormattingConversionService mvcConversionService()
mvcConversionService
in class WebMvcConfigurationSupport
@Bean public Validator mvcValidator()
mvcValidator
in class WebMvcConfigurationSupport
protected RequestMappingHandlerMapping createRequestMappingHandlerMapping()
createRequestMappingHandlerMapping
in class WebMvcConfigurationSupport
protected ConfigurableWebBindingInitializer getConfigurableWebBindingInitializer(FormattingConversionService mvcConversionService, Validator mvcValidator)
getConfigurableWebBindingInitializer
in class WebMvcConfigurationSupport
protected ExceptionHandlerExceptionResolver createExceptionHandlerExceptionResolver()
createExceptionHandlerExceptionResolver
in class WebMvcConfigurationSupport
protected void extendHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers)
extendHandlerExceptionResolvers
in class DelegatingWebMvcConfiguration
@Bean public ContentNegotiationManager mvcContentNegotiationManager()
mvcContentNegotiationManager
in class WebMvcConfigurationSupport
public void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader
in interface ResourceLoaderAware