Spring Cloud Gateway-安全路由排除

我正在将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文件公开-可能吗?

wang0707 回答:Spring Cloud Gateway-安全路由排除

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3153382.html

大家都在问