Spring Boot整合activeMq报错:org.springframework.jms.core.JmsMessagingTemplate‘ that could not be found解决

该报错是找不到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深度编程》,或扫描下方二维码:

   Spring Boot整合activeMq报错:org.springframework.jms.core.JmsMessagingTemplate‘ that could not be found解决_第1张图片

    2.查看往期内容:找到《springBoot整合activeMQ报错JmsMessagingTemplate  that could not be found解决方案》,按文章中的方式操作即可解决。

你可能感兴趣的:(springBoot,java)