开发常见错误及解决方案

post请求体数据过大

java.io.IOException: Connection reset by peer
错误分析:

  • post请求体内容过大,tomcat阻止了该次请求。

解决方案

  • 设置最大post内容大小为-1(无限制)
server:
  tomcat:
    connection-timeout: 80000
    max-http-form-post-size: -1
posted @ 2022-04-21 14:37  初夏那片海  阅读(75)  评论(0)    收藏  举报