电脑疑难杂症、电脑操作问题教程就来系统教程网

使用hutool切换Excel默认激活的sheet

2022-12-29 11:31 投稿人:网络编辑
Workbook workbook = WorkbookUtil.createBook(file);
workbook.setActiveSheet(workbook.getSheetIndex(sheetName));
ExcelWriter excelWriter = new ExcelWriter(workbook,sheetName);
excelWriter.flush(response.getOutputStream());

re>

相关文章