post提交数据参数量过大问题

当请求参数超过最大限制(默认512个)时,会抛出异常并忽略超出部分。解决方法是在JBoss7.1的standalone.xml配置文件中,通过增加<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="5000"/>来调整最大参数数。
摘要由CSDN通过智能技术生成
使用jboss7.1在页面以post方式提交数据,报如下错误:
[java]  view plain  cop
  1. ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/].[action]] (http--0.0.0.0-8545-8) Servlet.service() for servlet action threw exception: java.lang.IllegalStateException: More than the maximum number of request parameters (GET plus POST) for a single request ([512]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector.
  2. ....

错误的原因是请求参数超过了最大请求参数数量,需要修改maxParameterCount配置。只需要在jboss7.1的standalone.xml文件中增加一个配置即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值