【发布时间】:2018-06-21 00:30:13
【问题描述】:
我有一个带有 hystrix 注释的方法,如下所示:
例如:
@HystrixCommand(fallbackMethod="testMessage")
public boolean receiveMessage(String message, String destination)
{
Code goes here
}
.
所以我有一个标志,当它为真时,回退应该启用,否则如果为假,我需要禁用回退。有没有办法做到这一点。 注意我们使用的是注解,那么有没有办法启用和禁用注解意味着根据标志启用或禁用回退。
【问题讨论】:
标签: annotations command hystrix fallback