Field baseMapper in com.baomidou.mybatisplus.extension.service.impl.ServiceImpl required a single bean, but xx were found:
2024-09-06 11:19:43
在学习使用 mybatis-plus 时,遇到一个奇怪的异常 如 代码一:
代码一:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-07-17 09:16:28.739 ERROR 9800 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : ***************************
APPLICATION FAILED TO START
*************************** Description: Field baseMapper in com.baomidou.mybatisplus.extension.service.impl.ServiceImpl required a single bean, but 3 were found:
- miguBusiHisMapper: defined in file [D:\workspaceIdea\ywjc-refactor\target\classes\com\guoll\modules\miguProject\mapper\MiguBusiHisMapper.class]
- miguBusiInfoMapper: defined in file [D:\workspaceIdea\ywjc-refactor\target\classes\com\guoll\modules\miguProject\mapper\MiguBusiInfoMapper.class]
- sysUserMapper: defined in file [D:\workspaceIdea\ywjc-refactor\target\classes\com\guoll\modules\sysmanage\mapper\SysUserMapper.class] Action: Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed Process finished with exit code 1
该错误怎么解决,求大佬指点
最新文章
- Thisgood
- 【转】Apache 配置虚拟主机三种方式
- Lind.DDD敏捷领域驱动框架~Lind.DDD各层介绍
- Laravel4中的Validator
- Keepalived安装使用详解
- 三、Distributing Maya Plugins
- 【Origin】 画道
- OpenGL基础图形编程
- C#基础——Func和Action的介绍及其用法
- C++模板元编程 - 1 基本数据类型和运算
- CentOS 6.3 安装ATI显卡驱动
- 关于ASP.NET控件方面的学习(恢复版)
- web 环境项目(intellj部署的tomcat) 重启时报 Exception in thread ";HouseKeeper"; java.lang.NullPointerException (转)
- java中方法总结(每周更新)
- Java基础语法<;八>; 继承
- LINUX 笔记-特定shell变量
- Docker安装入门 -- 中间件镜像
- 试试看读一下Zepto源码
- 朱晔的互联网架构实践心得S1E7:三十种架构设计模式(上)
- 剑指offer(14)