可以在WebFlux上重试
我有一种用@scheduled和 @retrybry进行注释的方法。此方法可与MVC一起使用,但是同样的方法在WebFlux上不起作用。
调度程序可以正常工作,但无法重试。这仅在WebFlux上发生。
@Scheduled(cron = "${config.refresh.interval}")
@Retryable(backoff = @Backoff(delayExpression = "${config.backoff.delay:999}"))
public void refreshConfig() {
// Load config values here
}
Boot Version - 2.6.7
spring-retry - 1.3.3
I've have a method which is annotated with @Scheduled and @Retryable. This method work fine with Mvc but the same method is not working on Webflux.
The scheduler works fine but Retryable is not happening. This happens only on Webflux.
@Scheduled(cron = "${config.refresh.interval}")
@Retryable(backoff = @Backoff(delayExpression = "${config.backoff.delay:999}"))
public void refreshConfig() {
// Load config values here
}
Boot Version - 2.6.7
spring-retry - 1.3.3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论