上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 41 下一页

2022年10月26日

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 何苦-> 阅读(165) 评论(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 何苦-> 阅读(321) 评论(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 何苦-> 阅读(804) 评论(0) 推荐(0)

2022年10月24日

java下载pdf等静态文件

摘要: package com.example.climbnumber; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.net.URL; import 阅读全文

posted @ 2022-10-24 01:08 何苦-> 阅读(501) 评论(0) 推荐(0)

java后台远程调用获取文件

摘要: 模拟本地服务为文件服务器(两种提供方式):假设本地文件为服务器,提供文件获取服务 方法一:直接将输出流放入response里面作为响应 @RequestMapping(value = "/getUrlDownload",method = RequestMethod.GET) @ResponseBod 阅读全文

posted @ 2022-10-24 01:05 何苦-> 阅读(1542) 评论(0) 推荐(0)

FileInputStream 和 FileOutputStream

摘要: 阻塞式IO模型 Java IO是Java自带的 API,用于读取和写入数据(输入和输出)。大多数应用程序需要处理一些输入并根据该输入产生一些输出。 Java IO (java.io) 包的作用域 该java.io包实际上并未解决所有类型的输入和输出。例如,Java IO 包中不包括 GUI 或网页的 阅读全文

posted @ 2022-10-24 01:02 何苦-> 阅读(278) 评论(0) 推荐(0)

Stream类处理集合改变集合元素的某个属性

摘要: 1. list = list.stream().map(s -> s.setAge(s.getAge() + 1)).collect(Collectors.toList()); 2. list.stream().forEach(x->{x.age+=1;}); 阅读全文

posted @ 2022-10-24 00:20 何苦-> 阅读(693) 评论(0) 推荐(0)

copyList集合拷贝

摘要: hutool List<ExportVerifyGatherSumVO> list = CglibUtil.copyList(records, ExportVerifyGatherSumVO::new); 阅读全文

posted @ 2022-10-24 00:18 何苦-> 阅读(413) 评论(0) 推荐(0)

2022年10月23日

POI导出Excel 错误THE MAXIMUM COLUMN WIDTH FOR AN INDIVIDUAL CELL IS 255 CHARACTERS

摘要: if (columnWidth > 255) columnWidth = 255; sheet.setColumnWidth(columnNum, columnWidth * 256); 阅读全文

posted @ 2022-10-23 23:56 何苦-> 阅读(1248) 评论(0) 推荐(0)

2022年10月17日

Oracle中查询number型的数据,数据显示.1 前面的0丢了

摘要: select to_char(.5,'fm9990.0099') from dual; 阅读全文

posted @ 2022-10-17 15:12 何苦-> 阅读(44) 评论(0) 推荐(0)

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 41 下一页

导航