请教mysql spring mvc +mybatis中批量插入的问题
dao实现文件中函数:
@Override
public int insertContentList(
List<PubFieldContentEntity> list) {
Map<String, Object> params = createMap();
params.put("list", list);
return this.insert("insertContentList", params);
}
对应的mapper.xml文件中