diff --git a/__test/src/main/resources/app.yml b/__test/src/main/resources/app.yml index 7584e3dce2..edd744f67b 100644 --- a/__test/src/main/resources/app.yml +++ b/__test/src/main/resources/app.yml @@ -111,6 +111,7 @@ server: maxBodySize: 2mb maxFileSize: 2000mb maxHeaderSize: 200kb + useTempfile: true autoMultipart: false session: timeout: 7200 #单位秒;(可不配,默认:7200) diff --git a/solon-projects/solon-boot/solon.boot/src/main/resources/META-INF/solon/solon-configuration-metadata.json b/solon-projects/solon-boot/solon.boot/src/main/resources/META-INF/solon/solon-configuration-metadata.json index c45a748384..2f503ea47c 100644 --- a/solon-projects/solon-boot/solon.boot/src/main/resources/META-INF/solon/solon-configuration-metadata.json +++ b/solon-projects/solon-boot/solon.boot/src/main/resources/META-INF/solon/solon-configuration-metadata.json @@ -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",