首先你要判断是的是否注入进来了

一种是我没有注入进来报错(运行报错)

第二种是注入进来了,可以正常运行,但是这个红色的提示看着看着不爽

方法:

第一种是包扫描的问题

配置文件中没有扫描到xml,仔细查看

sprignboot的Application中没有扫描dao

加上注解:@MapperScan("com.xxx.dao")

第二种

可以修改警告的范围(但是不太想改)

可以在mapper上加上@Repository注解

Could not autowire. No beans of 'Mapper' type found.相关推荐

  1. SpringBoot报错:Could not autowire. No beans of ‘DiscussantMapper‘ type found

    SpringBoot报错:Could not autowire. No beans of 'DiscussantMapper' type found 一.资源 @Mapper和@Repository注 ...

  2. idea中Could not autowire. No beans of 'xxxxMapper' type found.问题解决

    idea中Could not autowire. No beans of 'xxxxMapper' type found.问题解决 解决方案: 建议给Mapper增加@Repository注解,并加入 ...

  3. Could not autowire. No beans of ‘xxxMapper‘ type found.

    在使用IDEA编写代码过程中,你可能会遇到这种情况: Could not autowire. No beans of 'xxxMapper' type found. 一般情况下,这种错误是不影响正常编 ...

  4. IntelliJ Idea取消Could not autowire. No beans of 'xxxx' type found的错误提示

    2019独角兽企业重金招聘Python工程师标准>>> 1.问题描述 在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xx ...

  5. IDEACould not autowire. No beans of 'xxxMapper' type found.

    作为一名刚开始使用idea的新手,最近在使用maven+springMVC框架时遇到了这样一个问题:Could not autowire. No beans of 'xxxMapper' type f ...

  6. 解决IDEA : Could not autowire. No beans of ‘xxxx‘ type found

    错误信息 Could not autowire. No beans of 'xxxx' type found 导致原因及其解决办法 三种报错原因: 第一种:IDEA工具自身的缺陷,问题出在 sprin ...

  7. could not autowire. No beans of 'ItemService' type found Checks autowiringproblems in beans class.

    could not autowire. No beans of 'ItemService' type found Checks autowiringproblems in beans class. 前 ...

  8. Could not autowire. No beans of 'JavaMailSender' type found..md

    Could not autowire. No beans of 'JavaMailSender' type found. 导入依赖 <dependency><groupId>o ...

  9. 【ActiveMQ】消息生产者自动注入报错:Could not autowire. No beans of 'JmsMessagingTemplate' type found

    标签:public   style   hat   and   报错   require   core   ota   ati 使用ActiveMQ过程中,定义消息生产者: package com.s ...

最新文章

  1. 微信小程序云开发,使用阿里云短信服务,搜索员工生日定期发送短信。
  2. 修改exe图标,加入版本号
  3. APACHE 安装出错 configure: error: Cannot use an external APR with the bundled APR-util
  4. python 操作.mat文件
  5. 哪些云计算企业能活下来
  6. ASP.NET多语言网页设计
  7. 13-Canny边缘检测
  8. 工作327:uni-数据格式处理
  9. mysql引擎inndbmmyisam_Mysql中MyISAM引擎和InnoDB引擎的比较
  10. 如何将Webpack与React结合使用:深入的教程
  11. linux搭建python运行环境_centos运行.py centos5.5下搭建python开发运行环境 - Linux - 服务器之家...
  12. 卧槽!火爆GitHub的算法电子书开放下载了!
  13. StyleGAN v2:对StyleGAN v1的思考与改进
  14. Oracle 备份及恢复
  15. Java LPT,使用Java对LPT端口进行编程。真?
  16. 越美丽的东西我越不可碰 | 天蝎座如何在黑暗中找到那束光
  17. postgresql获取基于当前时间计算的当月第一天,最后一天,下个月的第n天等功能
  18. Android自动股票,腾讯股票自选股 Android 版上线 - YangJunwei
  19. 河南专升本公共英语语法考点分析---被动语态
  20. java打怪升级地图

热门文章

  1. 测试技术分享 wrk 基准测试技能介绍
  2. [ReentrantLock] 破坏死锁四个必要条件
  3. LeetCode 1. 两数之和【哈希表】
  4. 解决babun中文乱码的问题
  5. 3.人工智能应用与其价值
  6. Streamsets--一个流批一体的ETL工具
  7. uml精粹——10.状态机图
  8. 蚂蚁金服—JAVA实现全排列
  9. java类型转换 byte转int
  10. 网吧通用开机提示公告VBS版[原创]