类 WebConfigurer

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

    @Configuration
    public class WebConfigurer
    extends Object
    implements org.springframework.boot.web.servlet.ServletContextInitializer
    Configuration of web application with Servlet 3.0 APIs.
    • 构造器详细资料

      • WebConfigurer

        public WebConfigurer​(org.springframework.core.env.Environment env,
                             io.github.jhipster.config.JHipsterProperties jHipsterProperties)
    • 方法详细资料

      • onStartup

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

        @Bean
        public org.springframework.web.filter.CorsFilter corsFilter()