IDEA初始化springboot项目,勾选ActiveMQ 5,创建相应的java类 生产者 消费者 配置yml 主启动类 启动activemq服务并运行项目后发现并不能如期完成MQ的集成,会有如下报错 org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userProducer’: Injection of resource dependencies failed; 解决方案 :pom.xml中添加如下 测试成功