0
我找不到任何有关我需要的操作可能性的信息。我正在使用@Retry处理方法使用@Retryable注释。 Smth像这样:Spring Retry @Recover传递参数
@Retryable(value = {Exception.class}, maxAttempts = 5, backoff = @Backoff(delay = 10000))
public void update(Integer id)
{
execute(id);
}
@Recover
public void recover(Exception ex)
{
logger.error("Error when updating object with id {}", id);
}
问题是我不知道如何将我的参数“id”传递给recover()方法。有任何想法吗?提前致谢。