1、引入依赖
![](https://img.haomeiwen.com/i15601502/3d1a50bbd17ed537.png)
2、配置相关信息
mq.nameserver.addr=192.168.147.130:9876 (配置nameserver地址)
mq.topicname=stockTopic (配置topic)
3、创建producer
![](https://img.haomeiwen.com/i15601502/ef01b08e6568a65f.png)
4、创建consumer
![](https://img.haomeiwen.com/i15601502/662037337625bbee.png)
1、引入依赖
2、配置相关信息
mq.nameserver.addr=192.168.147.130:9876 (配置nameserver地址)
mq.topicname=stockTopic (配置topic)
3、创建producer
4、创建consumer
本文标题:springboot整合rocketmq
本文链接:https://www.haomeiwen.com/subject/suhvlctx.html
网友评论