From 91e9b0c785c1557691913629d8cd160248111010 Mon Sep 17 00:00:00 2001 From: vladp Date: Fri, 26 Dec 2025 19:26:39 +0700 Subject: [PATCH] add post size --- src/main/resources/application.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 0ad1403..020a696 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -16,10 +16,11 @@ spring: servlet: multipart: - max-file-size: 10MB - max-request-size: 100MB enabled: true - resolve-lazily: false + resolve-lazily: true + file-size-threshold: 0 + max-file-size: 5242880 + max-request-size: 10485760 file: storage: @@ -34,8 +35,9 @@ file: server: port: ${SERVER_PORT:8080} tomcat: - max-swallow-size: -1 - max-http-form-post-size: 10 + max-swallow-size: 20MB + max-http-form-post-size: 20MB + max-http-header-size: 16KB security: cors: