Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Jeecg Boot
Commits
ef762ff2
Commit
ef762ff2
authored
4 years ago
by
zhangdaiscott
Browse files
Options
Download
Email Patches
Plain Diff
日志里把具体的文件加上吧 issues/I3BJDQ
parent
02abd5c8
2.4.5
v3.4.4
v3.4.3
v3.4.3last
v3.4.2
v3.4.0
v3.3.0
v3.2.0
v3.1.0
v3.0.0
v3.0
v2.4.6
v2.4.5
v2.4.3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java
+1
-1
...org/jeecg/modules/system/controller/CommonController.java
with
1 addition
and
1 deletion
+1
-1
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/CommonController.java
+
1
-
1
View file @
ef762ff2
...
...
@@ -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"
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help