Browse Source

Merge pull request #2781 from alibaba/bugfix

Bugfix
pull/2787/head
Jiaju Zhuang 2 years ago committed by GitHub
parent
commit
01563d1430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md
  2. 2
      easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java
  3. 2
      pom.xml
  4. 3
      update.md

2
README.md

@ -35,7 +35,7 @@ Java解析、生成Excel比较有名的框架有Apache poi、jxl。但他们都
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId> <artifactId>easyexcel</artifactId>
<version>3.1.1</version> <version>3.1.2</version>
</dependency> </dependency>
``` ```

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

@ -62,7 +62,6 @@ public class FileUtils {
// Initialize the cache directory // Initialize the cache directory
File cacheFile = new File(cachePath); File cacheFile = new File(cachePath);
createDirectory(cacheFile); createDirectory(cacheFile);
cacheFile.deleteOnExit();
} }
/** /**
@ -160,7 +159,6 @@ public class FileUtils {
File poiFilesPathFile = new File(poiFilesPath); File poiFilesPathFile = new File(poiFilesPath);
createDirectory(poiFilesPathFile); createDirectory(poiFilesPathFile);
TempFile.setTempFileCreationStrategy(new DefaultTempFileCreationStrategy(poiFilesPathFile)); TempFile.setTempFileCreationStrategy(new DefaultTempFileCreationStrategy(poiFilesPathFile));
poiFilesPathFile.deleteOnExit();
} }
public static File createCacheTmpFile() { public static File createCacheTmpFile() {

2
pom.xml

@ -20,7 +20,7 @@
<properties> <properties>
<revision>3.1.1</revision> <revision>3.1.2</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version> <jdk.version>1.8</jdk.version>
<gpg.skip>true</gpg.skip> <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 # 3.1.1
* 修复部分xlsx无法读取超链接的bug * 修复部分xlsx无法读取超链接的bug

Loading…
Cancel
Save