会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浪川宣哲
博客园
首页
新随笔
联系
订阅
管理
2024年11月
tcprewrite:Linux cooked capture v1转为Ethernet正常格式
摘要: 要将Linux cooked capture v1格式的pcap文件转换为正常的pcap文件,可以使用tcprewrite工具。以下是转换的步骤和命令: 确认pcap文件格式: 首先,你需要确认pcap文件的当前格式。可以使用tcpdump来查看文件的链接类型: tcpdump -r your_fi
阅读全文
posted @ 2024-11-06 13:50 浪川宣哲
阅读(331)
评论(0)
推荐(0)
2023年9月
java RSA 私钥解密、公钥解密
摘要: import org.apache.commons.codec.binary.Base64;import sun.security.rsa.RSAPrivateCrtKeyImpl; import org.bouncycastle.util.encoders.Hex; import javax.cr
阅读全文
posted @ 2023-09-15 17:50 浪川宣哲
阅读(699)
评论(0)
推荐(0)
2023年8月
Gson读取json字符串中结果需要转泛型的情况解决方案
摘要: 原始代码: Gson gson = new Gson(); ArrayList<Fld> fixed = gson.fromJson(new FileReader(headFilePath), ArrayList.class); for (Fld fld : fixed) { int fld_len
阅读全文
posted @ 2023-08-29 14:14 浪川宣哲
阅读(28)
评论(0)
推荐(0)
2021年8月
获取resp:heads:content-disposition的filename
摘要: let filename = "Test.xlsx"; var disposition = response.headers["content-disposition"] var filenameRegex = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/; va
阅读全文
posted @ 2021-08-26 15:25 浪川宣哲
阅读(311)
评论(0)
推荐(0)
2021年3月
记录springBoot启动报错(无脑型)
摘要: 报错信息如下 2021-03-31 15:07:33.162 ERROR 7512 [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization. java.sql.SQ
阅读全文
posted @ 2021-03-31 15:14 浪川宣哲
阅读(638)
评论(0)
推荐(0)
springBoot+Vue搭建新项目(1)
摘要: springboot创建 目录结构: 代码展示: usercontroller: import com.lcxz.cusunny.model.User; import com.lcxz.cusunny.service.UserService; import org.springframework.b
阅读全文
posted @ 2021-03-31 15:01 浪川宣哲
阅读(264)
评论(0)
推荐(0)
2021年1月
xml转json
摘要: 方法1: 使用json-lib:空值的时候默认为数组[] bug:数字会使用科学计数法 XMLSerializer xmlSerializer = new XMLSerializer(); String jsonStr = xmlSerializer.read(xml).toString(); xm
阅读全文
posted @ 2021-01-29 16:07 浪川宣哲
阅读(417)
评论(0)
推荐(0)
2020年7月
idea plugins 插件搜索不了解决
摘要: idea plugins 插件搜索不了解决
阅读全文
posted @ 2020-07-15 11:39 浪川宣哲
阅读(481)
评论(0)
推荐(0)
2020年6月
字符流接受utf-8乱码解决
摘要: 原方法: BufferedReader reader = new BufferedReader(new InputStreamReader( connection.getInputStream())); String lines; StringBuffer sb = new StringBuffer
阅读全文
posted @ 2020-06-26 11:34 浪川宣哲
阅读(1151)
评论(0)
推荐(0)
2020年5月
日常采坑:for中的count++
摘要: int count =0; int count1 =0; int count2 =0; for(int i=0; i<100; i++) { count = count++; count1 = count1+1; count2++; } System.out.println("count=" + c
阅读全文
posted @ 2020-05-28 11:20 浪川宣哲
阅读(324)
评论(0)
推荐(0)
下一页
公告