intellij Idea报错Could not autowire. No beans of...

来源:互联网 发布:oracle转mysql函数 编辑:程序博客网 时间:2024/06/06 09:55

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

0 0
原创粉丝点击