1. 将文件以流的形式一次性读取到内存,通过响应输出流输出到前端 /** * @param path想要下载的文件的路径
Seems like this might be easy, but from reading other SO answers there are a number of ways for it to possibly work: