Browse Source

* 修复长时间运行会产生大对象的bug [Issue #2725](https://github.com/alibaba/easyexcel/issues/2725)

pull/2781/head
Jiaju Zhuang 2 years ago
parent
commit
bd793c8567
  1. 1
      easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java

1
easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java

@ -58,6 +58,7 @@ public class FileUtils {
// Create a temporary directory in advance
File tempFile = new File(tempFilePrefix);
createDirectory(tempFile);
tempFile.deleteOnExit();
// Initialize the cache directory
File cacheFile = new File(cachePath);
createDirectory(cacheFile);

Loading…
Cancel
Save