Class SpringBootServletInitializer

    • Field Detail

      • logger

        protected org.apache.commons.logging.Log logger
    • Method Detail

      • setRegisterErrorPageFilter

        protected final void setRegisterErrorPageFilter​(boolean registerErrorPageFilter)
        Set if the ErrorPageFilter should be registered. Set to false if error page mappings should be handled via the server and not Spring Boot.
        Parameters:
        registerErrorPageFilter - if the ErrorPageFilter should be registered.
      • onStartup

        public void onStartup​(javax.servlet.ServletContext servletContext)
                       throws javax.servlet.ServletException
        Specified by:
        onStartup in interface org.springframework.web.WebApplicationInitializer
        Throws:
        javax.servlet.ServletException
      • createRootApplicationContext

        protected org.springframework.web.context.WebApplicationContext createRootApplicationContext​(javax.servlet.ServletContext servletContext)
      • run

        protected org.springframework.web.context.WebApplicationContext run​(SpringApplication application)
        Called to run a fully configured SpringApplication.
        Parameters:
        application - the application to run
        Returns:
        the WebApplicationContext
      • configure

        protected SpringApplicationBuilder configure​(SpringApplicationBuilder builder)
        Configure the application. Normally all you would need to do is to add sources (e.g. config classes) because other settings have sensible defaults. You might choose (for instance) to add default command line arguments, or set an active Spring profile.
        Parameters:
        builder - a builder for the application context
        Returns:
        the application builder
        See Also:
        SpringApplicationBuilder