开发常见错误及解决方案
post请求体数据过大
java.io.IOException: Connection reset by peer
错误分析:
- post请求体内容过大,tomcat阻止了该次请求。
解决方案
- 设置最大post内容大小为-1(无限制)
server:
tomcat:
connection-timeout: 80000
max-http-form-post-size: -1
post请求体数据过大
java.io.IOException: Connection reset by peer
错误分析:
解决方案
server:
tomcat:
connection-timeout: 80000
max-http-form-post-size: -1