use of org.springframework.boot.SpringApplication in project spring-boot-admin by codecentric.
the class ClientReactiveApplicationTest method setUp.
@BeforeEach
@Override
public void setUp() throws Exception {
super.setUp();
SpringApplication application = new SpringApplication(TestClientApplication.class);
application.setWebApplicationType(WebApplicationType.REACTIVE);
instance = application.run("--spring.application.name=Test-Client", "--server.port=0", "--management.endpoints.web.base-path=/mgmt", "--endpoints.health.enabled=true", "--spring.boot.admin.client.url=" + wireMock.url("/"));
}
use of org.springframework.boot.SpringApplication in project goci by EBISPOT.
the class ValidatorApplication method main.
public static void main(String... args) {
System.out.println("Starting association validator service...");
SpringApplication app = new SpringApplication(ValidatorApplication.class);
app.setBannerMode(Banner.Mode.OFF);
app.setLogStartupInfo(false);
app.run(args);
System.exit(exitCode);
}
use of org.springframework.boot.SpringApplication in project goci by EBISPOT.
the class MappingApplication method main.
public static void main(String... args) {
String filename = "gwas_mapper.night.";
System.setProperty("logfilename", filename);
System.out.println("Starting mapping service...");
SpringApplicationBuilder builder = new SpringApplicationBuilder(MappingApplication.class);
SpringApplication app = builder.web(false).addCommandLineProperties(true).build(args);
ApplicationContext ctx = app.run(args);
System.out.println("Application executed successfully!");
int code = app.exit(ctx);
if (code > 0) {
System.exit(code);
}
}
use of org.springframework.boot.SpringApplication in project goci by EBISPOT.
the class DiagramGenerator method main.
public static void main(String[] args) {
System.out.println("Starting diagram generator...");
SpringApplicationBuilder builder = new SpringApplicationBuilder(DiagramGenerator.class);
SpringApplication app = builder.web(false).addCommandLineProperties(true).build(args);
ApplicationContext ctx = app.run(args);
System.out.println("Application executed successfully!");
}
use of org.springframework.boot.SpringApplication in project pinpoint by naver.
the class BasicStarter method start.
public void start(String[] args) {
SpringApplicationBuilder builder = new SpringApplicationBuilder();
builder.sources(sources);
builder.web(WebApplicationType.SERVLET);
builder.bannerMode(Banner.Mode.OFF);
builder.listeners(new ProfileResolveListener());
builder.listeners(new EnvironmentLoggingListener());
builder.listeners(new ExternalEnvironmentListener(externalPropertySourceName, externalConfigurationKey));
builder.listeners(new PinpointSpringBanner());
SpringApplication springApplication = builder.build();
springApplication.run(args);
}
Aggregations