From c1bd8b07b59401acbf753ed7041053823cb5d23d Mon Sep 17 00:00:00 2001 From: huzekang <1040080742@qq.com> Date: Wed, 17 Apr 2019 12:22:40 +0800 Subject: [PATCH] =?UTF-8?q?add:=201.springboot=E6=A8=A1=E5=9D=97=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=EF=BC=8C=E8=B0=83=E7=94=A8core=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=9A=84engine=E5=90=AF=E5=8A=A8=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datax-web/.gitignore | 30 +++++++++++ datax-web/pom.xml | 53 +++++++++++++++++++ .../wugui/dataxweb/DataxWebApplication.java | 20 +++++++ .../src/main/resources/application.properties | 1 + .../dataxweb/DataxWebApplicationTests.java | 16 ++++++ 5 files changed, 120 insertions(+) create mode 100644 datax-web/.gitignore create mode 100644 datax-web/pom.xml create mode 100644 datax-web/src/main/java/com/wugui/dataxweb/DataxWebApplication.java create mode 100644 datax-web/src/main/resources/application.properties create mode 100644 datax-web/src/test/java/com/wugui/dataxweb/DataxWebApplicationTests.java diff --git a/datax-web/.gitignore b/datax-web/.gitignore new file mode 100644 index 00000000..9deeee6a --- /dev/null +++ b/datax-web/.gitignore @@ -0,0 +1,30 @@ +HELP.md +/target/ +!.mvn/wrapper/maven-wrapper.jar +.mvn +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +mvnw +mvnw.cmd +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +/build/ + +### VS Code ### +.vscode/ diff --git a/datax-web/pom.xml b/datax-web/pom.xml new file mode 100644 index 00000000..38323b20 --- /dev/null +++ b/datax-web/pom.xml @@ -0,0 +1,53 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.1.4.RELEASE + + + com.wugui + datax-web + 0.0.1-SNAPSHOT + datax-web + Demo project for Spring Boot + + + 1.8 + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + com.alibaba.datax + datax-core + 0.0.1-SNAPSHOT + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/datax-web/src/main/java/com/wugui/dataxweb/DataxWebApplication.java b/datax-web/src/main/java/com/wugui/dataxweb/DataxWebApplication.java new file mode 100644 index 00000000..363c7548 --- /dev/null +++ b/datax-web/src/main/java/com/wugui/dataxweb/DataxWebApplication.java @@ -0,0 +1,20 @@ +package com.wugui.dataxweb; + +import com.alibaba.datax.core.Engine; +import org.springframework.boot.ApplicationArguments; +import org.springframework.boot.ApplicationRunner; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class DataxWebApplication implements ApplicationRunner { + + public static void main(String[] args) { + SpringApplication.run(DataxWebApplication.class, args); + } + + @Override + public void run(ApplicationArguments args) throws Exception { + Engine.startJob(); + } +} diff --git a/datax-web/src/main/resources/application.properties b/datax-web/src/main/resources/application.properties new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/datax-web/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/datax-web/src/test/java/com/wugui/dataxweb/DataxWebApplicationTests.java b/datax-web/src/test/java/com/wugui/dataxweb/DataxWebApplicationTests.java new file mode 100644 index 00000000..9fca373f --- /dev/null +++ b/datax-web/src/test/java/com/wugui/dataxweb/DataxWebApplicationTests.java @@ -0,0 +1,16 @@ +package com.wugui.dataxweb; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class DataxWebApplicationTests { + + @Test + public void contextLoads() { + } + +}