poi比较占用内存。 easyexcel性能优化不少,值得一看。
pom.xml中添加:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>2.1.6</version>
</dependency>
easyexcel 官方项目github地址:
https://github.com/alibaba/easyexcel easyexcel 官网文档地址:
https://alibaba-easyexcel.github.io/