该报错是找不到JmsMessagingTemplate,无法匹配MessagingTemplateConfiguration
报错如下:
Field jmsMessagingTemplate in com.es.basedata.mq.MqProducer required a bean of type 'org.springframework.jms.core.JmsMessagingTemplate' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
The following candidates were found but could not be injected:
- Bean method 'jmsMessagingTemplate' in 'JmsAutoConfiguration.MessagingTemplateConfiguration' not loaded because Ancestor org.springframework.boot.autoconfigure.jms.JmsAutoConfiguration did not match
解决办法:
1.手机打开微信--->搜索《Java深度编程》,或扫描下方二维码:
2.查看往期内容:找到《springBoot整合activeMQ报错JmsMessagingTemplate that could not be found解决方案》,按文章中的方式操作即可解决。
因篇幅问题不能全部显示,请点此查看更多更全内容