急:依赖问题

来源:9-10 Spring消息编程模型02-编写消费者

hthonor

2020-10-20

spring boot 2.2.5.RELEASE

spring cloud 版本 Hoxton.SR3

spring cloud alibaba  版本2.2.1.RELEASE

rocketmq 版本4.7.1

引入rocketmq依赖

<!--rocketmq-->
<dependency>
  <groupId>com.alibaba.cloud</groupId>
  <artifactId>spring-cloud-starter-stream-rocketmq</artifactId>
</dependency>

奇怪的是,在centent-cneter 中 是正常的,应用可以启动,也能实现发送消息。

但是在 user-center 中 引入 rocketmq依赖时,应用启动不了,报错

java.lang.IllegalStateException: Error processing condition on com.alibaba.cloud.stream.binder.rocketmq.config.RocketMQComponent4BinderAutoConfiguration.rocketMQTemplate


写回答

1回答

大目

2020-10-20

你贴出来的依赖没啥问题,试试配置和代码是怎么写的呢?

ps.

哥,不要吝啬你的帖子,异常能否多贴点。

1
6
hthonor
回复
大目
谢谢老师
2020-10-27
共6条回复

Spring Cloud Alibaba微服务从入门到进阶

面向未来微服务:熟练掌握Spring Cloud Alibaba

3085 学习 · 1324 问题

查看课程