在使用 EasyPoi 进行模板导出时,如果模板文件 opinion.xlsx 中包含多个 Shee,但代码中 book.getSheetAt(1) 获取不到第二个 Sheet 或报错
TemplateExportParams params new TemplateExportParams("export/opinion.xlsx");
params.setStyle(ExcelStyleUtil.class);
params.setColForEach(true);// 【重要】如果模板有多个sheet,且都需要处理或保留,建议开启扫描所有sheet
params.s…
2026/7/18 20:10:55