- 添加依赖(Alibaba开源的一个处理excel的工具包,github地址:https://github.com/alibaba/easyexcel)
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>1.1.1</version>
</dependency>
- 创建实体类
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>1.1.1</version>
</dependency>