request.getInputStream().read(body, 0, body.length) 导致出现报文丢失的情况,原因如下:
使用Tomcat容器时,request获取到的InputStream实现类是tomcat的CoyoteInputStream,底层使用的org.apache.catalina.connector.InputBuffer类默认的limit值为8*1024,即默认最多只能读取8K的数据,导致了报文数据被截取
request.getInputStream().read(body, 0, body.length) 导致出现报文丢失的情况,原因如下:
使用Tomcat容器时,request获取到的InputStream实现类是tomcat的CoyoteInputStream,底层使用的org.apache.catalina.connector.InputBuffer类默认的limit值为8*1024,即默认最多只能读取8K的数据,导致了报文数据被截取