摘要: 随着业务需要,有时我们需要将数据批量添加到数据库,mybatis提供了将list集合循环添加到数据库的方法。具体实现代码如下: 1、mapper层中创建 insertForeach(List < Fund > list) 方法,返回值是批量添加的数据条数 package com.center.man 阅读全文
posted @ 2019-06-24 11:12 疯子110 阅读(5789) 评论(0) 推荐(0) 编辑