intellij Idea報錯Could not autowire. No beans of

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

雖然不影響使用,可是看着很不爽,因此仍是解決了下:ide

報錯提示:idea

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

解決方法:code

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class 勾去掉
相關文章
相關標籤/搜索