rocketmq-spring-boot-starter No route info of this topic, springboot-mq

安装 rocketmq-spring到本地仓库

在服务器上

mvn install -Dmaven.skip.test=true

rocketmq-spring-boot-starter No route info of this topic, springboot-mq

关闭防火墙,确保producer连接到nameserver

systemctl stop firewalld.service

检查broker是否连接上nameserver

bin目录下执行命令sh mqadmin clusterList -n localhost:9876 如果看到
#Cluster Name     #Broker Name            #BID  #Addr                  #Version                #InTPS(LOAD)       #OutTPS(LOAD) #PCWait(ms) #Hour #SPACE
DefaultCluster    DEFAULT_BROKER          0     192.168.192.129:10911  V4_2_0_SNAPSHOT          0.00(0,0ms)         0.00(0,0ms)          0 422168.55 -1.0000
也是证明broker已经连接到nameserver上。

异步发送成功

rocketmq-spring-boot-starter No route info of this topic, springboot-mq

和springboot整合的方式发送

rocketmq-spring-boot-starter No route info of this topic, springboot-mqrocketmq-spring-boot-starter No route info of this topic, springboot-mq