报异常 求帮忙 jsp有用out.println();

Servlet.service() for servlet [springMvc] in context with path [/OneCodePay_service_v2] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: getWriter() has already been called for this response] with root cause
java.lang.IllegalStateException: getWriter() has already been called for this response

out.write()是字节输出流的方法
out.print()是字符输出流的方法
在jsp中out是HttpServletResponse.getWriter(),是字符输出流
故只有print()方法

看下这篇博客,或许能帮助你:

http://blog.csdn.net/gaowei222519/article/details/8458379