Could not autowire.No beans of 'ConnectionFactory' type found
错误的原因主要在于导错包
正确的包,应该为
import org.springframework.amqp.rabbit.connection.ConnectionFactory;

Could not autowire.No beans of 'ConnectionFactory' type found
错误的原因主要在于导错包
正确的包,应该为
import org.springframework.amqp.rabbit.connection.ConnectionFactory;