yaml
spring:
application:
name: gateway
cloud:
gateway:
routes:
- id: member
uri: lb://member
predicates:
- Path=/member/**
需要引入下面负载均衡依赖否则503找不到服务
xml
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>