2021.01.09:mybatis报错1:java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing 再做Test测试时报错,分析@TEst在方法上执行时需要导入jar包 ,junit-4.12.jar,这个jar包引用到hamcrestjar包,需要此时在lib中导入这两个jar包2.映射配置文件:<mapper namespace="StudentMapper.StudentMapper"><!--要写全类名-->3.报错2:Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is '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 找到 核心根标签<typeAliases <typeAlias alias="Student" type="bean.Student"> </typeAlias>起别名 alias=别名名称 ,type 来源于哪里的别名路径 子标签的事置