摘要:
调用某个接口时,可能因为数据同步延迟等原因导致抛异常,很希望程序可以重试指定次数后再结束运行。 注意:接口需配合事务,当抛异常时,进行回滚,以撤销异常之前对数据库的操作。 @Aspect @Component public class AspectTryCount implements Ordere 阅读全文
posted @ 2020-09-03 09:00
kongieg
阅读(1033)
评论(0)
推荐(0)
浙公网安备 33010602011771号