mlq2017

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/)

 

分类:

IDEAL

技术点:

相关文章:

  • 2021-07-01
  • 2021-06-21
  • 2021-07-27
  • 2021-12-10
  • 2021-08-14
  • 2021-12-14
  • 2021-07-13
  • 2021-07-01
猜你喜欢
  • 2021-07-02
  • 2021-05-25
  • 2021-10-14
  • 2021-04-23
  • 2021-07-04
  • 2021-04-19
  • 2021-08-02
相关资源
相似解决方案