Преглед на файлове

修改下载变更记录模板接口

fengyanjie преди 3 години
родител
ревизия
9a19ce7e82
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      dmp-rwd-edit/src/main/java/com/persagy/dmp/rwd/edit/controller/DownloadController.java

+ 1 - 1
dmp-rwd-edit/src/main/java/com/persagy/dmp/rwd/edit/controller/DownloadController.java

@@ -55,7 +55,7 @@ public class DownloadController {
             fileName = new String(fileName.getBytes("UTF-8"), "ISO-8859-1");
         }
         response.setHeader("Content-disposition", "attachment; filename=" + fileName);
-        response.setContentType("application/vnd.ms-excel; charset=utf-8");
+        response.setContentType("application/octet-stream;charset=utf-8");
         response.setCharacterEncoding("UTF-8");
         // 将流中内容写出去
         OutputStream outputStream = response.getOutputStream();