一、批量插入java
<insert id="insertBatch" parameterType="java.util.List"> insert into t_student(name, age, class) values <foreach collection="list" item="item" index="index" separator=","> ( #{item.name,jdbcType=VARCHAR}, #{item.age,jdbcType=INTEGER}, #{item.class,jdbcType=LONGVARCHAR} ) </foreach> </insert>
二、批量更新spa