available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations
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)}
- 原因:注入了一个重复的bkdnaf
我在接口中写了@Mapper注解,又在主类中使用了@MapeprScan注解,重复注入了bean
接口类
主类
- 解决办法
- 解决一:去掉MapperScan注解
- 解决二:去掉Mapper注解
available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations相关推荐
- expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.spring
在Spring项目中自动想用注解的方式,在controller里面注入Service但是报错,错误信息如下: [WARNING] Exception encountered during contex ...
- SpringBoot中报错expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:
报错: Unsatisfied dependency expressed through field 'xxxMapper'; nested exception is org.springframew ...
- available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:
1.报错信息: Error creating bean with name 'braceletAlarmController': Unsatisfied dependency expressed th ...
- expected at least 1 bean which qualifies as autowire candidate. Dependency a...
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 启动 sringboot 项目报错: expected at least 1 bean which ...
- 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 ...
- available: expected at least 1 bean which qualifies as autowire candidate
available: expected at least 1 bean which qualifies as autowire candidate 这个错误我也是找了半天,最后排查的时候发现是自己的实 ...
- 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 ...
- 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 ...
- springboot available: expected at least 1 bean which qualifies as autowire candidate
springboot available: expected at least 1 bean which qualifies as autowire candidate 奇葩问题 问题: 报启动失败, ...
最新文章
- [NodeJS]Node异步编程基础
- WEBI 中的参数传递
- 【DirectX12】4.用FBX_SDK读取网格数据
- pc端jquery左右按钮控制带缩略图的图片切换代码_Web开发实用的图片预览插件,简单零依赖——PhotoSwipe...
- 13--长度最小的子数组
- Hadoop JAVA 开发说明
- VirtualBox启动失败,The VM session was aborted.
- 路由算法之距离矢量算法和链路状态算法
- 12-17 学习记录
- Python让繁琐工作自动化——chapter15 保持时间、计划任务和启动程序
- Android两种获取IP地址的方式(使用WIFI和GPRS)
- [转]Spring3 MVC + jQuery easyUI 做的ajax版本用户管理
- linux raid卡驱动添加到内核,如何在Linux上编译RAID卡驱动方法详解
- 2019年最新-等保测评机构、等保测评公司、信息安全厂商大全
- ios系统安装包下载_iOS在后台自动升级?一招教你屏蔽iOS更新
- 万豪国际集团与蚂蚁集团达成合作;快手科技一季度收入同比增长23.8%至211亿元 | 美通企业日报...
- 有一个已排好序的数组,要求输入一个数后,按原来排序规律将他插入数组。
- 使用Profiler进行性能分析
- 宝尚在线炒股 12.22 午评
- mac mysql my.cnf 路径_my.cnf文件在macOS上的位置
热门文章
- linux定时备份数据库到远程ftp,Linux下自动备份MySQL数据库并上传到远程FTP服务器...
- 迷你世界电锯机器人_迷你世界电锯怎么做 电锯怎么蓄力使用和合成方法分享...
- CAD正负号怎么输入?
- 彩色打印输出文本(echo,grep,perl)
- 程序员的脑回路到底有多新奇?
- mysql system_time_zone cst_【转贴】一次 JDBC 与 MySQL 因 “CST” 时区协商误解导致时间差了 14 或 13 小时的排错经历...
- 个人号微信机器人接口
- LAMP和LNMP的详解
- 电大计算机应用技术基础形考二,贵州电大2020年春季《计算机应用技术基础》计算机应用技术基础02任务满分...
- 耐克推出多款Apple Watch表带 与其运动鞋相得益彰