- 检查是否在属性字段使用了非常规的属性名,首字母大些了等!easyexcle规定实体类中字段必须严格遵循驼峰命名法,(我就是这个原因,o(︶︿︶)o 唉)
- 检测是否在实体类属性上标注了注解。
@ExcelProperty(index = 0)//列坐标左侧0开启
private Integer id;
@ExcelProperty(value = { "名称" })//标题名称,默认读取第一行
private String name;
@ExcelProperty(index = 0)//列坐标左侧0开启
private Integer id;
@ExcelProperty(value = { "名称" })//标题名称,默认读取第一行
private String name;