java实现文件下载的两种方式《转载》

public HttpServletResponse download(String path, HttpServletResponse response) { try { // path是指欲下载的文件的路径。 File file = new File(path); // 取得文件名。
相关文章
相关标签/搜索