小编Mud*_*man的帖子

11
推荐指数
1
解决办法
7419
查看次数

HSM 和 Argon2 之间的区别?哪个更可取

我正在开发一个处理客户详细信息的应用程序,我们希望将其作为加密存储在我们的数据库中,哪个更可取 Argon2

java hsm hardware-security-module argon argon2-ffi

5
推荐指数
1
解决办法
130
查看次数

找不到符号Workbook.close()

我看到与此标头有关的多个问题,但没有得到我的答案。

 private void createHandBackFile(XSSFSheet sheet, String programId, XSSFWorkbook workbook) throws IOException {
    String output = "C:\\Users\\muddassirr\\Downloads\\Personal\\STORE\\Output";

    File file = new File(output + File.separator + programId);
    if (!file.exists()) {
        file.mkdirs();
    }
    int noOfColumns = sheet.getRow(0).getPhysicalNumberOfCells();
    for(int i = 0; i < noOfColumns; i++) {
        sheet.autoSizeColumn(i);
    }
    FileOutputStream outputStream = new FileOutputStream(new File(output + File.separator + programId + File.separator + "HAND_BACK.xlsx"));
    workbook.write(outputStream);
    outputStream.close();
    workbook.close();
}
Run Code Online (Sandbox Code Playgroud)

没有编译错误。但是当我运行时,我得到运行时错误提示

java: cannot find symbol
symbol:   method close()
location: variable workbook of type org.apache.poi.xssf.usermodel.XSSFWorkbook
Run Code Online (Sandbox Code Playgroud)

java apache-poi xssf

3
推荐指数
1
解决办法
1313
查看次数