POM
<dependency>
<groupId>com.zhongjia.designer</groupId>
<artifactId>export-base</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-tools</artifactId>
<version>4.9.1</version>
<exclusions><!--把logback忽略,使用log4j-->
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>
yml
api: project: lili_group-dev
rocketmq: name-server: 127.0.0.1:9876 producer: group: lili_group-dev send-message-timeout: 30000 consumer: group: lili_group-dev
QrEsWorksListener
@Slf4j @Service @RocketMQMessageListener(topic = "lili_group-dev-lili_groud-dev-lili_group-render_testv", consumerGroup = "lili_group-dev-" + "render_test" + "v", consumeThreadMax = 1) public class QrEsWorksListener implements RocketMQListener<String>, RocketMQPushConsumerLifecycleListener {
发送
消费
本地启动MQ
教程windows下RocketMQ下载安装教程_暴躁的程序猿灬的博客-CSDN博客_rocketmq windows安装