小编Moh*_*gal的帖子

Spring Cloud Gateway 路由到自身


我在 Spring Cloud Gateway 的实现中有一个场景(仅供参考,调用该服务自定义 api 网关)。在此“自定义 API 网关”中,我想定义路由、过滤器、谓词并将请求转发到“自定义 API 网关”中的自定义端点?有办法实现吗?除了转发到“自定义 api 网关”中的 URI 之外,一切正常

这是一个例子

id: UpdateUser
uri:  SHOULD NOT GO DOWNSTREAM (endpoint is in 'custom api gateway')
predicates:
 - path=/api/users
filters:
 - ValidateSession
Run Code Online (Sandbox Code Playgroud)

谢谢塞吉

cloud spring routes gateway

8
推荐指数
1
解决办法
1833
查看次数

标签 统计

cloud ×1

gateway ×1

routes ×1

spring ×1