Java 类org.springframework.boot.SpringApplication 实例源码

项目:spring-microservice-sample    文件:PostServiceApplication.java   
public static void main(String[] args) {
    SpringApplication.run(PostServiceApplication.class, args);
}
项目:VS2Labor    文件:TrumpetWebApplication.java   
public static void main(String[] args) throws InterruptedException {
        //SpringApplication.run(TrumpetWebApplication.class, args);
        ctx = SpringApplication.run(TrumpetWebApplication.class, args);
//      StringRedisTemplate template = ctx.getBean(StringRedisTemplate.class); 
//      CountDownLatch latch = ctx.getBean(CountDownLatch.class); 
//      template.convertAndSend("chat", "Hello from Redis!");
//      latch.await(); 
        //System.exit(0);
    }
项目:klask-io    文件:DefaultProfileUtil.java   
/**
 * Set a default to use when no profile is configured.
 */
public static void addDefaultProfile(SpringApplication app) {
    Map<String, Object> defProperties =  new HashMap<>();
    /*
    * The default profile to use when no other profiles are defined
    * This cannot be set in the <code>application.yml</code> file.
    * See https://github.com/spring-projects/spring-boot/issues/1219
    */
    defProperties.put(SPRING_PROFILE_ACTIVE, getDefaultActiveProfiles());
    app.setDefaultProperties(defProperties);
}
项目:xq_seckill_microservice    文件:EstateApplication.java   
public static void main(String[] args) {
    SpringApplication.run(EstateApplication.class, args);
}
项目:shoucang    文件:Application.java   
/**
 * Main method, used to run the application.
 */
