Merge branch 'refs/heads/dev' into dev-二期封板
This commit is contained in:
@@ -68,7 +68,7 @@ public class ConfigCodeExController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 3. 设置响应头,告诉浏览器这是一个附件,要下载
|
// 3. 设置响应头,告诉浏览器这是一个附件,要下载
|
||||||
String fileName = "客户服务手册.pdf";
|
String fileName = "“福星荟”服务手册.pdf";
|
||||||
response.setContentType("application/pdf"); // MIME 类型
|
response.setContentType("application/pdf"); // MIME 类型
|
||||||
try {
|
try {
|
||||||
response.setHeader("Content-Disposition", "attachment; filename=\"" + URLEncoder.encode(fileName, StandardCharsets.UTF_8.toString()) + "\"");
|
response.setHeader("Content-Disposition", "attachment; filename=\"" + URLEncoder.encode(fileName, StandardCharsets.UTF_8.toString()) + "\"");
|
||||||
|
|||||||
Reference in New Issue
Block a user