首页>代码>springboot整合easyexcel实现excel文件上传解析,下载导出简单实例>/springboot-easyexcel/src/main/java/com/simon/springbooteasyexcel/model/ExportModel.java
package com.simon.springbooteasyexcel.model; import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.metadata.BaseRowModel; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * @author Simon */ @Data @AllArgsConstructor @NoArgsConstructor public class ExportModel extends BaseRowModel { @ExcelProperty(value = "编号", index = 0) private int num; @ExcelProperty(value = "姓名", index = 1) private String name; @ExcelProperty(value = "年龄", index = 2) private int age; }
最近下载更多