Spring Cloud构建微服务架构(五)服务网关
This commit is contained in:
@@ -25,12 +25,6 @@
|
|||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-zuul</artifactId>
|
<artifactId>spring-cloud-starter-zuul</artifactId>
|
||||||
@@ -41,11 +35,6 @@
|
|||||||
<artifactId>spring-cloud-starter-eureka</artifactId>
|
<artifactId>spring-cloud-starter-eureka</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
spring.application.name=api-gateway
|
spring.application.name=api-gateway
|
||||||
server.port=5555
|
server.port=5555
|
||||||
|
|
||||||
zuul.ignoredServices="*"
|
|
||||||
|
|
||||||
# routes to serviceId
|
# routes to serviceId
|
||||||
zuul.routes.api-a.path=/api-a/**
|
zuul.routes.api-a.path=/api-a/**
|
||||||
zuul.routes.api-a.serviceId=service-A
|
zuul.routes.api-a.serviceId=service-A
|
||||||
|
|||||||
Reference in New Issue
Block a user