类 SpringApplicationWebApplicationInitializer

  • 所有已实现的接口:
    org.springframework.web.WebApplicationInitializer

    public class SpringApplicationWebApplicationInitializer
    extends org.springframework.boot.web.support.SpringBootServletInitializer
    SpringBootServletInitializer for CLI packaged WAR files.
    从以下版本开始:
    1.3.0
    • 字段概要

      字段 
      修饰符和类型字段说明
      static StringSOURCE_ENTRY
      The entry containing the source class.
      • 从类继承的字段 org.springframework.boot.web.support.SpringBootServletInitializer

        logger
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      protected org.springframework.boot.builder.SpringApplicationBuilderconfigure​(org.springframework.boot.builder.SpringApplicationBuilder builder) 
      voidonStartup​(javax.servlet.ServletContext servletContext) 
      • 从类继承的方法 org.springframework.boot.web.support.SpringBootServletInitializer

        createRootApplicationContext, createSpringApplicationBuilder, run, setRegisterErrorPageFilter
    • 方法详细资料

      • onStartup

        public void onStartup​(javax.servlet.ServletContext servletContext)
                       throws javax.servlet.ServletException
        指定者:
        onStartup 在接口中 org.springframework.web.WebApplicationInitializer
        覆盖:
        onStartup 在类中 org.springframework.boot.web.support.SpringBootServletInitializer
        抛出:
        javax.servlet.ServletException
      • configure

        protected org.springframework.boot.builder.SpringApplicationBuilder configure​(org.springframework.boot.builder.SpringApplicationBuilder builder)
        覆盖:
        configure 在类中 org.springframework.boot.web.support.SpringBootServletInitializer