美文网首页
mybatis mapper找不到映射,Invalid boun

mybatis mapper找不到映射,Invalid boun

作者: yiqunz | 来源:发表于2018-07-19 18:07 被阅读0次

在mapper配置及文件都没有错误的情况,仍然mapper映射失败的原因可能是没有编译对应的mapper.xml文件

mybatis错误解决Invalid bound statement (not found): xxBean.xxxMethod

导致的原因是配置mapper的mapper.xml没有进行编译

而eclipse/idea的编译src文件会默认忽略xml文件

eclipse可以在build path中把source下的Included:**/*.java remove或在porm文件下添加src/main/java**/*.xml

相关文章

网友评论

      本文标题:mybatis mapper找不到映射,Invalid boun

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