<insert id="insertBatchList"> INSERT INTO tag ( `tag_name`, `tag_weight`, ) VALUES <foreach collection ="list" item="tag" separator =","> (#{tag.tagName}, #{tag.tagWeight}) </foreach >
Mybatis批量插入写法
原文:https://www.cnblogs.com/pxblog/p/14710836.html