Browse Source

修复写入过慢的bug

bugfix
Jiaju Zhuang 3 years ago
parent
commit
21c2e89645
  1. 2
      src/test/java/com/alibaba/easyexcel/test/core/large/LargeDataTest.java

2
src/test/java/com/alibaba/easyexcel/test/core/large/LargeDataTest.java

@ -85,7 +85,7 @@ public class LargeDataTest {
@Test @Test
public void t04Write() throws Exception { public void t04Write() throws Exception {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
ExcelWriter excelWriter = EasyExcel.write(fileWrite07).build(); ExcelWriter excelWriter = EasyExcel.write(fileWrite07, LargeData.class).build();
WriteSheet writeSheet = EasyExcel.writerSheet().build(); WriteSheet writeSheet = EasyExcel.writerSheet().build();
for (int j = 0; j < 100; j++) { for (int j = 0; j < 100; j++) {
excelWriter.write(data(), writeSheet); excelWriter.write(data(), writeSheet);

Loading…
Cancel
Save