diff --git a/gateway/.gitignore b/gateway/.gitignore new file mode 100644 index 0000000..2af7cef --- /dev/null +++ b/gateway/.gitignore @@ -0,0 +1,24 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/gateway/pom.xml b/gateway/pom.xml new file mode 100644 index 0000000..2c82d1d --- /dev/null +++ b/gateway/pom.xml @@ -0,0 +1,113 @@ + + + 4.0.0 + + gateway + jar + + gateway + micro fast gateway + + + com.micro.fast + micro-fast + 0.0.1-SNAPSHOT + + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + org.springframework.cloud + spring-cloud-starter-config + + + + org.springframework.cloud + spring-cloud-starter-eureka + + + org.springframework.cloud + spring-cloud-starter-ribbon + + + org.springframework.cloud + spring-cloud-starter-feign + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.cloud + spring-cloud-starter-zuul + + + + + org.springframework.cloud + spring-cloud-starter-hystrix + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.projectlombok + lombok + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/gateway/src/main/java/com/micro/fast/gateway/GatewayApplication.java b/gateway/src/main/java/com/micro/fast/gateway/GatewayApplication.java new file mode 100644 index 0000000..4bf698b --- /dev/null +++ b/gateway/src/main/java/com/micro/fast/gateway/GatewayApplication.java @@ -0,0 +1,12 @@ +package com.micro.fast.gateway; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class GatewayApplication { + + public static void main(String[] args) { + SpringApplication.run(GatewayApplication.class, args); + } +} diff --git a/gateway/src/main/resources/application.properties b/gateway/src/main/resources/application.properties new file mode 100644 index 0000000..e69de29 diff --git a/gateway/src/test/java/com/micro/fast/gateway/GatewayApplicationTests.java b/gateway/src/test/java/com/micro/fast/gateway/GatewayApplicationTests.java new file mode 100644 index 0000000..22cdb82 --- /dev/null +++ b/gateway/src/test/java/com/micro/fast/gateway/GatewayApplicationTests.java @@ -0,0 +1,16 @@ +package com.micro.fast.gateway; + +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 GatewayApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/pom.xml b/pom.xml index a259195..3dfe8ba 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,7 @@ org.projectlombok lombok ${lombok.version} + provided