MyBatis常见错误(3)

java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for org.mybatis.result.mapper.OneToManyMapper.EmpMapper

原因:可能是接口中的方法在映射文件中重复。
方法:检查配置文件中,接口中的方法是否有重复

猜你喜欢

转载自greatexpectations.iteye.com/blog/2315536