0

When I send more content to the server via formData in React,
I get this error in the Spring app:

enter image description here

I only have Apache2 installed on the VPS, and I don't know if I need to install Tomcat separately, because I don't have a server.xml file at the moment, so I don't know where to add maxPostSize = "- 1" to the Connector? I'm a beginner in this.

Alex
  • 23
  • 5
  • 1
    Does this answer your question? [Increase HTTP Post maxPostSize in Spring Boot](https://stackoverflow.com/questions/33232849/increase-http-post-maxpostsize-in-spring-boot) – Piotr P. Karwasz Aug 06 '21 at 21:30
  • @Piotr P. Karwasz Oh, thank you so much, I didn't find this link, I'll try – Alex Aug 06 '21 at 21:34
  • 1
    Look in particular at the `server.tomcat.max-http-form-post-size` property (which sets the `maxPostSize` property on the connector). – Piotr P. Karwasz Aug 06 '21 at 21:35

0 Answers0