6
异常代码
WriteSheet writeSheet = EasyExcelFactory.writerSheet().build();
// writeSheet.setHead(head);
WriteWorkBook writeWorkBook = new WriteWorkBook();
writeWorkBook.setExcelType(ExcelTypeEnum.CSV);
writeWorkBook.setOutputStream(httpServletResponse.getOutputStream());
writeWorkBook.setNeedHead(true);
writeWorkBook.setHead(head);
writeWorkBook.setAutoCloseStream(false);
ExcelWriter excelWriter = new ExcelWriter(writeWorkBook);
ExcelWriterTableBuilder excelWriterTableBuilder = new ExcelWriterTableBuilder(excelWriter,writeSheet);
excelWriterTableBuilder.doWrite(data);
问题描述
writeSheet或者writeWorkBook设置 head,都会导致导出的数据出现两行head