java web利用poi组件导出excel让用户自定义导出地址

OutputStream os = response.getOutputStream();// 取得输出流   
            response.setContentType("application/vnd.ms-excel");    
            response.setHeader("Content-disposition", "attachment;filename=student.xls");    
            OutputStream ouputStream = response.getOutputStream();    

版权声明:本文为博主原创文章,未经博主允许不得转载。

原文地址:https://www.cnblogs.com/shipeng22022/p/4614029.html