摘要: XWPFDocument 转为 InputStream XWPFDocument document = new XWPFDocument(new FileInputStream("person_template.docx")); ByteArrayOutputStream baos = new By 阅读全文
posted @ 2026-03-20 15:52 root-crypto 阅读(24) 评论(0) 推荐(0)
摘要: 网络图片打成压缩包并下载 public void download(HttpServletResponse response) { List<Person> personList = personService.findAll(); if (CollectionUtils.isNotEmpty(pe 阅读全文
posted @ 2026-03-20 15:38 root-crypto 阅读(9) 评论(0) 推荐(0)
摘要: 1.Maven 配置 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>5.2.5</version> </dependency> <dependency> <groupId>or 阅读全文
posted @ 2026-03-20 15:18 root-crypto 阅读(16) 评论(0) 推荐(0)
摘要: 1.创建线程池 import lombok.extern.slf4j.Slf4j; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configurat 阅读全文
posted @ 2026-03-20 14:50 root-crypto 阅读(11) 评论(0) 推荐(0)