问题来源
  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后面被无意中加上了空格。

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-05-29
  • 2021-04-02
  • 2021-07-11
  • 2022-12-23
猜你喜欢
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案