解决 : 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): com.tanj.mapper.SendDetailsMapper.selectAllRecommendRecord ?
原因:
1.檢查 ?namespace 對不對。
2.該方法在xml中到底 有沒有。
3.該方法在xml中和mapper中定義的參數類型 ?返回類型等是否一致。
?
4. mapper和對應xml命名一定要對應:
mapper 叫:SendDetailsMapper ,對應xml必須為SendDetailsMapper.xml。
mapper 叫?:UserDao,你就必須命名為UserDao.xml
總結
以上是生活随笔為你收集整理的解决 : org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java集合框架中contains(),
- 下一篇: 7.1 定义关键指标KPI