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
In this post, we’ll use the :placeholder-shown ps...
title: vue uses vue-meta-info to set the title an...
This article shares the specific code of vue+echa...
How to introduce svg icons in Vue Method 1 of int...
.imgbox{ width: 1200px; height: 612px; margin-rig...
Table of contents 1. Connect to Tencent Cloud Ser...
By turning on the Recycle Bin function, you can r...
Table of contents 1. Function debounce 1. What is...
In the past, when I needed the border length to b...
Result:Implementation code: <!DOCTYPE html>...
When programmers do TypeScript/JavaScript develop...
Classification of website experience 1. Sensory e...
Table of contents 1. Background 2. What is a virt...
routing vue-router4 keeps most of the API unchang...
introduction When I was learning more about datab...