问题:在idea进行开发中我们总会遇到提示Could not autowire. No beans of ‘xxxx’ type found… 解决方案:降低idea的Autowired检测级别,打开idea的配置 在Editor >> Inspections >> Spring >> Spring Core >> Code >>Autowiring for Bean Class 把Serverity级别由Error改编为Warning >> Apply >> OK 查看效果