spring:
cloud:
gateway:
routes:
- id: jeesdp-system
# 注册中⼼相结合的路由配置⽅式
uri: lb://jeesdp-system
# 要匹配的路径
predicates:
- Path=/system/**
# 截掉路径第一层
filters:
- StripPrefix=1
- id: jeesdp-admin
uri: lb://jeesdp-admin
predicates:
- Path=/admin/**
filters:
- StripPrefix=1
- id: jeesdp-authentication
uri: lb://jeesdp-authentication
predicates:
- Path=/oauth/**
filters:
- StripPrefix=1
- id: jeesdp-ui
# 通过http请求匹配
uri: http://127.0.0.1:7001
predicates:
- Path=/**
Spring Cloud Gateway 配置说明
最新推荐文章于 2025-03-21 06:00:00 发布