MyBatis Parameter '*' not found


Servlet[springmvc]的Servlet.service()引發了具有根本原因的異常Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException:
nested exception is org.apache.ibatis.binding.BindingException: Parameter 'userCode' not found. Available parameters are [user, param1]
org.apache.ibatis.binding.BindingException: Parameter 'userCode' not found. Available parameters are [user, param1]

以上是錯誤信息

 

解決方案

我這邊在dao層的接口那個使用了@Param()注解,要注意@Param()只使用在 基本類型的參數或者Srtring類型


免責聲明!

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



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