在strut2的项目中用到了poi.使用actin实现文件下载时出现以下异常:
java.lang.IllegalStateException: getOutputStream() has already been called for this response
原因:
每个方法都返回的是一个ActionForward对象,而response是ActionForward对象参数,所以就会使response冲突!
解决方法:
action中方法return null。
在strut2的项目中用POI时的异常
最新推荐文章于 2019-11-27 11:22:31 发布