@Configuration @EnableConfigurationProperties(value=DustMsProperties.class) public class WebConfiguration extends java.lang.Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.boot.web.servlet.ServletContextInitializer
构造器和说明 |
---|
WebConfiguration(DustMsProperties dustMsProperties) |
限定符和类型 | 方法和说明 |
---|---|
void |
configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters) |
org.springframework.web.filter.CorsFilter |
corsFilter() |
ResponseHandler |
exceptionsHandler() |
void |
onStartup(javax.servlet.ServletContext servletContext) |
org.springframework.boot.web.servlet.FilterRegistrationBean<TenantFilter> |
repositoryFilter(top.daxian1218.dust.db.tenant.TenantManager tenantManager) |
org.springframework.boot.web.servlet.FilterRegistrationBean<HttpHeadersFilter> |
sysParamFilter() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public WebConfiguration(DustMsProperties dustMsProperties)
public void onStartup(javax.servlet.ServletContext servletContext)
onStartup
在接口中 org.springframework.boot.web.servlet.ServletContextInitializer
@Bean public ResponseHandler exceptionsHandler()
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<HttpHeadersFilter> sysParamFilter()
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<TenantFilter> repositoryFilter(top.daxian1218.dust.db.tenant.TenantManager tenantManager)
@Bean @ConditionalOnProperty(name="dust.ms.cors.allowed-origins") public org.springframework.web.filter.CorsFilter corsFilter()
public void configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters
在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer