解决tomcat在部署war包的文件大小限制
今天在将war包部署到远程tomcat7服务器时出现
Caused by: org.apache.tomcat.util.http.fileupload.impl.SizeLimitExceededException: the request was rejected because its size (148993734) exceeds the configured maximum (52428800)
在此记录一下:
在conf文件下找到server.xml
server.xml 文件中以下的位置中添加maxPostSize参数:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" maxPostSize="0" />
如图:

还有无意间在网上看到的

我最新的tomcat7 设置0 没有用 设置 -1 还是没用

终于找到了解决方法:
https://blog.csdn.net/sinat_30602775/article/details/53212344?utm_source=blogxgwz7 感谢这位大神


浙公网安备 33010602011771号