I'm running a spring-boot service with an embed tomcat container.
Is there a way to limit the size of a HTTP PUT request via common application properties or EmbeddedServletContainerFactory? Thanks
I'm running a spring-boot service with an embed tomcat container.
Is there a way to limit the size of a HTTP PUT request via common application properties or EmbeddedServletContainerFactory? Thanks
Add this property in your application.properties file.
spring.http.multipart.max-request-size=10MB
Refer below for more information:
https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html