首页 > 其他 > 详细

分享知识-快乐自己:intellij Idea报错Could not autowire. No beans of...

时间:2018-09-13 20:41:06      阅读:541      评论:0      收藏:0      [点我收藏+]

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://www.cnblogs.com/mlq2017/)

 

分享知识-快乐自己:intellij Idea报错Could not autowire. No beans of...

原文:https://www.cnblogs.com/mlq2017/p/9642959.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!