From ef762ff21f8f27e9b21b2a595662daf2e489fcfb Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Thu, 1 Apr 2021 09:44:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=87=8C=E6=8A=8A=E5=85=B7?= =?UTF-8?q?=E4=BD=93=E7=9A=84=E6=96=87=E4=BB=B6=E5=8A=A0=E4=B8=8A=E5=90=A7?= =?UTF-8?q?=20issues/I3BJDQ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/modules/system/controller/CommonController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java index b90f868e..9df690c5 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java @@ -219,7 +219,7 @@ public class CommonController { File file = new File(filePath); if(!file.exists()){ response.setStatus(404); - throw new RuntimeException("文件不存在.."); + throw new RuntimeException("文件["+imgPath+"]不存在.."); } response.setContentType("application/force-download");// 设置强制下载不打开 response.addHeader("Content-Disposition", "attachment;fileName=" + new String(file.getName().getBytes("UTF-8"),"iso-8859-1")); -- GitLab