使用partition分区插入
List<Integer> datas = new ArrayList(); List<List<Integer>> partitionList = Lists.partition(datas,255); for(List<Integer> data : partitionList){ //插入操作 }
使用partition分区插入
List<Integer> datas = new ArrayList(); List<List<Integer>> partitionList = Lists.partition(datas,255); for(List<Integer> data : partitionList){ //插入操作 }