原博客:https://blog.csdn.net/qq_36802726/article/details/84026031

错误: 
使用注解@Resource或者@Autowire
intellij Idea报错Could not autowire. No beans of 'xxxService' type found. more... (Ctrl+F1)

出现红色波浪线

原因:
目前我遇到两种情况:

1、编译报错时是因为xxxService的ServiceImpl实现类没有加入注解@Service。

2、IntellijIDEA本身工具的问题。

解决方法:
1、在ServiceImpl实现类加入注解@Service

2、降低IDEA的Autowired检测的级别。

在settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class 勾去掉
--------------------- 
作者:小宁萌的多肉 
来源:CSDN 
原文:https://blog.csdn.net/qq_36802726/article/details/84026031 
版权声明:本文为博主原创文章,转载请附上博文链接!

使用 @Resource或@Autowire时 Idea报错Could not autowire. No beans of 'xxxService' type found. more..出现红色波浪线相关推荐

  1. 【Qt】Qt发布程序时,报错: could not find or load the Qt platform plugin xcb

    问题描述 Qt程序在发布时,报错: This application failed to start because it could not find or load the Qt platform ...

  2. zabbix 安装时的报错mysql_connect(): Access denied for us

    zabbix在安装完成时的报错 出现提示:mysql_connect(): Access denied for user 'zabbix'@'localhost' (using password: Y ...

  3. 解决pip安装时出现报错TypeError: unsupported operand type(s) for -=: ‘Retry‘ and ‘int‘

    我在Linux下使用pip安装时出现报错: Exception: Traceback (most recent call last):File "/usr/lib/python2.7/dis ...

  4. docker pull下载镜像时的报错及其解决方法

    docker pull下载镜像时的报错及其解决方法 参考文章: (1)docker pull下载镜像时的报错及其解决方法 (2)https://www.cnblogs.com/it-artical/p ...

  5. 访问SAP时提示报错SAP GUI for Windows 720窗口

    访问SAP时提示报错SAP GUI for Windows 720窗口,报错 信息为"登录负载均衡错误88:无法连接到消息服务器(rc=9)是否要查看详细的错误信息? 此报错是因为SAP系统 ...

  6. pycharm安装包时各种报错,且pip无法安装

    pycharm安装包时各种报错,且pip无法安装,可以看下是不是项目的编译器选错了,应该选择

  7. Django启动服务器时,报错mysql的2059错误的原因。

    当启动django自带的服务器时,报错2059: > _mysql_exceptions.OperationalError: (2059, ) > django.db.utils.Oper ...

  8. 项目启动时flowable报错提示 version mismatch: library version is *, db version is *

    项目启动时flowable报错提示 version mismatch: library version is *, db version is * 可能原因 1.项目中的flowable版本更换了但是 ...

  9. Ant Design Pro在使用TreeSelect树选择组件时,报错未注册

    Ant Design Pro在使用树选择组件时,报错未注册 did you register the component correctly? 经过检查发现Ant Design Pro是按需引入的,需 ...

最新文章

  1. NPM:Cannot read property 'pause' of undefined
  2. maven spring profile 协同
  3. 乡村振兴谋定齐鲁道路-农业大健康·李昌平:放权改革创新
  4. ASP.NET Core 运行原理解剖[2]:Hosting补充之配置介绍
  5. php代码 intval( ),php intval的测试代码发现问题_PHP教程
  6. 简单小知识 记录一下 慢慢更新积累
  7. 【2021最新版】Java基础面试题总结(70道题含答案解析)
  8. linux 没有network服务,求助,network起不来
  9. 可移动文物快速三维建模
  10. 十年架构师留下最完整的Java学习路线
  11. 自学资源(视频+文本)
  12. Origin Pro2017 不等间距图
  13. 数据结构系列笔记——图
  14. PS 的常见抠图工具
  15. MAIGO的同济题解2
  16. PHP Encoder Ioncube 使用
  17. 项目经理如何做好项目进度管理
  18. Procreate iPad绘画教程
  19. 2014 显卡天梯图
  20. “千年之恋”注册页面制作

热门文章

  1. Android获取局域网所有设备的ip地址
  2. 220914更新:闲置的华为悦盒搭建海思NASUbuntu系统(一)
  3. 少儿学计算机编程的十大好处,孩子学少儿编程的十大好处
  4. asp.net销售管理系统的设计和实现
  5. Android自定义View2--触摸事件传递机制
  6. POJ - 3264
  7. Chapter9 : De Novo Molecular Design with Chemical Language Models
  8. SQL中将查询结果赋值给变量
  9. kaggle点赞最多的 泰坦尼克号数据竞赛模型融合方法(附代码)
  10. ES6-用Proxy和Reflect操作对象