Java 类org.springframework.boot.devtools.restart.MockRestartInitializer 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:LocalDevToolsAutoConfigurationTests.java   
private ConfigurableApplicationContext initializeAndRun(Class<?> config,
        Map<String, Object> properties, String... args) {
    Restarter.initialize(new String[0], false, new MockRestartInitializer(), false);
    SpringApplication application = new SpringApplication(config);
    application.setDefaultProperties(getDefaultProperties(properties));
    application.setWebEnvironment(false);
    ConfigurableApplicationContext context = application.run(args);
    return context;
}
项目:spring-boot-concourse    文件:LocalDevToolsAutoConfigurationTests.java   
private ConfigurableApplicationContext initializeAndRun(Class<?> config,
        Map<String, Object> properties, String... args) {
    Restarter.initialize(new String[0], false, new MockRestartInitializer(), false);
    SpringApplication application = new SpringApplication(config);
    application.setDefaultProperties(getDefaultProperties(properties));
    application.setWebEnvironment(false);
    ConfigurableApplicationContext context = application.run(args);
    return context;
}
项目:contestparser    文件:LocalDevToolsAutoConfigurationTests.java   
private ConfigurableApplicationContext initializeAndRun(Class<?> config,
        Map<String, Object> properties, String... args) {
    Restarter.initialize(new String[0], false, new MockRestartInitializer(), false);
    SpringApplication application = new SpringApplication(config);
    application.setDefaultProperties(getDefaultProperties(properties));
    application.setWebEnvironment(false);
    ConfigurableApplicationContext context = application.run(args);
    return context;
}