一、导入
Excel文件内容
pom.xml
<!-- 基本依赖包 -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.3.8</version>
</dependency>
<!-- Excel包 -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.1.2</version>
</dependency>
Java对应的类对象
package cn.lyj.entity;
//学生表
public class Tstudent {
private Integer stuid; //学生编号
private String stuname; //学生姓名
private Integer clid; //班级编号
@Override
public String toString() {
return "Tstudent{" +
"stuid=" + stuid +
", stuname='" + stuname + '\'' +
", clid="