opt: 任务发送消费者topic定义

This commit is contained in:
2026-07-23 16:48:05 +08:00
parent 65fb53fc00
commit 6f566b7a69
11 changed files with 94 additions and 87 deletions

View File

@@ -0,0 +1,11 @@
--- #################### MQ 消息队列相关配置 ####################
# rocketmq 配置项,对应 RocketMQProperties 配置类
rocketmq:
name-server: 192.168.81.193:9876
producer:
group: lms-producer-dev-group # 事务消息需要配置一样
send-message-timeout: 3000
consumer:
lms-task-operate:
group: lms-task-status-change-dev-group
topic: lms-task-status-change-dev-topic

View File

@@ -13,6 +13,7 @@ spring:
import:
- optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
- optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置
- optional:classpath:application-mq-${spring.profiles.active}.yaml # 加载 MQ 配置
# Servlet 配置
servlet: