SpringBootServletInitializer is an extension of WebApplicationInitializer. It is needed to run a SpringApplication from a WAR deployment. The implementing classes are supposed to provided the source configuration class by extending configure() method. The configuration source class should be annotated with @SpringBootApplication or its variant.
public static void main (String[] args) { SpringApplication sa = new SpringApplication(WarExplodedExample.class); sa.setLogStartupInfo(false); sa.run(args); }
public static void main (String[] args) { SpringApplication sa = new SpringApplication(JarWebappExplodedExample.class); sa.setLogStartupInfo(false); sa.run(args); }