一、 异常栈

***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' that could not be found.

The following candidates were found but could not be injected:
- Bean method 'rocketMQTemplate' in 'RocketMQAutoConfiguration' not loaded because @ConditionalOnBean (types: org.apache.rocketmq.client.producer.DefaultMQProducer; SearchStrategy: all) did not find any beans of type org.apache.rocketmq.client.producer.DefaultMQProducer


Action:

Consider revisiting the entries above or defining a bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' in your configuration.

追踪到是DefaultMQProducer配置问题

二、 打开RocketMQAutoConfiguration

Bean method rocketMQTemplate in RocketMQAutoConfiguration not loaded坑_YML

配置生效需要设置​​rocketmq.producer.group​​属性

在​​application.yml​​中加入默认即可