美文网首页
Mybatis出现org.apache.ibatis.bindi

Mybatis出现org.apache.ibatis.bindi

作者: 给我一个蜜橙啦 | 来源:发表于2019-07-05 09:14 被阅读0次

在spring boot项目中进行接口请求,出现了一下状况:
Invalid bound statement (not found): com.careerai.pqms.dao.UserDao.findAll

原因:

没有进行mapper层的包路径配置,导致无法站到dao层接口的具体实现xml文件


错误图

解决方法:

在Spring boot的applacation.proterties中进行mybatis.mapper-locations和mybatis.type-aliases-package的配置:


配置图

相关文章

网友评论

      本文标题:Mybatis出现org.apache.ibatis.bindi

      本文链接:https://www.haomeiwen.com/subject/orajhctx.html