use of org.springframework.boot.builder.SpringApplicationBuilder in project java-chassis by ServiceComb.
the class TestClientApplication method main.
public static void main(String[] args) throws Exception {
try {
new SpringApplicationBuilder().web(WebApplicationType.NONE).sources(TestClientApplication.class).run(args);
CategorizedTestCaseRunner.runCategorizedTestCase("consumer");
} catch (Exception e) {
TestMgr.failed("test case run failed", e);
LOGGER.error("-------------- test failed -------------");
LOGGER.error("", e);
LOGGER.error("-------------- test failed -------------");
}
TestMgr.summary();
}
use of org.springframework.boot.builder.SpringApplicationBuilder in project java-chassis by ServiceComb.
the class JaxrsServer method main.
public static void main(final String[] args) throws Exception {
RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
new SpringApplicationBuilder().sources(JaxrsServer.class).web(WebApplicationType.NONE).build().run(args);
}
use of org.springframework.boot.builder.SpringApplicationBuilder in project java-chassis by ServiceComb.
the class JaxrsClient method main.
public static void main(String[] args) throws Exception {
RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
new SpringApplicationBuilder().sources(JaxrsClient.class).web(WebApplicationType.NONE).build().run(args);
org.apache.servicecomb.demo.jaxrs.client.JaxrsClient.run();
TestMgr.summary();
}
use of org.springframework.boot.builder.SpringApplicationBuilder in project vft-capture by videofirst.
the class VfCapture method main.
public static void main(String[] args) {
// Check to see if we're creating a password
SecurityUtils.checkCreatePassword(args);
// Create application
SpringApplicationBuilder builder = new SpringApplicationBuilder(VfCapture.class);
builder.headless(false).properties("spring.config.name:capture").run(args);
}
use of org.springframework.boot.builder.SpringApplicationBuilder in project kylo by Teradata.
the class KyloUpgrader method upgrade.
public void upgrade() {
System.setProperty(SpringApplication.BANNER_LOCATION_PROPERTY, "upgrade-banner.txt");
ConfigurableApplicationContext upgradeCxt = new SpringApplicationBuilder(KyloUpgradeConfig.class).web(true).profiles(KYLO_UPGRADE).run();
try {
KyloUpgradeService upgradeService = upgradeCxt.getBean(KyloUpgradeService.class);
// Keep upgrading until upgrade() returns true, i.e. we are up-to-date;
while (!upgradeService.upgradeNext()) {
;
}
} finally {
upgradeCxt.close();
}
}
Aggregations