Class WebConfigurer

  • All Implemented Interfaces:
    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.
    • Constructor Detail

      • WebConfigurer

        public WebConfigurer​(org.springframework.core.env.Environment env,
                             tech.jhipster.config.JHipsterProperties jHipsterProperties)
    • Method Detail

      • onStartup

        public void onStartup​(javax.servlet.ServletContext servletContext)
        Specified by:
        onStartup in interface org.springframework.boot.web.servlet.ServletContextInitializer
      • corsFilter

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