idea的Could not autowire. No beans of 'MiaoshaUserDao' type found.
程序员文章站
2024-03-14 08:56:04
...
在idea中会遇到Could not autowire. No beans of '***' type found,不影响
程序的编译,就是看起来不舒服。
类似于上图这种的,我们如果要干掉这个红线,需要进行一个配置的修改:
如图,3下面的是idea的警告等级,我们把它修改至warning就可以了,红线警告就被干掉了。
推荐阅读
-
idea的Could not autowire. No beans of 'MiaoshaUserDao' type found.
-
Could not autowire. No beans of 'UserDAO' type found. more...
-
解决IDEA : Could not autowire. No beans of ‘xxxx‘ type found
-
Could not autowire. No beans of 'MetricsService' type found. less... (Ctrl+F1) Checks autowiring
-
解决IDEA : Could not autowire. No beans of ‘xxxx‘ type found