mybatis <foreach>标签问题

现在有一个查询语句,传参数为entity,其中entity有一个属性List list,要用<foreach>迭代list,怎么做

第1个回答  推荐于2016-08-09
<select id="" resultType="">
select * table where p in
<foreach collection="entity.list" item="对象中的属性"
open="(" close=")" separator=",">
#{对象中的属性}
</foreach>
</select>
好像是这样的,尝试一下追问

不行啊

追答

什么错啊、、

本回答被提问者采纳