问题:
多个实体类情况下,配置Mybatis报错
解决:
1 Sql.config文件中需要加上Mapper关系
<mappers>
<mapper resource="com/it/dao/IUserDao.xml"/>
<mapper resource="com/it/dao/IAccountDao.xml"/>
</mappers>
2 Mapper.xml对应关系与接口的层级和包名一致
与此相关博客:
https://www.cnblogs.com/ZekeBlog/p/9360689.html
https://blog.csdn.net/dancheng1/article/details/53975626