public static void main(String[] args) throws UnknownHostException {
    SpringApplication app = new SpringApplication(Application.class);
    SimpleCommandLinePropertySource source = new SimpleCommandLinePropertySource(args);
    addDefaultProfile(app, source);
    Environment env = app.run(args).getEnvironment();
    log.info("Access URLs:\n----------------------------------------------------------\n\t" +
            "Local: \t\thttp://127.0.0.1:{}\n\t" +
            "External: \thttp://{}:{}\n----------------------------------------------------------",
        env.getProperty("server.port"),
        InetAddress.getLocalHost().getHostAddress(),
        env.getProperty("server.port"));

}
项目:nohibernate-spring-example    文件:NoHibernateApplication.java   
public static void main(String[] args) {
    /*
     * Set classloader you want NoHibernate use to load classes
     * (usually it is the classloader of one of your classpath classes)
     */
    NoHibernateUtils.setClassLoader(NoHibernateApplication.class.getClassLoader());

    /*
     * Start Spring Boot application
     */
    SpringApplication.run(NoHibernateApplication.class, args);
}
项目:Auts_Assert_manager    文件:SharedWifiMain.java   
public static void main(String[] args) {
    SpringApplication.run(SharedWifiMain.class, args);
}
项目:holunda    文件:SpringBootApplication.java   
public static void main(String[] args) {
    SpringApplication.run(SpringBootApplication.class, args);
}
项目:skip-assistant    文件:Application.java   
public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
}
项目:spring-boot-elastcsearch-example    文件:SpringBootElastcsearchExampleApplication.java   
public static void main(String[] args) {
    SpringApplication.run(SpringBootElastcsearchExampleApplication.class, args);
}
项目:Docker-and-Kubernetes-for-Java-Developers    文件:BookstoreApplication.java   
public static void main(final String[] args) {
    SpringApplication.run(BookstoreApplication.class, args);
}
项目:Spring-Security-Third-Edition    文件:CalendarApplication.java   
public static void main(String[] args) {
    SpringApplication.run(CalendarApplication.class, args);
}
项目:microservice-monitoring    文件:FrontendApplication.java   
public static void main(String[] args) {
    SpringApplication.run(FrontendApplication.class, args);
}
项目:Spring-5.0-Cookbook    文件:ListenerBootApplication.java   
public static void main(String[] args) throws Exception {
    SpringApplication.run(ListenerBootApplication.class, args);
}
项目:SpringBootStudy    文件:SpringBootActivemqApplication.java   
public static void main(String[] args) {
    SpringApplication.run(SpringBootActivemqApplication.class, args);
}
项目:Spring-5.0-Cookbook    文件:HRLoginBootApplication.java   
public static void main(String[] args) throws Exception {
    SpringApplication.run(HRLoginBootApplication.class, args);
}
项目:spring-boot-quartz-demo    文件:SpringBootQuartzAppApplication.java   
public static void main(String[] args) {
    SpringApplication.run(SpringBootQuartzAppApplication.class, args);
}
项目:pokemon    文件:App.java   
public static void main( String[] args )
{
    SpringApplication.run(App.class, args);
}
项目:java-web-services-training    文件:Jws1035Application.java   
public static void main(String[] args) {
    SpringApplication.run(Jws1035Application.class, args);
}
项目:spring-boot-jwt    文件:JwtAuthServiceApp.java   
public static void main(String[] args) {
  SpringApplication.run(JwtAuthServiceApp.class, args);
}
项目:Spring-5.0-Cookbook    文件:HRBootApplication.java   
public static void main(String[] args) throws Exception {
    SpringApplication.run(HRBootApplication.class, args);
}
项目:incubator-servicecomb-java-chassis    文件:SpringmvcServer.java   
public static void main(final String[] args) throws Exception {
  Log4jUtils.init();
  SpringApplication.run(SpringmvcServer.class, args);
}
项目:hrrs    文件:HelloApplication.java   
public static ConfigurableApplicationContext run(String[] args) {
    return SpringApplication.run(HelloApplication.class, args);
}
项目:incubator-servicecomb-java-chassis    文件:SpringMvcSpringIntegrationTest.java   
@BeforeClass
public static void init() throws Exception {
  System.setProperty("cse.uploads.directory", "/tmp");
  setUpLocalRegistry();
  context = SpringApplication.run(SpringMvcSpringMain.class);
}
项目:event-driven-spring-boot    文件:CustomerApplication.java   
public static void main(String[] args) {
    SpringApplication.run(CustomerApplication.class, args);
}
项目:zyndev-spring-cloud    文件:HystrixDashboardApplication.java   
public static void main(String[] args) {
    SpringApplication.run(HystrixDashboardApplication.class, args);
}
项目:springcloudproject    文件:ConfigServerApplication.java   
public static void main(String[] args) {
    SpringApplication.run(ConfigServerApplication.class, args);
}
项目:spring-cloud-dashboard    文件:LocalDataFlowServer.java   
public static void main(String[] args) {
    SpringApplication.run(LocalDataFlowServer.class, args);
}
项目:Mastering-Software-Testing-with-JUnit-5    文件:MySpringBootApplication.java   
public static void main(String[] args) throws Exception {
    new SpringApplication(MySpringBootApplication.class).run(args);
}
项目:gauravbytes    文件:App.java   
public static void main(String[] args) {
    SpringApplication.run(App.class, args);
}
项目:spring-data-examples    文件:Application.java   
public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
}
项目:onboarding-service    文件:OnboardingServiceApplication.java   
public static void main(String[] args) {
    SpringApplication.run(OnboardingServiceApplication.class, args);
}
项目:microservices-spring    文件:ServiceApplication.java   
public static void main(String[] args) {
    SpringApplication.run(ServiceApplication.class, args);
}
项目:spring-cloud-etcd    文件:App.java   
public static void main(String[] args) {
  SpringApplication.run(App.class, args);
}
项目:springboot-course    文件:CourseApplication.java   
public static void main(String[] args) throws Exception {
    SpringApplication.run(CourseApplication.class, args);
}
项目:docs-manage    文件:SsoApplication.java   
public static void main(String[] args) {
    SpringApplication.run(SsoApplication.class, args);
}
项目:FRDRV    文件:Application.java   
public static void main(String[] args) {
    SpringApplication.run(Application.class);
}
项目:athena-backend    文件:AthenaBackendApplication.java   
public static void main(String[] args) {
    SpringApplication.run(AthenaBackendApplication.class, args);
}
项目:secrets-proxy    文件:Application.java   
public static void main(String[] args) {
    System.setProperty("org.jooq.no-logo", "true");
    SpringApplication.run(Application.class, args);
}
项目:Blockchain-Academic-Verification-Service    文件:UnilogServiceApplication.java   
public static void main(String[] args) {
    SpringApplication.run(UnilogServiceApplication.class, args);
}