Posted In: Apache, Spring, Spring Boot, Tomcat

How to increase Spring boot/Tomcat max file upload size

 
Change multipart settings in spring boot application.properties

spring.http.multipart.max-file-size=200MB
spring.http.multipart.max-request-size=200MB

 

This setting will surely work when you are running it with embedded TOMCAT. Will it work if you create WAR and deploy it to standalone TOMCAT?
Answer is YES. I created separate WAR file and tested it in standalone TOMCAT. Setting do work correctly.

Tags:

by , on March 5th, 2017

  • Categories