From b512fe19832803cae4ec60c8f458a16dd78d0a56 Mon Sep 17 00:00:00 2001 From: waylau Date: Wed, 19 Sep 2018 23:33:02 +0800 Subject: [PATCH] fix update file configuration --- README.md | 4 ++-- src/main/resources/application.properties | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b22cbdb..af877b6 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,8 @@ spring.thymeleaf.cache=false spring.thymeleaf.mode=HTML5 # limit upload file size -spring.http.multipart.max-file-size=1024KB -spring.http.multipart.max-request-size=1024KB +spring.servlet.multipart.max-file-size=1024KB +spring.servlet.multipart.max-request-size=1024KB ``` `spring.http.multipart.max-file-size` and `spring.http.multipart.max-request-size` limit upload file never larger than 1MB. diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8ab63dc..4c6f6ae 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -7,8 +7,8 @@ spring.thymeleaf.cache=false spring.thymeleaf.mode=HTML5 # limit upload file size -spring.http.multipart.max-file-size=1024KB -spring.http.multipart.max-request-size=1024KB +spring.servlet.multipart.max-file-size=1024KB +spring.servlet.multipart.max-request-size=1024KB # independent MongoDB server #spring.data.mongodb.uri=mongodb://localhost:27017/test \ No newline at end of file