在连接器上设置 maxParameterCount 属性 [英] set the maxParameterCount attribute on the Connector

查看:69
本文介绍了在连接器上设置 maxParameterCount 属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 tomcat7 上收到此错误.

I am getting this error on tomcat7.

INFO:超过请求参数的最大数量(GET 加POST) 的单个请求 ([10,000]) 被检测到.任何参数超出此限制已被忽略.要更改此限制,请设置连接器上的 maxParameterCount 属性.

INFO: More than the maximum number of request parameters (GET plus POST) for a single request ([10,000]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector.

谁能告诉我是否可以修改 maxParameterCount,如果可以,如何修改?

Can anyone tell me if I can modify maxParameterCount and if so, how?

推荐答案

像这样(在文件 server.xml 中):

Like this (in the file server.xml):

<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" maxParameterCount="1000000"/>

查看详情:http://tomcat.apache.org/tomcat-7.0-doc/配置/http.html

已添加

Tomcat 10 的链接https://tomcat.apache.org/tomcat-10.0-doc/config/http.html#Common_Attributes

The link to Tomcat 10 https://tomcat.apache.org/tomcat-10.0-doc/config/http.html#Common_Attributes

这篇关于在连接器上设置 maxParameterCount 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