POI实现Excel文件加密 核心代码 /** * * @param file Excel文件 * @param os HttpServletResponse.getOutputStream() * @param excelPassword 密码 */ private void encryptExcel(File file, OutputStream os, String excelPassword) throws Exception { log.info("Excel加密码star************")