mybatis的mapper.xml foreach怎么写

如题所述

<foreach item="被迭代的元素" collection="你参数传过来的集合">
    <!--输出迭代元素-->
    #{被迭代的元素}
</foreach>

温馨提示:答案为网友推荐,仅供参考