From 9e6b2a12650c5a6d24be3de8c078d31e7548750e Mon Sep 17 00:00:00 2001
From: yuhong0206@sina.cn <yuhong0206@sina.cn>
Date: Mon, 29 Mar 2021 08:56:51 +0800
Subject: [PATCH] 读取excel增加 if(row == null) { continue; } 判断。防止有时候Excel表中有空数据行,导致读取时出现空指针异常。
---
pom.xml | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/pom.xml b/pom.xml
index ecc6df1..732ab7c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,6 +28,7 @@
<jna.version>5.7.0</jna.version>
<commons.io.version>2.5</commons.io.version>
<commons.fileupload.version>1.3.3</commons.fileupload.version>
+ <commons.collections.version>3.2.2</commons.collections.version>
<poi.version>4.1.2</poi.version>
<velocity.version>1.7</velocity.version>
<jwt.version>0.9.1</jwt.version>
@@ -143,11 +144,14 @@
</exclusion>
</exclusions>
</dependency>
+
+ <!-- collections工具类 -->
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
- <version>3.2.2</version>
+ <version>${commons.collections.version}</version>
</dependency>
+
<!-- 阿里JSON解析器 -->
<dependency>
<groupId>com.alibaba</groupId>
--
Gitblit v1.9.2