首页>代码>springboot+mybatis+apache poi实现把excel文件导入数据库>/excel/src/main/java/com/neusoft/excel/entity/User.java
package com.neusoft.excel.entity; import java.io.Serializable; public class User implements Serializable { private Integer id; private String stu; private String name; private String address; private String des; private static final long serialVersionUID = 1L; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getStu() { return stu; } public void setStu(String stu) { this.stu = stu == null ? null : stu.trim(); } public String getName() { return name; } public void setName(String name) { this.name = name == null ? null : name.trim(); } public String getAddress() { return address; } public void setAddress(String address) { this.address = address == null ? null : address.trim(); } public String getDes() { return des; } public void setDes(String des) { this.des = des == null ? null : des.trim(); } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } User other = (User) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getStu() == null ? other.getStu() == null : this.getStu().equals(other.getStu())) && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress())) && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getStu() == null) ? 0 : getStu().hashCode()); result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode()); result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode()); return result; } }

lyh1989 LV34
4月18日
601601lmy LV5
2023年10月20日
gvin001 LV14
2023年5月10日
newhaijun LV15
2023年3月13日
wangdengzhe LV7
2022年12月14日
liangge2115 LV27
2022年10月27日
zhangbo2020 LV6
2022年8月22日
菜鸟666 LV2
2022年8月10日
朱朱啊哈 LV16
2022年3月8日
纯洁的游侠 LV2
2022年1月26日