nested exception is org.apache.ibatis.binding.BindingException: Invalid boun


 

 Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.southwind.mmall002.service.UserService.getOne] with root cause

這些錯誤呢,是因為對應的mapper類的方法沒有實現,也就是說,mapper.xml文件沒有加載到或者加載錯誤。通過反復檢查錯誤發現自己注解寫錯了。@MapperScan("com.southwind,mmall002.mapper")改為@MapperScan("com.southwind.mmall002.mapper")將逗號改成點,低級錯誤。。。。。。

 


免責聲明!

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



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