Tomcat应用中post方式传参数长度限制

jsp页面上是没有限制的,但是在tomcat服务器上有限制,Tomcat 默认的post参数的最大大小为2M, 当超过时将会出错,可以配置maxPostSize参数来改变大小。

 

<Connector port="8080" redirectPort="8443" acceptCount="100" maxPostSize="0"/>
设置为0 就不会检测postSize了

 

官方文档:Apache Tomcat Configuration Reference

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

相关文章:

  • 2021-12-01
  • 2021-09-21
  • 2022-12-23
  • 2021-10-07
猜你喜欢
  • 2021-05-26
  • 2022-02-02
  • 2021-09-10
  • 2021-11-17
  • 2021-08-12
  • 2021-07-12
相关资源
相似解决方案