Java教程

I/O error while reading input message; nested exception is java.io.IOException: Stream closed

本文主要是介绍I/O error while reading input message; nested exception is java.io.IOException: Stream closed,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

I/O error while reading input message; nested exception is java.io.IOException: Stream closed

在这里插入图片描述
filterChain.doFilter() 参数应该为mrw 而不是Request
原因就是在拦截器已经读取了请求体中的内容,这时候请求的流中已经没有了数据

这篇关于I/O error while reading input message; nested exception is java.io.IOException: Stream closed的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!