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

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

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
小葫芦

First check if an exception is thrown inside.

阿神

Did you perform breakpoint debugging when testing this?
If it is breakpoint debugging, it may be like this.
Because you may not have set the timeout, resulting in a timeout error.
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds : 5000
Set this and the following may be effective

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template