@Configuration @Import(value={WebMvcConfig.class,WebMvcRegistrationsConfig.class,CustomArgumentResolversConfig.class,WebMvcEnv.class}) @EnableConfigurationProperties(value={WebProperties.class,JacksonHttpMessageConverterProperties.class,FastJsonHttpMessageConverterProperties.class}) public class WebAutoConfig extends Object
Constructor and Description |
---|
WebAutoConfig() |
Modifier and Type | Method and Description |
---|---|
ContextDecorator |
contextDecorator(AsyncProperties asyncProperties)
Servlet子线程上下文装饰器
|
org.springframework.web.filter.CorsFilter |
corsFilter(CorsProperties corsProperties) |
org.springframework.boot.web.servlet.FilterRegistrationBean<RepeatedlyReadServletRequestFilter> |
registerRepeatedlyReadRequestFilter()
配置输入流可反复读取的HttpServletRequest
|
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="yue.cors", name="allow", havingValue="true", matchIfMissing=true) public org.springframework.web.filter.CorsFilter corsFilter(CorsProperties corsProperties)
@Bean @ConditionalOnProperty(prefix="yue.web", name="enabled-repeatedly-read-servlet-request", havingValue="true", matchIfMissing=true) public org.springframework.boot.web.servlet.FilterRegistrationBean<RepeatedlyReadServletRequestFilter> registerRepeatedlyReadRequestFilter()
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=AsyncProperties.class) public ContextDecorator contextDecorator(AsyncProperties asyncProperties)
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.