---
title: "Tomcat post参数长度限制"
author: "z610"
date: "2012-04-11T21:56:29Z"
tags: []
categories: ["企业架构"]
slug: "tomcat-post"
draft: false
lastmod: "2012-04-11T21:56:29Z"
id: 1483906
url: "https://z610.iteye.com/blog/1483906"
---

Tomcat 默认的post参数的最大大小为2M， 当超过时将会出错，可以配置maxPostSize参数来改变大小。

 

maxPostSize=“0” 0表示不限制大小

 

  &lt;Connector port="8080" protocol="HTTP/1.1"  connectionTimeout="20000"  redirectPort="8443" maxPostSize="0"/&gt;