intellij idea 使用@Resource或者@Autowire报错,出现红色波浪线

intellij 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 勾去掉

猜你喜欢

转载自blog.csdn.net/qq_43544447/article/details/86377716