【问题标题】:How to call different hosts at runtime in spring cloud gatewayspring cloud gateway中如何在运行时调用不同的主机
【发布时间】:2021-08-19 11:43:36
【问题描述】:

API 应该在运行时根据请求标头中的 env 变量调用不同的主机

【问题讨论】:

    标签: java spring-boot spring-cloud spring-cloud-gateway spring-bean


    【解决方案1】:

    我认为您的意思基本上是您需要基于请求标头和 ENV 变量类型的动态路由。您可以查看这篇可能对您有用的文章。

    Example of dynamic routing Spring Cloud Gateway

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-15
      • 2020-12-13
      • 2020-11-27
      • 2020-09-06
      • 2019-08-03
      • 2023-03-31
      • 2020-03-04
      • 2018-11-22
      相关资源
      最近更新 更多