Skip to content

Commit

Permalink
所有 http 上传文件都添加临时文件支持
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed Mar 6, 2024
1 parent c7073af commit df78b9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions __test/src/main/resources/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ server:
maxBodySize: 2mb
maxFileSize: 2000mb
maxHeaderSize: 200kb
useTempfile: true
autoMultipart: false
session:
timeout: 7200 #单位秒;(可不配,默认:7200)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
"type": "java.lang.String",
"description": "设定最大的请求头大小"
},
{
"name": "server.request.useTempfile",
"type": "java.lang.Boolean",
"defaultValue": false,
"description": "设定使用上传临时文件"
},
{
"name": "server.request.encoding",
"type": "java.lang.String",
Expand Down

0 comments on commit df78b9c

Please sign in to comment.