I want to set the maxSwallowSize property for boot supplied tomcat. My application.properties has this line:
server.context-parameters.maxSwallowSize=20971520
Doesn't work for some reason. Other properties like server.port work well. Debugging the creation in TomcatEmbeddedServletContainerFactory I see that there is a ServletContexInitializer (InitParameterConfiguringServletContextInitializer) with this property but it doesn't seem to be used in any way. (Even though it's in a variable name initializersToUse, ironic ;p)
I don't like the kill of a connection when the upload exceeds the max size set by
multipart.max-request-size=10MB
multipart.max-file-size=2MB
Is this the correct way of setting this property? During debuggin I can see that the IdentityInputFilter has the default value of 2MB.
newest version of org.springframework.boot:spring-boot-starter-web