码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-09-13 20:53:18      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:www   img   http   core   Edito   setting   图片   auto   bsp   

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...

标签:www   img   http   core   Edito   setting   图片   auto   bsp   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!