我收到这个错误:
Exception during request processing:
Caused by javax.servlet.ServletException with message:
"Parameter count exceeded allowed maximum: 512"
帖子中传递的参数数量似乎有限制。
我如何在 JBoss 中扩展这个限制?
最佳答案
所有网络服务器的参数数量都受到限制以插入 hashmap collision denial of service attack .
您可以通过将以下系统属性添加到配置文件(例如 standalone.xml
)来提高限制:
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="10000"/>
( source )
关于html - 帖子中传递的最大参数数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12277231/