mapper标签相应出错问题(registering )

org.apache.ibatis.exceptions.PersistenceException: 
### Error building SqlSession.
### The error may exist in SQL Mapper Configuration
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error registering typeAlias for 'null'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.qst.mybatis.Employee

一般registering 是mapper映射文件相关配置,然后去查看标签,mapper标签相应出错问题(registering )_第1张图片

单词拼对,貌似没问题。那就应该考虑路径问题,然后查看路径
    

mapper标签相应出错问题(registering )_第2张图片

果然不在一个根目录下,修改目录:

然后进行测试:

mapper标签相应出错问题(registering )_第3张图片

测试通过!

你可能感兴趣的:(mapper标签相应出错问题(registering ))