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() { + } + +}