1.3.6、通过Path匹配
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Path=/gateway # 通过Path匹配,当请求路径为/gateway时匹配 - Method=GET #请求方式为GET时匹配 filters: - StripPrefix=1
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Path=/gateway # 通过Path匹配,当请求路径为/gateway时匹配 - Method=GET #请求方式为GET时匹配 filters: - StripPrefix=1