@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=WebProperties.class) public static class WebMvcAutoConfiguration.EnableWebMvcConfiguration extends DelegatingWebMvcConfiguration implements ResourceLoaderAware
@EnableWebMvc
.Constructor and Description |
---|
EnableWebMvcConfiguration(ResourceProperties resourceProperties,
WebMvcProperties mvcProperties,
WebProperties webProperties,
ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider,
ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider,
ListableBeanFactory beanFactory) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidator, setConfigurers
addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, beanNameHandlerMapping, defaultServletHandlerMapping, getApplicationContext, getArgumentResolvers, getAsyncSupportConfigurer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcViewResolver, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping, viewNameTranslator
public EnableWebMvcConfiguration(ResourceProperties resourceProperties, WebMvcProperties mvcProperties, WebProperties webProperties, ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider, 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
protected void addResourceHandlers(ResourceHandlerRegistry registry)
addResourceHandlers
in class DelegatingWebMvcConfiguration
@Bean public org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping welcomePageHandlerMapping(ApplicationContext applicationContext, FormattingConversionService mvcConversionService, ResourceUrlProvider mvcResourceUrlProvider)
@Bean @ConditionalOnMissingBean(name="localeResolver") public LocaleResolver localeResolver()
localeResolver
in class WebMvcConfigurationSupport
@Bean @ConditionalOnMissingBean(name="themeResolver") public ThemeResolver themeResolver()
themeResolver
in class WebMvcConfigurationSupport
@Bean @ConditionalOnMissingBean(name="flashMapManager") public FlashMapManager flashMapManager()
flashMapManager
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