Releases: pig-mesh/excel-spring-boot-starter
Releases · pig-mesh/excel-spring-boot-starter
support springboot 2.7
v1.2.4 :bookmark: Releasing / Version tags. 1.2.4 supoort springboot 2.7.0
support fill 模板填充
@ResponseExcel(name = "模板测试excel", fill = true,sheets = {@Sheet(sheetName = "测试模板")}, template = "fill.xlsx")
@GetMapping("/")
public List<FillData> get() {
ArrayList<FillData> list = new ArrayList<>();
FillData fillData = new FillData("a", 12.1, new Date());
FillData fillDataq = new FillData("qa", 12.1, new Date());
FillData fillDataa = new FillData("ac", 12.1, new Date());
FillData fillDatac = new FillData("aa", 12.1, new Date());
list.add(fillDatac);
list.add(fillDataq);
list.add(fillDataa);
list.add(fillData);
return null;
}