easyexcel icon indicating copy to clipboard operation
easyexcel copied to clipboard

@ExcelProperty中value数组定义多个值问题

Open along80232 opened this issue 1 year ago • 2 comments

@ExcelProperty(value = {"数字标题", "数字标题2"})

private Double doubleData; 这样是指可以获取两个表头的数值到同一个字段吗?还是指的是一二级表头啊

along80232 avatar Nov 28 '23 02:11 along80232

同问,蹲个解答

LiJunYi2 avatar Jan 08 '24 05:01 LiJunYi2

同问, 在demo的package com.alibaba.easyexcel.test.demo.read;的class IndexOrNameData添加如下代码,运行后只能获取到指定了@ExcelProperty(index = 2)的数据了

image

sicunzhao avatar May 16 '24 08:05 sicunzhao