mysql批量插入数据
Mapper.xml
<insert id="addTask" parameterType="java.util.LinkedList">
insert into tasks(ffmpeg)
values
<foreach collection="list" item="item" index="index" separator=",">
(
#{item}
)
</foreach>
</insert>
mysql读取固定条数据
mapper
<select id="getTasks" resultType="String">
select ffmpeg from tasks limit 5;
</select>