
将true修改为false,我没有使用池
Field jmsTemplate in .impl.QueueProduceImpl 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
博客提到将true修改为false且未使用池,出现Spring JMS模板注入问题。具体为QueueProduceImpl中的jmsTemplate需要org.springframework.jms.core.JmsMessagingTemplate类型的bean却未找到,虽有候选者但无法注入,原因是相关自动配置不匹配。
1563

被折叠的 条评论
为什么被折叠?



