版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/oumingyuan/article/details/85004690
maven 仓库地址
<dependency>
<groupId>com.gitee.oumingyuan</groupId>
<artifactId>excel</artifactId>
<version>1.3-release</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.0.1</version>
</dependency>
gradle 仓库地址
implementation 'com.gitee.oumingyuan:excel:1.3-release'
compile group: 'org.apache.poi', name: 'poi-ooxml', version: '4.0.1'
使用方法
public static void main(String[] args) throws ExcelException {
System.out.println(ExcelReader.readExcel("D:\\file\\excel\\person.xlsx"));
}