13. 關於IDEA工具在springboot整合mybatis中出現的Invalid bound statement (not found)問題


在一切准備就緒之后,測試test,卻出現了org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

 

這個問題,通常情況下,這是xml文件與接口mapper不對應導致的.  但我仔細檢查了一遍,沒有發現錯誤.

在查閱過相關資料后發現,IDEA對xml文件處理的方式不同. mapper.xml文件需要放置在resource這個文件夾下.

而eclipse只要mapper接口文件與mapper.xml放置在同一平級目錄就行


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM