- 博客(2)
- 收藏
- 关注
原创 apache-poi 对excel文件进行加密
excel 文件加密网上搜了很多,试了很多,发现很多都不好使,一直以为是他们版本过久,最后翻了官方文档 ,除了代码更规范了(通过try-resource关流),其他也大同小异。研究了好久,最后仔细阅读了一下官网的备注,发现写文件之前必须现将OPCPackage流提前关闭,否则不会添加填充字节。官方文档的示例代码try (POIFSFileSystem fs = new POIFSFileS...
2020-03-05 23:49:51
1292
原创 温故而知新-JVM加载
For each class or interface C, there is a unique initialization lock LC. The mapping from C to LC is left to the discretion of the Java Virtual Machine implementation. For example, LC could be the Class object for C, or the monitor associated with that Cla
2019-10-23 19:36:44
167
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人