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

idea出现Could not autowire. No beans of 'XXX' type found.

 

解决方法

idea的spring注入bean出现上述错误,导致红色波浪线,去除idea对spring注入的bean检测即可。

file--》setting--》inspections--》Spring Core--》http://www.yayihouse.com/yayishuwu/chapter/2459

码上敲享录 发布了1204 篇原创文章 · 获赞 68 · 访问量 166万+ 他的留言板 关注

相关文章

这篇文章主要介绍了idea中mapper快速跳转到xml插件的方法,具...
今天小编给大家分享的是IDEA搭建Maven模块化项目的实现方法,...
这篇文章主要介绍了ideaintellij怎么快速修复if语句缺少大括...
这篇文章主要介绍“idea运行main方法或Test避免编译整个应用...
这篇文章主要介绍“idea项目全局去掉严格的语法校验方式是什...
本文小编为大家详细介绍“Windows、IDEA、VSCode常用快捷键有...