Package org.springframework.boot

Examples of org.springframework.boot.SpringApplication.run()


  public void doesNotEarlyInitializeFactoryBeans() throws Exception {
    SpringApplication application = new SpringApplication(EarlyInitConfig.class,
        PropertySourcesPlaceholderConfigurer.class,
        EmbeddedServletContainerAutoConfiguration.class,
        ServerPropertiesAutoConfiguration.class);
    this.context = application.run("--server.port=0");
    String bean = (String) this.context.getBean("earlyInit");
    assertThat(bean, equalTo("bucket"));
  }

  @Configuration
View Full Code Here


    printLogo();
    SpringApplication app = new SpringApplication(Para.class);
    app.setWebEnvironment(true);
    app.setShowBanner(false);
    initialize();
    app.run(args);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.