post请求路径出错NET:ERR_CONNECTION_RESET

来源:互联网 发布:三维软件开发 编辑:程序博客网 时间:2024/06/06 17:39

这个是因为上传的数据大小超过了服务器tomcat设置上传文件大小

只需要将服务器上传大小修改大一些就行了

找到server.xml文件 修改maxPostSize这个参数
maxPostSize=”0” 没有大小限制
maxPostSize=”20971520” 20M

<Connector port="8080" protocol="HTTP/1.1"                  maxHttpHeaderSize="8192"                   useBodyEncodingForURI="true"                  maxPostSize="20971520"                  maxThreads="2048"                  redirectPort="8443"                  enableLookups="false"                  compression="on"                  compressionMinSize="2048"                                   compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"                  connectionTimeout="20000"                  disableUploadTimeout="true"                  URIEncoding="UTF-8"/>