Could not autowire.No beans of 'ConnectionFactory' type found
错误的原因主要在于导错包
正确的包,应该为
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
创作打卡挑战赛 赢取流量/现金/CSDN周边激励大奖