热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_48878791
小屁孩+
4 年前
trueweixin_48878791

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 来源于哪里的别名路径 子标签的事置

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
哪位大佬遇到过这个问题 Scanner输入中文显示空白 搜了好多办法都没用 代码在Mac上面运行正常 windows上面输入中文就显示空白
立即登录