intellij Idea報錯Could not autowire. No beans of...

intellig idea 使用@Resource或者@Autowire報錯,出現紅色波浪線;

雖然不影響使用,但是看着很不爽,所以還是解決了下:

報錯提示:

Could not autowire. No beans of ‘’ type found. less… (Ctrl+F1) Checks autowiring problems in a bean class.

解決方法:

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class 勾去掉


原文:https://blog.csdn.net/qq_14987873/article/details/53635635

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章