Example usage for org.springframework.boot.builder SpringApplicationBuilder SpringApplicationBuilder

List of usage examples for org.springframework.boot.builder SpringApplicationBuilder SpringApplicationBuilder

Introduction

In this page you can find the example usage for org.springframework.boot.builder SpringApplicationBuilder SpringApplicationBuilder.

Prototype

public SpringApplicationBuilder(Class<?>... sources) 

Source Link

Usage

From source file:com.snv.BudgetManagementApplication.java

public static void main(final String[] args) throws Exception {
    new SpringApplicationBuilder(BudgetManagementApplication.class).web(true).run(args);
}

From source file:jp.co.ctc_g.rack.api.starter.RackApiStarter.java

/**
 * ???//from w  ww .  j  a v a2  s . c o m
 * @param args 
 */
public static void main(String[] args) {

    new SpringApplicationBuilder(RackApiContextConfig.class).logStartupInfo(true).showBanner(false).run(args);
}

From source file:com.mindtree.aig.SampleJerseyApplication.java

public static void main(String[] args) {
    new SampleJerseyApplication().configure(new SpringApplicationBuilder(SampleJerseyApplication.class))
            .run(args);//  w w  w  .j  av  a  2s  .  c o m
}

From source file:jp.co.ctc_g.rack.websocket.starter.RackWebSocketApiStarter.java

/**
 * ???// w  w w.  j ava2s  .  c  o  m
 * @param args 
 */
public static void main(String[] args) {

    new SpringApplicationBuilder(RackWebSocketApiApplidation.class).showBanner(false).logStartupInfo(true)
            .run(args);
}

From source file:jp.co.ctc_g.rack.resource_manager.starter.RackResourceManagerStarter.java

/**
 * ???/*from  w w  w . ja v  a  2 s.  c  om*/
 * @param args 
 */
public static void main(String[] args) {

    new SpringApplicationBuilder(RackResourceManagerContextConfig.class).logStartupInfo(true).showBanner(false)
            .run(args);
}

From source file:com.herazade.echonest.tools.gui.EchoNestToolsApplication.java

public static void main(String[] args) throws Exception {
    new SpringApplicationBuilder(EchoNestToolsApplication.class).headless(false).web(false).run(args);
}

From source file:com.culturedear.CounterpointService.java

public static void main(String[] args) {
    new SpringApplicationBuilder(CounterpointService.class).web(true).run(args);
}

From source file:io.fabric8.kubeflix.examples.zuul.ZuulProxyApplication.java

public static void main(String[] args) {
    new SpringApplicationBuilder(ZuulProxyApplication.class).web(true).run(args);
}

From source file:org.apache.geode.geospatial.client.GeospatialSimulator.java

public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {

    new SpringApplicationBuilder(GeospatialSimulator.class).web(false).run();
}

From source file:cn.vpclub.spring.boot.kafka.demo2.Application.java

public static void main(String[] args) throws Exception {
    ConfigurableApplicationContext context = new SpringApplicationBuilder(Application.class).web(false)
            .run(args);/*from   w  ww.ja v a 2  s  .c o  m*/

    KafkaMessageQueue mq = new KafkaMessageQueue(context);
    for (int i = 0; i < 10; i++) {
        String response = mq.receive("demo1.to.demo2", 0);
        if (null != response) {
            mq.send("demo2.to.demo1", null, "test.key", "message replied from demo2", 0);
        }

        logger.info("received: " + response);
        logger.info("sent back to demo1: " + response);

        sleep(100L);
    }

    context.close();
    System.exit(0);
}