美文网首页问题解决
关于tomcat不同版本的maxPostSize配置差异

关于tomcat不同版本的maxPostSize配置差异

作者: IBegins | 来源:发表于2017-10-31 23:49 被阅读44次

关于tomcat不同版本的maxPostSize配置差异

好想念狗哥啥时候能回来

不多说直接干货

tomcat7.0.63之前:

maxPostSize 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).

设置为0和负数均可以代表不限制

tomcat7.0.63(包含)之后:

maxPostSize 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 zero. If not specified, this attribute is set to 2097152 (2 megabytes).

不可以设置为0,只能是负数代表不限制一般取 -1

PS:资料还是要查文档,小心被度娘推荐带跑偏,被度娘推荐误导进来的举个爪爪。

详细见最新文档说明 文档

相关文章

网友评论

    本文标题:关于tomcat不同版本的maxPostSize配置差异

    本文链接:https://www.haomeiwen.com/subject/dezipxtx.html