threw exception [java.lang.IllegalStateException: getOutputStream() has already been called for this response
1.错误表现
2.解决方法之一
这个异常时因为response.getOutputStream()跟response.getWriter()相冲突造成的,现在记录下,发出来和大家共享下,希望能帮到遇到同样问题的朋友们,解决方法是在调用response.getOutputStream()之前加上下面两代码就行:
out.clearBuffer();
out = pageContext.pushBody();