From 4dcd0a18df7a82d48088716e157aee5235dc1a30 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 23 Apr 2024 19:15:13 +0100 Subject: [PATCH] add max post size limit to spring --- src/main/resources/application.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index b1d1d56..aad4085 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -3,6 +3,9 @@ server: port: 3000 servlet: context-path: / + tomcat: + # Limit the maximum POST size to 1MB + max-http-form-post-size: 1MB # Spring Configuration spring: @@ -10,7 +13,6 @@ spring: jackson: default-property-inclusion: non_null data: - # MongoDB - This is used for general data storage mongodb: uri: mongodb://localhost:27017