gateway-route-example.yml 361 B

123456789101112131415
  1. # 网关路由配置示例
  2. # 将此配置添加到 Nacos 的 alien-gateway.yml 配置文件中
  3. spring:
  4. cloud:
  5. gateway:
  6. routes:
  7. # 微信点餐模块路由配置
  8. - id: aliendining
  9. uri: http://${route_or_local_ip}:30014
  10. predicates:
  11. - Path=/aliendining/**
  12. filters:
  13. - StripPrefix=1