Skipping MapperFactoryBean with name 'sysUserMapper' and 'com.buding.system.mapper.SysUserMapper' ma...

在使用SpringBoot进行用户管理开发时,遇到“SkippingMapperFactoryBean”警告,原因是实体类中使用了@Mapper注解与配置文件中映射文件目录冲突。通过去除实体类上的@Mapper注解,成功解决了该警告。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前几天整体看了一下SpringBoot的简介,觉得看不如自己动手做,于是动手做一个简单的用户管理。启动的时候遇到了Skipping MapperFactoryBean with name 'sysUserMapper' and 'com.buding.system.mapper.SysUserMapper' mapperInterface. Bean already defined with the same name!。警告的意思,是命名与类库中的名字一样了,对于这个警告很是不解。翻了资料也没找到,后来发现配置文件中配置了映射文件目录,而我的entity同时也加了Mapper注解,去掉这个注解,这个警告就消失了。以此记录一下

转载于:https://www.cnblogs.com/Godric/p/10391240.html

2025-07-07 16:02:14.361 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner:44 - Skipping MapperFactoryBean with name 'astDisposeBillBossDao' and 'com.pty.ast.dao.AstDisposeBillBossDao' mapperInterface. Bean already defined with the same name! 2025-07-07 16:02:14.361 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner:44 - No MyBatis mapper was found in '[com.pty.ast.dao]' package. Please check your configuration. 2025-07-07 16:02:14.387 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner:44 - No MyBatis mapper was found in '[com.pty.authsync.dao]' package. Please check your configuration. 2025-07-07 16:02:14.518 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner:44 - No MyBatis mapper was found in '[com.pty.doc.dao]' package. Please check your configuration. 2025-07-07 16:02:14.676 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner:44 - Skipping MapperFactoryBean with name 'wfTaskDao' and 'com.pty.workflow.dao.WfTaskDao' mapperInterface. Bean already defined with the same name! 2025-07-07 16:02:14.676 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner:44 - Skipping MapperFactoryBean with name 'actTaskStatusDao' and 'com.pty.workflow.dao.ActTaskStatusDao' mapperInterface. Bean already defined with the same name! 2025-07-07 16:02:14.676 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner:44 - Skipping MapperFactoryBean with name 'actRuExecutionDao' and 'com.pty.workflow.dao.ActRuExecutionDao' mapperInterface. Bean already defined with the same name! 2025-07-07 16:02:14.676 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner:44 - Skipping MapperFactoryBean with name 'actHiVarInstDao' and 'com.pty.workflow.dao.ActHiVarInstDao' mapperInterface. Bean already defined with the same name! 2025-07-07 16:02:14.676 [main] WARN org.mybatis.spring.mapper.ClassPathMapperScanner:44 - Skipping MapperFactoryBean with name 'actRuIdentityLinkDao' and 'com.pty.workflow.dao.ActRuIdentityLinkDao' mapperIn
07-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值