今天做文件上传下载的时候学了个大招 把fileName存到session里面;
之后在另一个接口中获取session中的属性
request.getSession().setAttribute("fileName",fileName);
String fileName = request.getSession().getAttribute("fileName").toString();
这段代码可以配合导出使用 可以出来我们想要的效果
今天做文件上传下载的时候学了个大招 把fileName存到session里面;
之后在另一个接口中获取session中的属性
request.getSession().setAttribute("fileName",fileName);
String fileName = request.getSession().getAttribute("fileName").toString();
这段代码可以配合导出使用 可以出来我们想要的效果