是ContentType类型错误,如果需要导出xlsx就使用
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
如果使用xls就设置为:response.setContentType("application/vnd.ms-excel;charset=UTF-8");
是ContentType类型错误,如果需要导出xlsx就使用
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
如果使用xls就设置为:response.setContentType("application/vnd.ms-excel;charset=UTF-8");