解决 IntelliJ IDEA Could not autowire. No beans of 'xxxx' type found 问题

问题:在idea进行开发中我们总会遇到提示Could not autowire. No beans of ‘xxxx’ type found…

解决方案:降低idea的Autowired检测级别,打开idea的配置
解决 IntelliJ IDEA Could not autowire. No beans of 'xxxx' type found 问题_第1张图片
在Editor >> Inspections >> Spring >> Spring Core >> Code >>Autowiring for Bean Class 把Serverity级别由Error改编为Warning >> Apply >> OK 查看效果

你可能感兴趣的:(Java)