Browse Source

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

pull/2780/head
Jiaju Zhuang 2 years ago
parent
commit
7f612f24f8
  1. 3
      easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java
  2. 2
      pom.xml
  3. 3
      update.md

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

@ -58,11 +58,9 @@ 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);
cacheFile.deleteOnExit();
}
/**
@ -160,7 +158,6 @@ public class FileUtils {
File poiFilesPathFile = new File(poiFilesPath);
createDirectory(poiFilesPathFile);
TempFile.setTempFileCreationStrategy(new DefaultTempFileCreationStrategy(poiFilesPathFile));
poiFilesPathFile.deleteOnExit();
}
public static File createCacheTmpFile() {

2
pom.xml

@ -20,7 +20,7 @@
<properties>
<revision>3.1.1</revision>
<revision>3.1.2</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version>
<gpg.skip>true</gpg.skip>

3
update.md

@ -1,3 +1,6 @@
# 3.1.2
* 修复长时间运行会产生大对象的bug [Issue #2725](https://github.com/alibaba/easyexcel/issues/2725)
# 3.1.1
* 修复部分xlsx无法读取超链接的bug

Loading…
Cancel
Save