mybatis批量更新foreach里的list是怎么来的,哪儿定义的,求解?

<update id="batchUpdateStudent" parameterType="List">
UPDATE STUDENT SET name = "5566" WHERE id IN
<foreach collection="list" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</update>

传入的参数,对于传入的list,mybatis会给它一个默认的名称"list"
温馨提示:答案为网友推荐,仅供参考