diff options
author | 2018-06-04 14:02:24 +0300 | |
---|---|---|
committer | 2018-06-04 14:17:06 +0300 | |
commit | 41d8ff7b8796491cb3d85d098257811767616782 (patch) | |
tree | 7a1366f6c31e3ed27b795e0192b446ad017d7e92 /workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java | |
parent | f0249c9508dc710e94c8558d7487fdeb99ef28a2 (diff) |
create basic application infra for workflow
Change-Id: Iedc617a626317a7f1a5b1389fe1666ccae2c43f3
Issue-ID: SDC-1369
Signed-off-by: avigaffa <avi.gaffa@amdocs.com>
Diffstat (limited to 'workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java')
-rw-r--r-- | workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java new file mode 100644 index 00000000..e1bd8eac --- /dev/null +++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/SpringBootWebApplication.java @@ -0,0 +1,21 @@ +package org.onap.sdc.workflow; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory; +import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory; +import org.springframework.context.annotation.Bean; + + +@SpringBootApplication +public class SpringBootWebApplication { + public static void main(String[] args) { + SpringApplication.run(SpringBootWebApplication.class, args); + } + + @Bean + public ConfigurableServletWebServerFactory webServerFactory() { + JettyServletWebServerFactory factory = new JettyServletWebServerFactory(); + return factory; + } +} |