spring MVC POST表单的大小限制? [英] Size limit with spring MVC POST form?

查看:210
本文介绍了spring MVC POST表单的大小限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表格:

<form:form modelAttribute="zgImport" action="${importAfterValidationUsers}" method="POST" name="ImportForm" >

我在其中显示 csv 内容(每个用户一行).我的控制器方法获取对象:

in which I display csv content (one line per user). My controller method get the object :

public void importAfterValidationUsers(@ModelAttribute ("zgImport") ZgImport zgImport, ActionRequest request, ActionResponse response) {

问题是:如果我有很多行(超过 670 行),我在控制器中得到的对象zgImport"没有完全归档,我会错过一些数据.POST有限制吗?还是用映射?

Problem is : if I have many lines (more than 670) the object "zgImport" that I get in my controller is not fully filed, I miss some data. Is there a limit to the POST? Or with the mapping ?

推荐答案

POST 请求正文大小通常受服务器限制,可以配置.

POST request body size is usually limited by server and can be configured.

POST 将处理的最大字节数容器 FORM URL 参数解析.可以通过以下方式禁用限制将此属性设置为小于或等于 0 的值.如果不是指定,此属性设置为 2097152(2 兆字节).

The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than or equal to 0. If not specified, this attribute is set to 2097152 (2 megabytes).

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

这篇关于spring MVC POST表单的大小限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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