From b4fb02203aa979537b86dd038b6cbcf0803ca3ec Mon Sep 17 00:00:00 2001 From: ChenJiaHe <763432473@qq.com> Date: 星期五, 23 十二月 2022 10:59:28 +0800 Subject: [PATCH] 导出文件后缀修改 --- src/main/java/com/hx/util/ExcelUtil.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/hx/util/ExcelUtil.java b/src/main/java/com/hx/util/ExcelUtil.java index 5cbea70..ee1bd12 100644 --- a/src/main/java/com/hx/util/ExcelUtil.java +++ b/src/main/java/com/hx/util/ExcelUtil.java @@ -116,7 +116,7 @@ */ public static File createExcel(String[] headList, String[] fieldList, List<Map<String, Object>> dataList) throws Exception { - File file = File.createTempFile("temp", ".xls"); + File file = File.createTempFile("temp", ".xlsx"); try{ // 鍒涘缓鏂扮殑Excel 宸ヤ綔绨� HSSFWorkbook workbook = new HSSFWorkbook(); -- Gitblit v1.8.0