2020
12-29
12-29
Mybatis批量插入返回成功的数目实例
Mybatis批量插入返回影响的行数环境:postgresql9.6.5spring4.1mybatis3junit4log4jThesisMapper.xml:<!--批量插入--><insertid="insertList"parameterType="java.util.List">insertintopublic.thesis(name)values<foreachcollection="list"item="t"index="index"separator=",">(#{t.name})</foreach></insert>Mapper.java借口:publicinterfaceThesisMapper{intinser...
继续阅读 >