Could not autowire. No beans of ‘RabbitTemplate’ type found.
问题:在rabbitmq整合springboot的时候,注入RabbitTemplate的时候报错!
报错信息如下:Could not autowire. No beans of 'RabbitTemplate' type found.
然后我在网上找解决方法,我就看见说是springboot版本的问题(1.4以后,这个模版就不自动注入,需要你手动写):
像我这么勤快的人,肯定是换springboot的版本了,所以我就试了试,把springboot版本的版本从2.7.3降低到2.2.1.RELEASE。哈哈哈哈,没想到就解决了!芜湖!