server.tomcat.maxSwallowSize not working when post json

Comment From: wilkinsona

Without any information about the version of Spring Boot that you're using, how the POST request is being made, and how you have determined that max swallow size isn't working, we're not going to be able to help you.

If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.

Comment From: 734839030

I am tried spring boot version with 2.7.11 and 3.1.13.

SpringBoot server.tomcat.maxSwallowSize  not working SpringBoot server.tomcat.maxSwallowSize  not working SpringBoot server.tomcat.maxSwallowSize  not working

Comment From: 734839030

minimal demo . curl -X 'POST' \ 'http://localhost:8080/say' \ -H 'accept: /' \ -H 'Content-Type: application/json' \ -d '{ "msg": "hello" }' demo.zip

Comment From: wilkinsona

You aren't POSTing a form so max-http-form-post-size does not apply. Therefore, there's no opportunity for max-swallow-size to be applied. Please read the descriptions of maxPostSize and maxSwallowSize in the Tomcat documentation to learn more about how Tomcat handles each of these settings.