Could not autowire.No beans of ‘ConnectionFactory‘ type found

520 阅读1分钟

 ​编辑

 Could not autowire.No beans of 'ConnectionFactory' type found

错误的原因主要在于导错包

​编辑

 正确的包,应该为

import org.springframework.amqp.rabbit.connection.ConnectionFactory;

​编辑

\