1.3.5、通过Method匹配
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - 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 - Method=GET #请求方式为GET时匹配 filters: - StripPrefix=1