From 3b36f82d24b0fb6adee9f1212b9d4459aacd7ef2 Mon Sep 17 00:00:00 2001 From: weiwensangsang Date: Mon, 28 Oct 2019 17:46:54 +0800 Subject: [PATCH 1/4] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index fd5c5a2f..67933f53 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,22 @@ Java解析、生成Excel比较有名的框架有Apache poi、jxl。但他们都 ## 维护者 玉霄、庄家钜、怀宇 ## 快速开始 +### 引入项目 +Maven +```java + + + com.alibaba + easyexcel + 2.1.0-beta4 + +``` +Gradle +```java +// https://mvnrepository.com/artifact/com.alibaba/easyexcel +compile group: 'com.alibaba', name: 'easyexcel', version: '2.1.0-beta4' +``` + ### 读Excel DEMO代码地址:[https://github.com/alibaba/easyexcel/blob/master/src/test/java/com/alibaba/easyexcel/demo/read/ReadTest.java](/src/test/java/com/alibaba/easyexcel/test/demo/read/ReadTest.java) From 726a5636933cccf883f6aecd350146a460669dfb Mon Sep 17 00:00:00 2001 From: weiwensangsang Date: Sat, 2 Nov 2019 16:44:15 +0800 Subject: [PATCH 2/4] Revert "Update README.md" This reverts commit 3b36f82d24b0fb6adee9f1212b9d4459aacd7ef2. --- README.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/README.md b/README.md index 67933f53..fd5c5a2f 100644 --- a/README.md +++ b/README.md @@ -23,22 +23,6 @@ Java解析、生成Excel比较有名的框架有Apache poi、jxl。但他们都 ## 维护者 玉霄、庄家钜、怀宇 ## 快速开始 -### 引入项目 -Maven -```java - - - com.alibaba - easyexcel - 2.1.0-beta4 - -``` -Gradle -```java -// https://mvnrepository.com/artifact/com.alibaba/easyexcel -compile group: 'com.alibaba', name: 'easyexcel', version: '2.1.0-beta4' -``` - ### 读Excel DEMO代码地址:[https://github.com/alibaba/easyexcel/blob/master/src/test/java/com/alibaba/easyexcel/demo/read/ReadTest.java](/src/test/java/com/alibaba/easyexcel/test/demo/read/ReadTest.java) From 07c79a558d28cde4e469a8f34d3ffaad23cc7277 Mon Sep 17 00:00:00 2001 From: weiwensangsang Date: Sat, 2 Nov 2019 21:36:24 +0800 Subject: [PATCH 3/4] Update PoiWriteTest.java --- .../com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java b/src/test/java/com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java index 3a70d0d4..1586d1cc 100644 --- a/src/test/java/com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java +++ b/src/test/java/com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java @@ -7,6 +7,7 @@ import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.regex.Pattern; +import com.alibaba.fastjson.util.ParameterizedTypeImpl; import org.apache.poi.ss.formula.functions.T; import org.apache.poi.xssf.streaming.SXSSFCell; import org.apache.poi.xssf.streaming.SXSSFRow; @@ -20,7 +21,6 @@ import org.slf4j.LoggerFactory; import com.alibaba.excel.metadata.CellData; import com.alibaba.fastjson.JSON; -import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl; /** * 测试poi @@ -118,7 +118,7 @@ public class PoiWriteTest { Type[] tArgs = pType.getActualTypeArguments(); // 获得泛型类型的泛型参数(实际类型参数) ParameterizedTypeImpl c = (ParameterizedTypeImpl)pType.getActualTypeArguments()[0]; - Class ttt = c.getRawType(); + Class ttt = c.getClass(); System.out.println(ttt); } else { System.out.println("出错!!!"); @@ -145,7 +145,7 @@ public class PoiWriteTest { Type[] tArgs = pType.getActualTypeArguments(); // 获得泛型类型的泛型参数(实际类型参数) ParameterizedTypeImpl c = (ParameterizedTypeImpl)pType.getActualTypeArguments()[0]; - Class ttt = c.getRawType(); + Class ttt = c.getClass(); System.out.println(ttt); } else { System.out.println("出错!!!"); From 909a44605ce8a0c1b619ab998cf6d0178aad7151 Mon Sep 17 00:00:00 2001 From: weiwensangsang Date: Tue, 5 Nov 2019 17:51:32 +0800 Subject: [PATCH 4/4] Revert "Update PoiWriteTest.java" This reverts commit 07c79a558d28cde4e469a8f34d3ffaad23cc7277. --- .../com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java b/src/test/java/com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java index 1586d1cc..3a70d0d4 100644 --- a/src/test/java/com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java +++ b/src/test/java/com/alibaba/easyexcel/test/temp/poi/PoiWriteTest.java @@ -7,7 +7,6 @@ import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.regex.Pattern; -import com.alibaba.fastjson.util.ParameterizedTypeImpl; import org.apache.poi.ss.formula.functions.T; import org.apache.poi.xssf.streaming.SXSSFCell; import org.apache.poi.xssf.streaming.SXSSFRow; @@ -21,6 +20,7 @@ import org.slf4j.LoggerFactory; import com.alibaba.excel.metadata.CellData; import com.alibaba.fastjson.JSON; +import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl; /** * 测试poi @@ -118,7 +118,7 @@ public class PoiWriteTest { Type[] tArgs = pType.getActualTypeArguments(); // 获得泛型类型的泛型参数(实际类型参数) ParameterizedTypeImpl c = (ParameterizedTypeImpl)pType.getActualTypeArguments()[0]; - Class ttt = c.getClass(); + Class ttt = c.getRawType(); System.out.println(ttt); } else { System.out.println("出错!!!"); @@ -145,7 +145,7 @@ public class PoiWriteTest { Type[] tArgs = pType.getActualTypeArguments(); // 获得泛型类型的泛型参数(实际类型参数) ParameterizedTypeImpl c = (ParameterizedTypeImpl)pType.getActualTypeArguments()[0]; - Class ttt = c.getClass(); + Class ttt = c.getRawType(); System.out.println(ttt); } else { System.out.println("出错!!!");