spring:
application:
name: gateway
cloud:
gateway:
routes:
- id: member
uri: lb://member
predicates:
- Path=/member/**
需要引入下面负载均衡依赖否则503找不到服务
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
文章来源地址https://uudwc.com/A/wNbzj
文章来源:https://uudwc.com/A/wNbzj