Gateway
##### 1.断言
示例:https://www.qq.com?url=qq
```yaml
spring:
cloud:
gateway:
routes:
- id: qq_route
uri: https://www.qq.com
predicates:
- Query=url,qq
```
路径重写示例:
```yml
spring:
cloud:
gateway:
routes:
- id: admin_route
uri: lb://renren-fast
predicates:
- Path=/api/**
filters:
- RewritePath=/api/(?<segment>.*),/renren-fast/$\{segment}
```
前端项目,/api
http://localhost:88/api/captcha.jpg http://localhost:8080/renren-fast/captcha.jpg