为什么转发不响应任何数据?

我有一个使用Spring Cloud Gateway的应用程序。我的yaml文件中有Hystrix的配置。

- id: method_route
          uri: https://httpbin.org
          predicates:
            - Method=GET
            - Path=/delay/*
          filters:
            - name: Hystrix
              args:
                name: cmd
                fallbackUri: forward:/fallback
- id: ingredients-fallback
          uri: http://google.com/
          predicates:
            - Path=/fallback
          filter:
            - RewritePath=/fallback,/gmail

因此,如果我将请求发送到/ fallback,我会从google.com/gmail接收html数据,但是如果我将请求发送到/ delay / 10且Hystrix转发到/ fallback,我只会得到Http Status 200等等。 为什么当hystrix将我转发到适当的路径时,为什么我仅获得http状态?

klf0818 回答:为什么转发不响应任何数据?

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

大家都在问