运行rocketMQ事务消息demo不成功
hellereye opened this issue · comments
rocket MQ 环境:
ver 4.7all
broker conf:
#brokerIP1=localhost
namesrvAddr=localhost:9876
autoCreateTopicEnable= true
autoCreateSubscriptionGroup=true
运行
http://localhost:11002/success
提示异常:No route info of this topic TransactionTopic
各种尝试无果,最终检查dependencies
修改pom中rocket 依赖改成org.springframework.cloud后运行正常
<!--<dependency>-->
<!--<groupId>com.alibaba.cloud</groupId>-->
<!--<artifactId>spring-cloud-starter-stream-rocketmq</artifactId>-->
<!--</dependency>-->
<!-- <dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-rocketmq</artifactId>
<version>0.9.0.RELEASE</version>
</dependency>
-->
感谢zlt2000
更新了org.springframework.cloud包后又改回com.alibaba.cloud,和zlt说的一样是可以的;
问题居然不再重现,诡异啊;
感谢zlt2000