表头可以根据业务进行设置,然后后续赋值对应的值。
@Test
public void easyExcelTest() {
List<List<String>> heads = Lists.newArrayList();
heads.add(Lists.newArrayList("表头1"));
heads.add(Lists.newArrayList("表头2"));
heads.add(Lists.newArrayList("表头3"));
heads.add(Lists.newArrayList("表头4"));
heads.add(Lists.newArrayList("表头5"));
List<List<String>> contents = Lists.newArrayList();
for (int i = 0; i <= 10; i++) {
List<