这是我第一个博客、也是人生中第一次写博客、很激动、也很紧张。新人初窥Java之路、有不足之处还请多多指教、相互学习。
Java 多文件Excel 导出为Zip 并下载:
1. 要想导出Zip文件、首先你必须将你指向的内容写入到文件中。创建一个向指定的File 对象表示的文件中写入数据的文件输出流。
@RequestMapping("/export)
public void export(HttpServletResponse response, HttpServletRequest request) {
List<WhiteList> personList = whiteListDao.getList(mp); // 从数据库查询数据,就不展示啦!
List<String> lstFile = new ArrayList<String>();
/**
* 得到图片字节流+数组大小
* filesPath 默认路径 ImagePath 图片
*/
for (int i = 0; i < personList.size(); i++) {
String fullPath