异常:java.lang.IllegalArgumentException: Result Maps collection already contains value for com.xxx.xxx

本文介绍了在使用Mybatis时遇到的'java.lang.IllegalArgumentException: Result Maps collection already contains value for...'异常,原因是Mapper.xml文件中存在相同方法ID。解决方法是删除XML映射文件中的重复方法定义,或者清理并重新生成逆向工程的文件。
摘要由CSDN通过智能技术生成
  • 报错信息
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.54\webapps\ROOT\WEB-INF\classes\spring\spring-context.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'URL [jar:file:/E:/apache-tomcat-8.5.54/webapps/ROOT/WEB-INF/lib/manager-impl-1.0-SNAPSHOT.jar!/mybatis/UserMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.atcrowdfunding.manager.dao.UserMapper.BaseResultMap
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值