1.3.8、通过RemoteAddr匹配
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - RemoteAddr=192.168.234.1/0 #其中 192.168.234.1 是 IP 地址,0 是子网掩码) filters: - StripPrefix=1
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - RemoteAddr=192.168.234.1/0 #其中 192.168.234.1 是 IP 地址,0 是子网掩码) filters: - StripPrefix=1