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