Bean already defined with the same name!

本文记录了一次遇到'Bean already defined with the same name!'错误的解决过程。错误出现在MapperFactoryBean,通过全局搜索@MapperScan发现重复扫描,注释掉一处后,大部分错误消失,剩下个别mapper文件仍有问题。最终发现个别@Mapper文件引起冲突,注释后问题成功解决。
摘要由CSDN通过智能技术生成

记一次项目启动报错 Skipping MapperFactoryBean with name ‘system_SysConfigMapper’ and ‘com.unicloud.system.mapper.SysConfigMapper’ mapperInterface. Bean already defined with the same name!

WARN  o.m.s.m.ClassPathMapperScanner - [warn,44] - Skipping MapperFactoryBean with name 'system_SysDeptMapper' and 'com.unicloud.system.mapper.SysDeptMapper' mapperInterface. Bean already defined with the same name!
09:40:19.127 [restartedMain] WARN  o.m.s.m.ClassPathMapperScanner - [warn,44] - Skipping MapperFactoryBean with name 'system_SysDictDataMapper' and 'com.unicloud.system.mapper.SysDictDataMapper' mapperInterface. Bean already defined with the same name!
09:40:19.127 [restartedMain] WARN  o.m.s.m.ClassPathMapperScanner - [warn,44] - Skipping MapperFactoryBean with name 'system_SysDictTypeMapper' and 'com.unicloud.system.mapper.SysDictTypeMapper' mapperInterface. Bean already defined with the same name!
09:40:19.127 [r
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值