getWriter() has already been called for this response的解決辦法

Servlet規範說明,不能既調用 response.getOutputStream(),又調用response.getWriter(),不管先調用哪個,在調用第二個時候應會拋出 IllegalStateException 對於getOutputStream(),api裏是這樣說的:Either this method or getWriter() may be called to write t
相關文章
相關標籤/搜索