java导出数据成excel 报错:
HTTP Status 500 - Unable to show problem report: java.lang.IllegalStateException: getOutputStream() has already been called for this response
HTTP Status 500 - Unable to show problem report: java.lang.IllegalStateException: getOutputStream() has already been called for this response
Java代码 收藏代码 out.clear();
out = pageContext.pushBody();
上面代码无效的话使用最新的POI试试
OutputStream out = response.getOutputStream();
hwb.write(out);
out.flush();
out.close();