<insert id="importData" parameterType="list"> insert into user <trim prefix="(" suffix=")" suffixOverrides=","> id, name, age, </trim> values <foreach collection="voList" item="vo" separator=","> ( #{vo.id}, #{vo.name}, #{vo.age} ) </foreach> </insert>