81,122
社区成员




for (int i=users.getFirstRowNum()+1;i<users.getPhysicalNumberOfRows();i++){
Row row = users.getRow(i);
Cell cell = row.getCell(colIndex);
String miwen = cell.getStringCellValue();
String mingwen = AesUtils.decode(this.secretKey,this.salt,miwen);
cell.setCellValue(mingwen);
log.info("row["+i+"]cell["+colIndex+"]:"+miwen+"--"+mingwen);
String cellValue = cell.getStringCellValue();
log.info("row["+i+"]cell["+colIndex+"]:"+cellValue+"----##################-----");
}
这个方法将原有单元格中的密文解密后将明文更换到原有的单元格中,但是setCellValue之后重新取单元格中的值。发现并没有更新。还是密文。这个问题在windows中完全不存在。程序也不会报错,只是会把原有的密文保存在单元格里。麻烦有知道解决方法的朋友给个解决方案吧。拜谢