12 2024 档案
摘要:POI操作大excel时候报错: Tried to allocate an array of length 155,336,359, but the maximum length for this record type is 100,000,000. If the file is not corr
阅读全文
摘要:POI操作word添加脚注 private void addFootNote(XWPFDocument doc, XWPFParagraph paragraph) { // 检查是否为空 if (doc.getFootnotes().isEmpty()){ doc.createFootnotes()
阅读全文
摘要:1、背景: 使用POI解析Excel报错: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data。This may indica
阅读全文
摘要:1、什么是代码混淆: 两个关键点: 1.1、不影响原有程序正常运行 1.2、增加人阅读、理解的难度 优点: 1.1、通过对代码进行混淆,可以使代码更难读懂,增加破解的难度,进而提高代码安全性 1.2、通过压缩等方式,可以一定程度缩小代码体量 缺点: 1.1、过度混淆可能带来运行时错误,不便于调试、排
阅读全文
【随手记录】org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length
摘要:org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length 启动spring boot项目报以上错误,原因是:YAML文件的编码格式导致的 ,可以通过setting调整编
阅读全文
摘要:最近有个需求,需要从多个excel表格源数据里读取内容,输出到word里,形式一份报告。以下是相关操作记录: 1、POM引用: <!-- poi 操作word、excel、文档 --> <dependency> <groupId>org.apache.poi</groupId> <artifactI
阅读全文
摘要:前端传给后端的字段默认都是字符串格式,对于时间类型字段需要进行格式转换: 可以加以下注解:@RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date startTime DateTimeF
阅读全文

浙公网安备 33010602011771号