Request processing failed; nested exception is java.lang.IllegalStateException: getOutputStream()

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方法去转换参数异常,才报这个错误
Request processing failed; nested exception is java.lang.IllegalStateException: getOutputStream()
直接把相关切面代码注释掉,项目就正常了