Package org.springframework.boot

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


  }

  public static void main(String[] args) throws Exception {

    SpringApplication application = new SpringApplication(PhoneApp.class);
    application.run(args);
  }
}
View Full Code Here


  }

  public static void main(String[] args) throws Exception {

    SpringApplication application = new SpringApplication(GroupCall.class);
    application.run(args);
  }
}
View Full Code Here

    SpringApplication application = new SpringApplication(
        BootApplication.class);

    application.setDefaultProperties(properties);

    return application.run();
  }
}
View Full Code Here

    return new WebRtcHandler();
  }

  public static void main(String[] args) throws Exception {
    SpringApplication application = new SpringApplication(WebRtcApp.class);
    application.run(args);
  }
}
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

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

  @Test
  public void replacesServiceLocator() throws Exception {
    SpringApplication application = new SpringApplication(Conf.class);
    application.setWebEnvironment(false);
    application.run();
    ServiceLocator instance = ServiceLocator.getInstance();
    Field field = ReflectionUtils.findField(ServiceLocator.class, "classResolver");
    field.setAccessible(true);
    Object resolver = field.get(instance);
    assertThat(resolver, instanceOf(SpringPackageScanClassResolver.class));
View Full Code Here

    }
    else {
      application.setWebEnvironment(false);
    }
    application.setInitializers(initializers);
    return application.run();
  }

  @Override
  public void processContextConfiguration(
      ContextConfigurationAttributes configAttributes) {
View Full Code Here

  @Test
  public void propertySourceAnnotation() throws Exception {
    SpringApplication application = new SpringApplication(WithPropertySource.class);
    application.setWebEnvironment(false);
    ConfigurableApplicationContext context = application.run();
    String property = context.getEnvironment().getProperty("the.property");
    assertThat(property, equalTo("fromspecificlocation"));
    assertThat(context.getEnvironment(),
        containsPropertySource("class path resource "
            + "[specificlocation.properties]"));
View Full Code Here

        "source.location:specificlocation");
    SpringApplication application = new SpringApplication(
        WithPropertySourcePlaceholders.class);
    application.setEnvironment(this.environment);
    application.setWebEnvironment(false);
    ConfigurableApplicationContext context = application.run();
    String property = context.getEnvironment().getProperty("the.property");
    assertThat(property, equalTo("fromspecificlocation"));
    assertThat(context.getEnvironment(),
        containsPropertySource("class path resource "
            + "[specificlocation.properties]"));
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.