2022年10月26日

解决response.setHeader设置下载文件名无效的问题

摘要: response.setHeader设置下载文件名无效 response.setContentType("application/octet-stream"); response.setHeader("Content-Disposition", "attachment; filename=down. 阅读全文

posted @ 2022-10-26 20:12 何苦-> 阅读(2132) 评论(0) 推荐(0)

java 选程获取文件并下载 写文件 下载

摘要: 测试 @Test public void test04() throws Exception { // 测试url String httpUrl = "https://xxx/rest/file-system/operation/download?fileKey=$17753fba-7251-47c 阅读全文

posted @ 2022-10-26 17:04 何苦-> 阅读(162) 评论(0) 推荐(0)

java pdf 表单填充 linux下获取文件路径 linux下获取Resources下文件路径

摘要: 对象转map Map<String, String> map = JSON.parseObject(JSONUtil.toJsonStr(platform), new TypeReference<Map<String, String>>() { }); 生成pdf ByteArrayOutputSt 阅读全文

posted @ 2022-10-26 13:28 何苦-> 阅读(320) 评论(0) 推荐(0)

Java获取URL中的参数 字符串截取

摘要: // 测试url String httpUrl = "https://www.baidu.com/rest/file-system/operation/download?fileKey=$55d7e9fd-3287-4499-9d9e-5cd52f593e4f$3236802050&signatur 阅读全文

posted @ 2022-10-26 11:00 何苦-> 阅读(794) 评论(0) 推荐(0)

导航