"nginx + jetty" - post上传body size的限制有关问题

nginx + jetty-post上传body size的限制问题protected void parseParameters() {......if (!(applicati

"nginx + jetty" - post上传body size的限制问题

protected void parseParameters() { ...... if (!("application/x-www-form-urlencoded".equals(contentType))) return; int len = getContentLength(); if (len > 0) { int maxPostSize = connector.getMaxPostSize(); // tomcat默认大小2*1024*1024 if ((maxPostSize > 0) && (len > maxPostSize)) { if (context.getLogger().isDebugEnabled()) { context.getLogger().debug( sm.getString("coyoteRequest.postTooLarge")); } return; // 内容超长则直接返回,jetty会抛出IllegalStateException //Parameters 对象没有内容 } ..... }

?