首页 > 编程语言 > 详细

required a bean of type 'org.springframework.jms.core.JmsMessagingTemplate' that could not be found

时间:2020-06-15 21:05:07      阅读:48      评论:0      收藏:0      [点我收藏+]
问题来源
  Spring Boot 项目集成 ActiveMQ。
报错内容
  Description:Field jmsTemplate in XXX required a bean of type ‘org.springframework.jms.core.JmsMessagingTemplate‘ that could not be found.
原因分析
  在配置文件中配置ActiveMQ的时候,某些项,例如spring.activemq.pool.enabled,的值末尾有空格,导致系统读取配置文件信息的时候,读取到了追加了空格的值,而非我们预期的值:
spring.activemq.broker-url=tcp://localhost:61616
spring.activemq.in-memory=true空格
spring.activemq.pool.enabled=false空格

  备注:true和false后面被无意中加上了空格。

required a bean of type 'org.springframework.jms.core.JmsMessagingTemplate' that could not be found

原文:https://www.cnblogs.com/east7/p/13137578.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!