feat(comment): 引入MQ消息重试机制

- 添加Spring Retry依赖及AOP支持
- 配置重试策略与指数退避机制
- 创建SendMqRetryHelper封装MQ发送与重试逻辑
- 替换原有RocketMQTemplate为带重试功能的实现
- 增加线程池配置以支持异步重试任务执行
- 更新测试用例中的评论内容用于验证重试机制
This commit is contained in:
2025-11-04 21:38:28 +08:00
parent 226c28885b
commit eb19d52fcb
9 changed files with 212 additions and 24 deletions

View File

@@ -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