一、依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
二、配置
spring:
cloud:
gateway:
routes:
- id: product
uri: http://localhost:9000
predicates:
- Host=product.muke.com**
- id: auth
uri: http://localhost:5000
predicates:
- Path=/oauth/token
- id: skill
uri: http://localhost:13000
predicates:
- Path=/skill
标签:http,SpringCloud,uri,id,cloud,predicates,Gateway,localhost
From: https://www.cnblogs.com/meidanlong/p/17913130.html