我正在将Spring-cloud-gateway与OAuth2结合使用,想知道是否存在使用yaml文件从安全性中排除路由的明智方法。到目前为止,我只是使用似乎运行良好的标准配置:
spring:
cloud:
gateway:
routes:
...
- id: <id>
uri: <uri_with_lb>
predicates:
- Path=/api/public/...
filters:
- RewritePath=/api/public/... /public/...
# - TokenRelay=
但是我想将此路径/路由-api/public
仅使用yaml文件公开-可能吗?