服务端代码:记得引poi3.8的包
@RequestMapping("exportFile")
public void exportFile(HttpServletRequest request, HttpServletResponse response){
try{
//设置返回值信息
String fileName = "findMedicine.xlsx";
String filePath = request.getSession().getServletContext().getRealPath("/")+"WebSource/file/"+fileName;
response.setContentType("multipart/form-data");
response.setHeader("Content-Disposition",