摘要: 1. 设置响应头 HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_OCTET_STREAM); headers.setContentDispositionFormData("a 阅读全文
posted @ 2024-01-16 09:05 我的心儿 阅读(319) 评论(0) 推荐(0)
摘要: import java.io.File; public class DeleteContents { public static void main(String[] args) { String folderPath = "C:/path/to/folder"; File folder = new 阅读全文
posted @ 2024-01-16 08:44 我的心儿 阅读(49) 评论(0) 推荐(0)
摘要: 1.假如有 ABC 等多个系统 每个系统下有多个附件 ,每个系统获取自己最新日期的文档(每个文件都标有最新日期 duptime ) Java代码从表中查询出的 list怎莫处理 得到每个系统下面最新的文件 Map<String, List<Attachment>> attachmentsBySyst 阅读全文
posted @ 2024-01-16 08:40 我的心儿 阅读(19) 评论(0) 推荐(0)