TASK:HEADER
This commit is contained in:
@@ -88,6 +88,7 @@ public class MiTuExportServiceImpl implements MiTuExportService {
|
|||||||
|
|
||||||
// 设置响应头
|
// 设置响应头
|
||||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||||
|
response.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
||||||
response.setHeader("Content-Disposition", "attachment; filename=" + split[2]);
|
response.setHeader("Content-Disposition", "attachment; filename=" + split[2]);
|
||||||
|
|
||||||
// 将文件内容写入响应输出流
|
// 将文件内容写入响应输出流
|
||||||
|
|||||||
Reference in New Issue
Block a user