1. Why set maxPostSize? The tomcat container has a limit on the size of the transmitted data. If a file exceeding this value is uploaded, an error will be reported, making the program unable to be used normally. 2. Setting method Find /conf/server.xml in the tomcat directory and add the maxPostSize parameter to it
The parameter value "-1" means no size limit. Not setting the maxPostSize parameter means using the default size, which is 2097152 bytes, or 2 megabytes. 3. Notes on setting values One thing to note is that when there is no limit on the size of transmitted data under different versions of Tomcat, the value of maxPostSize is not the same! Specific differences: Before tomcat7.0.63, setting maxPostSize to a value less than or equal to 0 means no limit In tomcat7.0.63 and later, setting maxPostSize to a value less than 0 indicates no limit If you set maxPostSize="0" after tomcat7.0.63, the transmitted data will not be obtained. 4. Official Documentation Attach tomcat changeLog
The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: JavaScript setinterval delay one second solution
>>: MySQL detailed single table add, delete, modify and query CRUD statements
Table of contents Object.prototype.valueOf() Obje...
During the development process, if garbled charac...
Table of contents Problem description: Installati...
1. Download MySQL Community Server 5.6.35 Downloa...
Recently, in order to realize the course design, ...
Table of contents 1. Database Engine 1.1 View dat...
This article example shares the specific code of ...
Table of contents Preface Introduction to Bezier ...
Table of contents Component recursive call Using ...
TypeScript Bundling webpack integration Usually, ...
This article shares the specific code for JavaScr...
Recently, when I was sorting out the details of d...
Today we discussed the issue of what the margin v...
Front-end test page code: <template> <di...
Table of contents 1. js memory 2. Assignment 3. S...