解决mybatis foreach 错误: Parameter '__frch_item_0' not found

时间:2015-06-13 19:57:07   收藏:0   阅读:5540

解决mybatis foreach 错误: Parameter ‘__frch_item_0‘ not found

在遍历对象的属性(是ArrayList对象)时报错:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘__frch_item_0‘ not found. Available parameters are [1, 0, param1, param2]
技术分享
解决办法如上图所示:将#{} 替换为 ‘${}‘
技术分享
技术分享
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!