Java导出excel 内存溢出 使用缓存

xiaoxiao2021-02-28  85

FileOutputStream fOut =  new  FileOutputStream(savePath); Workbook workbook =  new  SXSSFWorkbook( 500 ); //每次缓存500条到内存,其余写到磁盘。 Sheet sheet = workbook.createSheet();
转载请注明原文地址: https://www.6miu.com/read-71803.html

最新回复(0)