From 9b9c1b999fe0b1e21c038a1d5227609071fd7aa4 Mon Sep 17 00:00:00 2001 From: yuhong0206@sina.cn <yuhong0206@sina.cn> Date: 星期一, 29 三月 2021 09:00:44 +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