开发者社区> 问答> 正文

Springboot集成阿里RocketMQ提示route info of this topic

项目需要集成阿里RocketMQ,使用测试main方法可以调通,但是换成springboot版,开始提示 route info of this topic。感觉是某项配置没有配对。 现在配置 properties.setProperty(PropertyKeyConst.AccessKey, this.accessKey); properties.setProperty(PropertyKeyConst.SecretKey, this.secretKey); properties.setProperty(PropertyKeyConst.NAMESRV_ADDR, this.nameSrvAddr); properties.setProperty(PropertyKeyConst.GROUP_ID, groupId); properties.setProperty(PropertyKeyConst.INSTANCE_ID, instanceId); Message msg = new Message(mqConfig.getTopictwo(),mqConfig.getTag(),"Hello MQ".getBytes());

烦劳大佬指点一波

展开
收起
游客qiwykvjg3ia2o 2020-06-09 09:25:24 982 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
阿里邮箱—安全高效集成 立即下载
集成智能接入网关APP:优化企业级移动办公网络 立即下载
云效助力企业集成安全到DevOps中 立即下载