解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题,即在mybatis中dao接口与mapper配置文件在做映射绑定的时候出现问题,简单说,就是接口与xml要么是找不到,要么是找到了却匹配不到。
在这里插入图片描述

找了大半天,发现 中的getUserList的User少写了s

<mapper namespace="com.qi.dao.UserDao">
<!--    select查询语句-->
    <select id="getUserList" resultType="com.qi.pojo.User">
        select * from mybatis.user
    </select>

</mapper>

参考博客:https://blog.csdn.net/sundacheng1989/article/details/81630370

原文地址:https://www.cnblogs.com/zhahu/p/12576355.html