Skip to content

Commit ef762ff

Browse files
committed
日志里把具体的文件加上吧 issues/I3BJDQ
1 parent 02abd5c commit ef762ff

File tree

1 file changed

+1
-1
lines changed
  • jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller

1 file changed

+1
-1
lines changed

jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public void view(HttpServletRequest request, HttpServletResponse response) {
219219
File file = new File(filePath);
220220
if(!file.exists()){
221221
response.setStatus(404);
222-
throw new RuntimeException("文件不存在..");
222+
throw new RuntimeException("文件["+imgPath+"]不存在..");
223223
}
224224
response.setContentType("application/force-download");// 设置强制下载不打开
225225
response.addHeader("Content-Disposition", "attachment;fileName=" + new String(file.getName().getBytes("UTF-8"),"iso-8859-1"));

0 commit comments

Comments
 (0)