本文主要是介绍nested exception is org.apache.ibatis.binding.BindingException: Parameter '__frch_item_0' not found,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
写的是mybatis的一个foreach语句
用的是list ,一直找不到问题,最后是吧#{ids}改为${ids}
#=String $=Integer
原来
<select id="findByPage" resultMap="BaseResultMap" parameterType="java.util.List">select*from userwhere ID IN<foreach collection="list" index="index" item="ids" open="(" separator="," close=")">#{ids}</foreach></select>
改为
<select id="findByPage" resultMap="BaseResultMap" parameterType="java.util.List">select*from userwhere ID IN<foreach collection="list" index="index" item="ids" open="(" separator="," close=")">${ids}</foreach></select>
你说坑爹不坑爹。
这篇关于nested exception is org.apache.ibatis.binding.BindingException: Parameter '__frch_item_0' not found的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!