From d4e1d4ec3858c4cb4d677e183fea22ec23ea89bf Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期日, 28 十一月 2021 21:22:26 +0800 Subject: [PATCH] !117 fix: 修复Object剩余存活时间BUG Merge pull request !117 from dawn9117/N/A --- ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java index e3001c6..813fc97 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java @@ -12,14 +12,12 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.InputStream; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; import java.util.List; /** * Excel鐩稿叧澶勭悊 * - * @author ruoyi + * @author Lion Li */ public class ExcelUtil { @@ -44,8 +42,6 @@ try { String filename = encodingFilename(sheetName); response.reset(); - response.addHeader("Access-Control-Allow-Origin", "*"); - response.addHeader("Access-Control-Expose-Headers", "Content-Disposition"); FileUtils.setAttachmentResponseHeader(response, filename); response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"); ServletOutputStream os = response.getOutputStream(); -- Gitblit v1.9.3