@ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class}) @ConditionalOnWebApplication @Configuration @ComponentScan(basePackages="cn.home1.oss.lib.webmvc.starter") @EnableConfigurationProperties(value=cn.home1.oss.boot.autoconfigure.AppProperties.class) @Import(value={GsonConfiguration.class,Jackson2Configuration.class}) public class WebApplicationAutoConfiguration extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
Constructor and Description |
---|
WebApplicationAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
DefaultHttpEntityMethodProcessor |
defaultHttpEntityMethodProcessor() |
DomainResolver |
domainResolver() |
RequestResolver |
requestResolver() |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
@Bean public DomainResolver domainResolver()
@Bean public RequestResolver requestResolver()
@Bean public DefaultHttpEntityMethodProcessor defaultHttpEntityMethodProcessor()
Copyright © 2017. All rights reserved.