mybatis+spring Result Maps collection already contains value for com.cq.zys.dao.StudentMapper.BaseRe

来源:互联网 发布:淘宝官方客服电话400 编辑:程序博客网 时间:2024/04/30 05:47

nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentMapper' defined in file [D:\neko\workspace\ssmAngular\target\classes\com\cq\zys\dao\StudentMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\neko\workspace\ssmAngular\target\classes\com\cq\zys\mapping\StudentMapper.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.cq.zys.dao.StudentMapper.BaseResultMap


虽然也不知道怎么回事,但就是我的StudentMapper.xml文件里面有重复的内容 删掉重复的内容就好了

0 0