response.addHeader("Content-Disposition", "attachment; filename=" + response.encodeURL(downloadfile)); 这样可以防止.xls文件自行打开 相反attachment改为inline的话就打开
response.addHeader("Content-Disposition", "attachment; filename=" + response.encodeURL(downloadfile)); 这样可以防止.xls文件自行打开 相反attachment改为inline的话就打开