In order to read the body twice, we rewrite the HttpServletRequestWrapper,And wrap the original request through the Filter.Although we packing the original Request, upload files, StandardMultipartHttpServletRequest call or use the original Request, not after we packing, We rewrite HttpServletRequestWrapper getInputStream method is not called, the original flow has been closed, result in an error
Comment From: Mr-YW
At present, our solution is to call the getParameter method of request once in the wrapped Filter to solve this problem
Comment From: philwebb
StandardMultipartHttpServletRequest is part of Spring Framework. If you think you've found a bug with that class please raise an issue for that team at https://github.com/spring-projects/spring-framework/issues/new and attach a sample application that shows the problem.