java - Spring cloud注解@HystrixCommand正确调用到了方法,但还会是持行fallbackMethod的方法
PHP中文网
PHP中文网 2017-04-18 10:30:42
0
2
471

Spring cloud注解@HystrixCommand正确调用到了方法,但还会是持行fallbackMethod的方法,请问是什么情况下会产生这种情况?

PHP中文网
PHP中文网

认证高级PHP讲师

Antworte allen(2)
小葫芦

首先检查一下是不是里面抛异常了。

阿神

你在测试这个的时候 是不是进行了断点调试了
如果是断点调试可能会这样
因为你可能没有进行超时设置 导致报了超时错误
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 5000
对这个进行设置以下 可能有效

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!