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