Java 类org.springframework.boot.load.it.war.SpringInitializer 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EmbeddedWarStarter.java   
public static void main(String[] args) throws Exception {
    Server server = new Server(8080);

    WebAppContext webAppContext = new WebAppContext();
    webAppContext.setContextPath("/");
    webAppContext.setConfigurations(new Configuration[] {
            new WebApplicationInitializersConfiguration(SpringInitializer.class) });

    webAppContext.setParentLoaderPriority(true);
    server.setHandler(webAppContext);
    server.start();

    server.join();
}
项目:spring-boot-concourse    文件:EmbeddedWarStarter.java   
public static void main(String[] args) throws Exception {
    Server server = new Server(8080);

    WebAppContext webAppContext = new WebAppContext();
    webAppContext.setContextPath("/");
    webAppContext.setConfigurations(new Configuration[] {
            new WebApplicationInitializersConfiguration(SpringInitializer.class) });

    webAppContext.setParentLoaderPriority(true);
    server.setHandler(webAppContext);
    server.start();

    server.join();
}
项目:contestparser    文件:EmbeddedWarStarter.java   
public static void main(String[] args) throws Exception {
    Server server = new Server(8080);

    WebAppContext webAppContext = new WebAppContext();
    webAppContext.setContextPath("/");
    webAppContext.setConfigurations(new Configuration[] {
            new WebApplicationInitializersConfiguration(SpringInitializer.class) });

    webAppContext.setParentLoaderPriority(true);
    server.setHandler(webAppContext);
    server.start();

    server.join();
}