List of usage examples for org.springframework.boot.builder SpringApplicationBuilder SpringApplicationBuilder
public SpringApplicationBuilder(Class<?>... sources)
From source file:com.blackducksoftware.integration.hub.docker.Application.java
public static void main(final String[] args) { new SpringApplicationBuilder(Application.class).logStartupInfo(false).run(args); }
From source file:org.createnet.raptor.auth.service.Application.java
public static void main(String[] args) { ConfigurableApplicationContext app = new SpringApplicationBuilder(Application.class) .bannerMode(Banner.Mode.OFF).logStartupInfo(false).headless(true).web(true) // .initializers(new YamlFileApplicationContextInitializer()) .application().run(args);/* ww w. j a v a2 s . c o m*/ }
From source file:com.sequenceiq.ambari.shell.AmbariShell.java
public static void main(String[] args) { if (args.length == 0) { System.out.println("\nAmbari Shell: Interactive command line tool for managing Apache Ambari.\n\n" + "Usage:\n" + " java -jar ambari-shell.jar : Starts Ambari Shell in interactive mode.\n" + " java -jar ambari-shell.jar --cmdfile=<FILE> : Ambari Shell executes commands read from the file.\n\n" + "Options:\n" + " --ambari.host=<HOSTNAME> Hostname of the Ambari Server [default: localhost].\n" + " --ambari.port=<PORT> Port of the Ambari Server [default: 8080].\n" + " --ambari.user=<USER> Username of the Ambari admin [default: admin].\n" + " --ambari.password=<PASSWORD> Password of the Ambari admin [default: admin].\n\n" + "Note:\n" + " At least one option is mandatory."); System.exit(1);//from w w w .ja va2 s .c om } new SpringApplicationBuilder(AmbariShell.class).showBanner(false).run(args); }
From source file:burstcoin.observer.Observer.java
public static void main(String[] args) throws Exception { LOG.info("Starting the engines ... please wait!"); // overwritten by application.properties Map<String, Object> properties = new HashMap<String, Object>(); properties.put("server.port", ObserverProperties.getObserverPort()); properties.put("spring.mail.protocol", ObserverProperties.getMailProtocol()); properties.put("spring.mail.host", ObserverProperties.getMailHost()); properties.put("spring.mail.port", ObserverProperties.getMailPort()); properties.put("spring.mail.username", ObserverProperties.getMailUsername()); properties.put("spring.mail.password", ObserverProperties.getMailPassword()); properties.put("spring.thymeleaf.cache", ObserverProperties.isEnableTemplateCaching()); new SpringApplicationBuilder(Observer.class).properties(properties).build(args).run(); }
From source file:demo.FleetLocationRandomizer.java
public static void main(String[] args) { new SpringApplicationBuilder(FleetLocationRandomizer.class).web(false) .properties("spring.jackson.serialization.INDENT_OUTPUT=true").run(args); }
From source file:web.ApplicationBase.java
public static SpringApplicationBuilder applicationBuilder(Class<?> source) { return new SpringApplicationBuilder(source).banner(new GeneratedBanner()); }
From source file:apps.ConfigServer.java
public static ConfigurableApplicationContext start(String... args) { return new SpringApplicationBuilder(ConfigServer.class).showBanner(false).profiles("native") .properties("server.port=8888", "spring.cloud.config.server.native.searchLocation:file:./src/test/resources/config/") .run(args);/*from www. ja v a2 s . co m*/ }
From source file:at.ac.univie.isc.asio.spring.ApplicationRunner.java
public static ApplicationRunner run(final Object... sources) { return create(new SpringApplicationBuilder(sources)); }
From source file:sensefy.application.runner.App.java
private static SpringApplicationBuilder start(Class<?>... sources) { return new SpringApplicationBuilder(App.class).showBanner(false).child(sources).web(true); }
From source file:demo.mapper.MapperDisabledIntegrationTest.java
@Test public void modelMapperRuns() throws Exception { this.thrown.expect(UnsatisfiedDependencyException.class); this.thrown.expectMessage("ModelMapper"); new SpringApplicationBuilder(Application.class).properties("modelmapper.enabled=false").run(); }