Action在采用PrintWriter向前端返回内容的时候,出现如下
异常:
java.lang.IllegalStateException: getWriter() has already been called for this response
java.lang.IllegalStateException:getOutputStream() has already been called for this response
经检查,Action中的方法既有返回值又有PrintWriter输出,将方法返回值改为void就好了。