Java Code Examples for org.springframework.boot.SpringApplication#run()
The following examples show how to use
org.springframework.boot.SpringApplication#run() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StreamListenerContentTypeConversionTests.java From spring-cloud-stream with Apache License 2.0 | 6 votes |
@Test public void testContentTypeConversion() throws Exception { ConfigurableApplicationContext context = SpringApplication .run(TestSinkWithContentTypeConversion.class, "--server.port=0"); @SuppressWarnings("unchecked") TestSinkWithContentTypeConversion testSink = context .getBean(TestSinkWithContentTypeConversion.class); Sink sink = context.getBean(Sink.class); String id = UUID.randomUUID().toString(); sink.input().send(MessageBuilder.withPayload("{\"foo\":\"barbar" + id + "\"}") .setHeader("contentType", "application/json").build()); assertThat(testSink.latch.await(10, TimeUnit.SECONDS)); assertThat(testSink.receivedArguments).hasSize(1); assertThat(testSink.receivedArguments.get(0)).hasFieldOrPropertyWithValue("foo", "barbar" + id); context.close(); }
Example 2
Source File: PeriscopeApplication.java From cloudbreak with Apache License 2.0 | 5 votes |
public static void main(String[] args) { if (!versionedApplication().showVersionInfo(args)) { if (args.length == 0) { SpringApplication.run(PeriscopeApplication.class); } else { SpringApplication.run(PeriscopeApplication.class, args); } } }
Example 3
Source File: DemoApplication.java From spring-reactive-sample with GNU General Public License v3.0 | 4 votes |
public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); }
Example 4
Source File: Application.java From spring-cloud-study with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication.run(Application.class, args); }
Example 5
Source File: TestServer.java From spring-cloud-function with Apache License 2.0 | 4 votes |
public static void main(String[] args) { Set<String> list = new LinkedHashSet<>(Arrays.asList(args)); list.addAll(Arrays.asList("--server.port=8000", "--spring.cloud.function.web.export.enabled=false", "--spring.main.web-application-type=reactive")); SpringApplication.run(TestServer.class, list.toArray(new String[0])); }
Example 6
Source File: SecretManagerApplication.java From spring-cloud-gcp with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication.run(SecretManagerApplication.class, args); }
Example 7
Source File: ProducerApplication.java From spring-cloud-contract-samples with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication.run(ProducerApplication.class, args); }
Example 8
Source File: MailAutoConfigurationTest.java From vertx-spring-boot with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication.run(TestApplication.class, args); }
Example 9
Source File: SpringBootDemoCacheEhcacheApplication.java From spring-boot-demo with MIT License | 4 votes |
public static void main(String[] args) { SpringApplication.run(SpringBootDemoCacheEhcacheApplication.class, args); }
Example 10
Source File: FormSampleApplication.java From flowable-engine with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication.run(FormSampleApplication.class, args); }
Example 11
Source File: Application.java From java-docker-exec with MIT License | 4 votes |
public static void main(String[] args) { SpringApplication.run(Application.class, args); }
Example 12
Source File: AuthenticationProviderApplication.java From Spring with Apache License 2.0 | 4 votes |
public static void main(String args[]) { SpringApplication.run(AuthenticationProviderApplication.class, args); }
Example 13
Source File: ThreadPoolServerApplication.java From sofa-rpc-boot-projects with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication springApplication = new SpringApplication(ThreadPoolServerApplication.class); ApplicationContext applicationContext = springApplication.run(args); }
Example 14
Source File: ResourceServerBApplication.java From OAuth-2.0-Cookbook with MIT License | 4 votes |
public static void main(String[] args) { SpringApplication.run(ResourceServerBApplication.class, args); }
Example 15
Source File: StubRunnerBoot.java From spring-cloud-contract with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication.run(StubRunnerBoot.class, args); }
Example 16
Source File: EurekaApplication.java From blog_demos with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication.run(EurekaApplication.class, args); }
Example 17
Source File: AlipayGatewayServerBootstrap.java From redis-distributed-lock with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication.run(AlipayGatewayServerBootstrap.class, args); LOGGER.info("redis-distributed-lock-demo-spring启动完成......"); }
Example 18
Source File: WebfluxTemplateApplication.java From webFluxTemplate with MIT License | 4 votes |
public static void main(String[] args) { SpringApplication app = new SpringApplication(WebfluxTemplateApplication.class); app.setWebApplicationType(WebApplicationType.REACTIVE); app.run(args); }
Example 19
Source File: SampleApplication.java From spring-init with Apache License 2.0 | 4 votes |
public static void main(String[] args) { SpringApplication app = new SpringApplication(SampleApplication.class); app.setLogStartupInfo(false); app.run(args); }
Example 20
Source File: EasyWebApplication.java From easyweb-shiro with MIT License | 4 votes |
public static void main(String[] args) { SpringApplication.run(EasyWebApplication.class, args); }