Caused by: org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession. ### Th(

Posted 闲言_

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Caused by: org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession. ### Th(相关的知识,希望对你有一定的参考价值。

错误产生环境

单独测试 mybatis 环境

错误描述

Caused by: org.apache.ibatis.exceptions.PersistenceException: 
### Error building SqlSession.
### The error may exist in cn/bloghut/dao/StudentMapper.xml
### The error occurred while processing mapper_resultMap[StudentTeacher]
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'cn/bloghut/dao/StudentMapper.xml'. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for cn.bloghut.dao.StudentMapper.getStudents. please check cn/bloghut/dao/StudentMapper.xml and cn/bloghut/dao/StudentMapper.xml

错误原因

mapper.xml文件 的标签标签 的id属性重名了

解决办法

修改id属性的名字即可

以上是关于Caused by: org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession. ### Th(的主要内容,如果未能解决你的问题,请参考以下文章

Mathematical Problems Caused by CCD

Caused by SSLError

Caused by: java.lang.NoClassDefFoundError:

caused by a circular import.

异常Caused by: java.lang.ClassNotFoundException: org.springframework.dao.DataIntegrityViolationExcep

Caused by org hibernate DuplicateMappingException Duplicat