org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
学习mybatis报错如下
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 'com/kuang/dao/StudentMapper.xml'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Student'. Cause: java.lang.ClassNotFoundException: Cannot find class: Student
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
期间将resultType改为list等其他操作,就像套娃一样报错
最后将resultType的路径补全记好了
<select id="getStudent" resultType="com.kuang.pojo.Student">
select * from mybatis.student;
</select>