tomcat nginx默認的post大小限制
執行大
文件上傳
,或者,大數據量提交時,當提交的數據大小超過一定限制時,發現后臺從request取值的代碼request.getParameter("message")返回值為null,原因是因為服務器對于提交的post請求的大小有一定的限制
tomcat:默認大小2097152,當maxPostSize=0時,不限制;maxPostSize=20971520時,為20M
nginx:默認的最大請求body大小為8m,修改設置client_max_body_size=100m;
resin:沒有發現默認限制請求大小的地方!
tomcat:maxPostSize
The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than or equal to 0. If not specified, this attribute is set to 2097152 (2 megabytes).
Nginx的"413 request entiry too large"
tomcat返回400
tomcat請求端口都加上maxPostSize="0"
?
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
