类 WebConfiguration

  • 所有已实现的接口:
    org.springframework.boot.web.servlet.ServletContextInitializer, org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    @Configuration
    @EnableConfigurationProperties(DustMsProperties.class)
    public class WebConfiguration
    extends java.lang.Object
    implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.boot.web.servlet.ServletContextInitializer
    配置Web应用所需的API信息
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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()  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer

        addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
    • 构造器详细资料

      • WebConfiguration

        public WebConfiguration​(DustMsProperties dustMsProperties)
    • 方法详细资料

      • onStartup

        public void onStartup​(javax.servlet.ServletContext servletContext)
        指定者:
        onStartup 在接口中 org.springframework.boot.web.servlet.ServletContextInitializer
      • sysParamFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<HttpHeadersFilter> sysParamFilter()
      • repositoryFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<TenantFilter> repositoryFilter​(top.daxian1218.dust.db.tenant.TenantManager tenantManager)
      • corsFilter

        @Bean
        @ConditionalOnProperty(name="dust.ms.cors.allowed-origins")
        public org.springframework.web.filter.CorsFilter corsFilter()
      • configureMessageConverters

        public void configureMessageConverters​(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
        指定者:
        configureMessageConverters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer