您的位置: 首页 > 文章 > Request processing failed; nested exception is java.lang.IllegalStateException: getOutputStream() Request processing failed; nested exception is java.lang.IllegalStateException: getOutputStream() 分类: 文章 • 2023-03-22 16:39:19 Request processing failed; nested exception is java.lang.IllegalStateException: getOutputStream() has already been called for this respons 开始很多人说加@RequestBody注解,和设置返回值为null,或者加个response.reset();都没有效果,后来才发现是因为项目中含有spring切面打印参数日志把response占用了,还有使用JSON.toJSONString方法去转换参数异常,才报这个错误 直接把相关切面代码注释掉,项目就正常了