From 167136bf06c1633ab3d0c6717a972fd60d633724 Mon Sep 17 00:00:00 2001 From: Parker Date: Sun, 13 Dec 2020 01:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BAExcel=20=E5=BC=BA=E5=88=B6?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/opsli/plugins/excel/ExcelPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opsli-plugins/opsli-plugins-excel/src/main/java/org/opsli/plugins/excel/ExcelPlugin.java b/opsli-plugins/opsli-plugins-excel/src/main/java/org/opsli/plugins/excel/ExcelPlugin.java index a9dc262..323c7e3 100644 --- a/opsli-plugins/opsli-plugins-excel/src/main/java/org/opsli/plugins/excel/ExcelPlugin.java +++ b/opsli-plugins/opsli-plugins-excel/src/main/java/org/opsli/plugins/excel/ExcelPlugin.java @@ -159,7 +159,7 @@ public class ExcelPlugin { String filePath = fileName + excelTypeEnum.getValue(); try { fileName = new String(filePath.getBytes(), "ISO-8859-1"); - response.addHeader("Content-Disposition", "filename=" + fileName); + response.addHeader("Content-Disposition", "attachment; filename=" + fileName); return response.getOutputStream(); } catch (IOException e) { // 创建文件失败