Springboot整合mybati的时候出现的错误
 Error creating bean with name 'com.example.mybati.BankTest': Unsatisfied dependency expressed through field 'bankMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.example.mybati.mapper.BankMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

  1. 原因:注入了一个重复的bkdnaf
    我在接口中写了@Mapper注解,又在主类中使用了@MapeprScan注解,重复注入了bean
    接口类

    主类
  2. 解决办法
    1. 解决一:去掉MapperScan注解
    2. 解决二:去掉Mapper注解

available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations相关推荐

  1. expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.spring

    在Spring项目中自动想用注解的方式,在controller里面注入Service但是报错,错误信息如下: [WARNING] Exception encountered during contex ...

  2. SpringBoot中报错expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:

    报错: Unsatisfied dependency expressed through field 'xxxMapper'; nested exception is org.springframew ...

  3. available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:

    1.报错信息: Error creating bean with name 'braceletAlarmController': Unsatisfied dependency expressed th ...

  4. expected at least 1 bean which qualifies as autowire candidate. Dependency a...

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 启动 sringboot 项目报错: expected at least 1 bean which ...

  5. expected at least 1 bean which qualifies as autowire candidate for this dependency

    2018-4-13 10:29:55 org.apache.catalina.core.ApplicationContext log 严重: Error creating bean with name ...

  6. available: expected at least 1 bean which qualifies as autowire candidate

    available: expected at least 1 bean which qualifies as autowire candidate 这个错误我也是找了半天,最后排查的时候发现是自己的实 ...

  7. expected at least 1 bean which qualifies as autowire candidate for this ***错误的分析

    出现expected at least 1 bean which qualifies as autowire candidate for this ***错误的时候,首先你确实就要检查一下你的spri ...

  8. expected at least 1 bean which qualifies as autowire candidate for this dependen

    在项目启动过程中,如果出现No qualifying bean of type [com.dao.ResourceDao] found for dependency: expected at leas ...

  9. springboot available: expected at least 1 bean which qualifies as autowire candidate

    springboot available: expected at least 1 bean which qualifies as autowire candidate 奇葩问题 问题: 报启动失败, ...

最新文章

  1. [NodeJS]Node异步编程基础
  2. WEBI 中的参数传递
  3. 【DirectX12】4.用FBX_SDK读取网格数据
  4. pc端jquery左右按钮控制带缩略图的图片切换代码_Web开发实用的图片预览插件,简单零依赖——PhotoSwipe...
  5. 13--长度最小的子数组
  6. Hadoop JAVA 开发说明
  7. VirtualBox启动失败,The VM session was aborted.
  8. 路由算法之距离矢量算法和链路状态算法
  9. 12-17 学习记录
  10. Python让繁琐工作自动化——chapter15 保持时间、计划任务和启动程序
  11. Android两种获取IP地址的方式(使用WIFI和GPRS)
  12. [转]Spring3 MVC + jQuery easyUI 做的ajax版本用户管理
  13. linux raid卡驱动添加到内核,如何在Linux上编译RAID卡驱动方法详解
  14. 2019年最新-等保测评机构、等保测评公司、信息安全厂商大全
  15. ios系统安装包下载_iOS在后台自动升级?一招教你屏蔽iOS更新
  16. 万豪国际集团与蚂蚁集团达成合作;快手科技一季度收入同比增长23.8%至211亿元 | 美通企业日报...
  17. 有一个已排好序的数组,要求输入一个数后,按原来排序规律将他插入数组。
  18. 使用Profiler进行性能分析
  19. 宝尚在线炒股 12.22 午评
  20. mac mysql my.cnf 路径_my.cnf文件在macOS上的位置

热门文章

  1. linux定时备份数据库到远程ftp,Linux下自动备份MySQL数据库并上传到远程FTP服务器...
  2. 迷你世界电锯机器人_迷你世界电锯怎么做 电锯怎么蓄力使用和合成方法分享...
  3. CAD正负号怎么输入?
  4. 彩色打印输出文本(echo,grep,perl)
  5. 程序员的脑回路到底有多新奇?
  6. mysql system_time_zone cst_【转贴】一次 JDBC 与 MySQL 因 “CST” 时区协商误解导致时间差了 14 或 13 小时的排错经历...
  7. 个人号微信机器人接口
  8. LAMP和LNMP的详解
  9. 电大计算机应用技术基础形考二,贵州电大2020年春季《计算机应用技术基础》计算机应用技术基础02任务满分...
  10. 耐克推出多款Apple Watch表带 与其运动鞋相得益彰