zoukankan      html  css  js  c++  java
  • 分享知识-快乐自己:intellij Idea报错Could not autowire. No beans of...

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

  • 相关阅读:
    裂项相消
    斜率和问题
    抛物线与椭圆
    数列通项
    双曲线离心率
    优化问题
    单调性讨论
    角平分线
    隐零点
    自动任务调度系统
  • 原文地址:https://www.cnblogs.com/mlq2017/p/9642959.html
Copyright © 2011-2022 走看看