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

@@ -22,7 +22,7 @@ import org.springframework.stereotype.Component;
topic = "${rocketmq.consumer.wms-task-operate.topic}",
consumerGroup = "${rocketmq.consumer.wms-task-operate.group}"
)
public class TaskStatusChangeConsumer implements RocketMQListener<TaskEventMessage> {
public class WmsTaskStatusChangeConsumer implements RocketMQListener<TaskEventMessage> {
@Resource
private TaskFactory taskFactory;

View File

@@ -2,6 +2,9 @@
# rocketmq 配置项,对应 RocketMQProperties 配置类
rocketmq:
name-server: 192.168.81.193:9876
producer:
group: wms-producer-dev-group # 事务消息需要配置一样
send-message-timeout: 3000
consumer:
wms-task-operate:
group: wms-task-status-change-dev-group