jdbc.url = jdbc:mysql://localhost:3306/db_tb?allowMultiQueries\=true&characterEncoding=UTF-8
map.put("map", list);
<insert id="insert" parameterType="java.util.HashMap">
INSERT INTO tb_tbale(fieldo,fieldt,fieldth,fieldf)
VALUES
<foreach collection="map" item="item" index="index" separator="," >
( #{item.fieldo},#{item.fieldt},#{item.fieldth},#{item.fieldf})
</foreach>
</insert>
List<E> list
<update id="table" parameterType="java.util.List">
<foreach index="index" item="item" collection="list" close="" open="" separator=";">
update tb_table set fieldo = #{item.fieldo} ,fieldt=#{item.fieldt}
where id= #{item.id}
</foreach>
</update>