goja-web/src/main/java/goja/mvc/kits/Servlets.java
public static void setFileDownloadHeader(HttpServletResponse response, String fileName) {
        try {
            // 中文文件名支持
            String encodedfileName = new String(fileName.getBytes(), "ISO8859-1");
            response.setHeader(HttpHeaders.CONTENT_DISPOSITION,
                    "attachment; filename=\"" + encodedfileName + StringPool.QUOTE);
        } catch (UnsupportedEncodingException ignored) {
        }
    }
public static void setFileDownloadHeader(HttpServletResponse response, String fileName) {
        try {
            // 中文文件名支持
            String encodedfileName = new String(fileName.getBytes(), "ISO8859-1");
            response.setHeader(HttpHeaders.CONTENT_DISPOSITION,
                    "attachment; filename=\"" + encodedfileName + StringPool.QUOTE);
        } catch (UnsupportedEncodingException ignored) {
        }
    }
设置让浏览器弹出下载对话框的Header.

@param fileName 下载后的文件名.