* If 'inputStream' and 'file' all not empty, file first
*/
@@ -66,7 +67,6 @@ public class WriteWorkbook extends WriteBasicParameter {
* Whether the encryption
*
* WARRING:Encryption is when the entire file is read into memory, so it is very memory intensive.
- *
*/
private String password;
/**
diff --git a/easyexcel-support/pom.xml b/easyexcel-support/pom.xml
index db2dbd3f..23613040 100644
--- a/easyexcel-support/pom.xml
+++ b/easyexcel-support/pom.xml
@@ -11,6 +11,7 @@
../pom.xml
+ https://github.com/alibaba/easyexcel
jar
easyexcel-support
easyexcel-support
diff --git a/easyexcel-test/pom.xml b/easyexcel-test/pom.xml
index 80821db2..73fc20d7 100644
--- a/easyexcel-test/pom.xml
+++ b/easyexcel-test/pom.xml
@@ -11,6 +11,7 @@
../pom.xml
+ https://github.com/alibaba/easyexcel
jar
easyexcel-test
easyexcel-test
@@ -31,8 +32,8 @@
test
- com.alibaba
- fastjson
+ com.alibaba.fastjson2
+ fastjson2
test
diff --git a/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataListener.java b/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataListener.java
index 09bfc523..222d83b5 100644
--- a/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataListener.java
+++ b/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationDataListener.java
@@ -12,7 +12,7 @@ import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.excel.exception.ExcelCommonException;
import com.alibaba.excel.util.DateUtils;
-import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson2.JSON;
/**
* @author Jiaju Zhuang
diff --git a/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataListener.java b/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataListener.java
index 115b1b03..ea091f23 100644
--- a/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataListener.java
+++ b/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/annotation/AnnotationIndexAndNameDataListener.java
@@ -9,7 +9,7 @@ import org.slf4j.LoggerFactory;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
-import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson2.JSON;
/**
* @author Jiaju Zhuang
diff --git a/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataListener.java b/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataListener.java
index 35829e0e..acafba47 100644
--- a/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataListener.java
+++ b/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/celldata/CellDataDataListener.java
@@ -6,7 +6,7 @@ import java.util.List;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.excel.support.ExcelTypeEnum;
-import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson2.JSON;
import org.junit.Assert;
import org.slf4j.Logger;
diff --git a/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/compatibility/CompatibilityTest.java b/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/compatibility/CompatibilityTest.java
index f4aae4a8..df5a2dbb 100644
--- a/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/compatibility/CompatibilityTest.java
+++ b/easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/compatibility/CompatibilityTest.java
@@ -1,16 +1,24 @@
package com.alibaba.easyexcel.test.core.compatibility;
+import java.io.File;
import java.math.BigDecimal;
+import java.util.ArrayList;
import java.util.List;
import java.util.Map;
+import com.alibaba.easyexcel.test.core.large.LargeData;
+import com.alibaba.easyexcel.test.core.large.LargeDataListener;
+import com.alibaba.easyexcel.test.core.simple.SimpleData;
import com.alibaba.easyexcel.test.util.TestFileUtil;
import com.alibaba.excel.EasyExcel;
+import com.alibaba.excel.cache.Ehcache;
import com.alibaba.excel.constant.EasyExcelConstants;
import com.alibaba.excel.enums.ReadDefaultReturnEnum;
-import com.alibaba.fastjson.JSON;
+import com.alibaba.excel.util.FileUtils;
+import com.alibaba.fastjson2.JSON;
import lombok.extern.slf4j.Slf4j;
+import org.apache.poi.util.TempFile;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
@@ -116,4 +124,37 @@ public class CompatibilityTest {
Assert.assertEquals("24.20", list.get(0).get(11));
}
+ @Test
+ public void t08() {
+ // https://github.com/alibaba/easyexcel/issues/2693
+ // Temporary files may be deleted if there is no operation for a long time, so they need to be recreated.
+ File file = TestFileUtil.createNewFile("compatibility/t08.xlsx");
+ EasyExcel.write(file, SimpleData.class)
+ .sheet()
+ .doWrite(data());
+
+ List
- com.alibaba
- fastjson
- 2.0.6
+ com.alibaba.fastjson2
+ fastjson2
+ 2.0.23
org.springframework.boot
diff --git a/update.md b/update.md
index 36c98000..f315c5b3 100644
--- a/update.md
+++ b/update.md
@@ -1,3 +1,10 @@
+# 3.2.1
+
+* 兼容`LocalDate` [Issue #2908](https://github.com/alibaba/easyexcel/issues/2908)
+* 优化大文件内存存储,减少内存占用 [Issue #2657](https://github.com/alibaba/easyexcel/issues/2657)
+* 在临时文件被删除的情况下能正常的读取 [Issue #2693](https://github.com/alibaba/easyexcel/issues/2693)
+* 分页读取监听器支持自定义分页条数 [Issue #2383](https://github.com/alibaba/easyexcel/issues/2383)
+
# 3.2.0
* 修复部分xlsx读取日期可能相差1秒的bug [Issue #1956](https://github.com/alibaba/easyexcel/issues/1956)
@@ -10,7 +17,8 @@
# 3.1.4
-* 提高xlsx读取兼容性:在存在第一行很多空列的情况下,忽略空列
+* 提高xlsx读取兼容性:在存在第一行很多空
+* 列的情况下,忽略空列
# 3.1.3