解决:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) ...
生活随笔
收集整理的這篇文章主要介紹了
解决:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) ...
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)問題,即在mybatis中dao接口與mapper配置文件在做映射綁定的時候出現問題,簡單說,就是接口與xml要么是找不到,要么是找到了卻匹配不到。
截圖為網絡中搜索到的常見原因:
照著修改之后,問題依舊存在。最終花費了好大的力氣才找到自己代碼問題的根源。dao接口與xml的文件名不一致。
接口名與接口文件名都是DepartmentDao, 而配置文件名為DeparmentDao.xml,費了很大的勁才看到兩者名字查一個t字母。修改后就一切正常了。
?
轉自:https://blog.csdn.net/sundacheng1989/article/details/81630370
?
總結
以上是生活随笔為你收集整理的解决:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) ...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows句柄-2
- 下一篇: Windows消息机制详解-6