From 7f612f24f8d7c459fe6515ee798fb6d2da74a17f Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Fri, 28 Oct 2022 20:56:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?*=20=E4=BF=AE=E5=A4=8D=E9=95=BF=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=BF=90=E8=A1=8C=E4=BC=9A=E4=BA=A7=E7=94=9F=E5=A4=A7?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E7=9A=84bug=20[Issue=20#2725](https://github?= =?UTF-8?q?.com/alibaba/easyexcel/issues/2725)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/alibaba/excel/util/FileUtils.java | 3 --- pom.xml | 2 +- update.md | 3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java b/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java index 41a4be0e..bd2d340c 100644 --- a/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java +++ b/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() { diff --git a/pom.xml b/pom.xml index d8676d5c..319a85e0 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ - 3.1.1 + 3.1.2 UTF-8 1.8 true diff --git a/update.md b/update.md index 6944a0ee..b326ca07 100644 --- a/update.md +++ b/update.md @@ -1,3 +1,6 @@ +# 3.1.2 +* 修复长时间运行会产生大对象的bug [Issue #2725](https://github.com/alibaba/easyexcel/issues/2725) + # 3.1.1 * 修复部分xlsx无法读取超链接的bug From e64e8084f076438733dcb702a55cbbdba30dc6ea Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Fri, 28 Oct 2022 21:22:10 +0800 Subject: [PATCH 2/3] =?UTF-8?q?*=20=E4=BF=AE=E5=A4=8D=E9=95=BF=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=BF=90=E8=A1=8C=E4=BC=9A=E4=BA=A7=E7=94=9F=E5=A4=A7?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E7=9A=84bug=20[Issue=20#2725](https://github?= =?UTF-8?q?.com/alibaba/easyexcel/issues/2725)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 47956ff4..58018547 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Java解析、生成Excel比较有名的框架有Apache poi、jxl。但他们都 com.alibaba easyexcel - 3.1.1 + 3.1.2 ``` From bd793c856773f5cea2d8a4ce992b976b0fc6e515 Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Fri, 28 Oct 2022 21:24:12 +0800 Subject: [PATCH 3/3] =?UTF-8?q?*=20=E4=BF=AE=E5=A4=8D=E9=95=BF=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=BF=90=E8=A1=8C=E4=BC=9A=E4=BA=A7=E7=94=9F=E5=A4=A7?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E7=9A=84bug=20[Issue=20#2725](https://github?= =?UTF-8?q?.com/alibaba/easyexcel/issues/2725)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/alibaba/excel/util/FileUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java b/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java index bd2d340c..881c1437 100644 --- a/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java +++ b/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);