错误日志
org.apache.tomcat.util.http.Parameters.processParameters More than the maximum number of request parameters (GET plus POST) for a single request ([2,000]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector. 解决方案
从中间件层面来解决的话,修改 Tomcat 的 maxParameterCount即可。
操作步骤
找到 server.xml
路径一般是:
$TOMCAT_HOME/conf/server.xml修改 Connector 节点
找到类似下面这一段:
<Connector
port="8080"
protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000"
redirectPort="8443" />
修改为:
<Connector
port="8080"
protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000"
redirectPort="8443"
maxParameterCount="5000" />
✅ 推荐值:3000~10000(根据实际需要)
不要无限制
重启 Tomcat
bin/shutdown.sh
bin/startup.sh问题原因
这个错误是 Tomcat 对单个 HTTP 请求参数数量的保护限制,常见于 URL 参数过多 / 表单字段过多 / 前端序列化异常 的场景。

