标签:vat span ali ann exce subject alibaba nes rop
用easyexcel读取文件时,对应的实体类的属性首个字母必须是小写,不然读取不到值
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
@Data
public class SubjectData {
@ExcelProperty(index = 0)
private String oneSubjectName;
@ExcelProperty(index = 1)
private String twoSubjectName;
}
如果oneSubjectName写成OneSubjectName,则读取不到任何数据,
做项目时采的坑,以此来备忘
标签:vat span ali ann exce subject alibaba nes rop
原文地址:https://www.cnblogs.com/bjrun/p/13098974.html