文章列表
private void getFile(String filePath){
try {
File file = new File(filePath);
String fileName = file.getName();
response.setContentType("application/vnd.ms-excel"); // 设置头,浏览器不认识就提示下载
response.setHeader("Content-Disposition", "attachment;filename="
+ ne ...