Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams(), pojoClass, list);
response.setCharacterEncoding("UTF-8");
response.setHeader("content-Type", "application/vnd.ms-excel");
response.setHeader("Content-Disposition",
"attachment;filename=" + URLEncoder.encode(fileName, "UTF-8") + ".xls");
ServletOutputStream out = response.getOutputStream();
workbook.write(out);
out.flush();
EXCEL导出
最新推荐文章于 2024-08-26 10:58:19 发布
使用ExcelExportUtil工具类,根据指定的导出参数、POJO类和数据列表,生成Excel文件并将其输出到HTTP响应中。
1451

被折叠的 条评论
为什么被折叠?



