上传者: 28256783
|
上传时间: 2021-12-21 21:05:28
|
文件大小: 4KB
|
文件类型: JAVA
easyExcel导出合并单元格策略
WriteSheet writeSheet = EasyExcel.writerSheet(i, "Sheet" + (i + 1))
.registerWriteHandler(new CustomCellWriteHandler())
//设置合并单元格策略
.registerWriteHandler(new ExcelFillCellMergeStrategy(mergeColumeIndex,"Sheet" + (i + 1)))
.build();// 直接写入数据