feat(comment): 引入MQ消息重试机制
- 添加Spring Retry依赖及AOP支持 - 配置重试策略与指数退避机制 - 创建SendMqRetryHelper封装MQ发送与重试逻辑 - 替换原有RocketMQTemplate为带重试功能的实现 - 增加线程池配置以支持异步重试任务执行 - 更新测试用例中的评论内容用于验证重试机制
This commit is contained in:
@@ -14,4 +14,8 @@ mybatis-plus:
|
||||
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||
global-config:
|
||||
banner: false
|
||||
mapper-locations: classpath*:/mapperxml/*.xml
|
||||
mapper-locations: classpath*:/mapperxml/*.xml
|
||||
retry:
|
||||
max-attempts: 3 # 最大重试次数
|
||||
init-interval: 1000 # 初始延迟时间,单位 ms
|
||||
multiplier: 2 # 每次重试间隔加倍(每次乘以 2)
|
||||
|
||||
Reference in New Issue
Block a user