1.@Retryable修饰的方法不能为静态方法
2.@Retryable修饰的方法体中如果try{}catch了需要重试的方法,重试会失效
3.含有@Retryable的Service需要被注入到Spring ApplicationContext中
4.跨module的@Autowired要注意扫描路径
Spring Retry的踩坑记录
最新推荐文章于 2024-01-26 15:17:40 发布
1.@Retryable修饰的方法不能为静态方法
2.@Retryable修饰的方法体中如果try{}catch了需要重试的方法,重试会失效
3.含有@Retryable的Service需要被注入到Spring ApplicationContext中
4.跨module的@Autowired要注意扫描路径