使用Hutool 工具库导出Excel表格的方法
首先我们需要导入下面的三个依赖:
cn.hutool
hutool-all
5.2.3;
<!-- https://mvnrepository.com/artifact/com.github.jiangjihui/hutool-core -->
<dependency>
<groupId>com.github.jiangjihui</groupId>
<artifactId>hutool-core</artifactId>
<version>5.5.1</version>
</dependency>
org.apache.poi
poi-ooxml
4.1.1
<!-- https://mvnrepository.com/artifact/org.apache