会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
学习笔记
默默无闻的耕好自己的一亩二分田
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
公告
上一页
1
···
10
11
12
13
14
15
16
17
18
···
58
下一页
2020年3月16日
nginx中配置wss的websocket报错:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
摘要: 背景 笔者最近在项目中使用websocket,通过nginx进行代理,配置如下 server { listen 443 ssl; server_name www.example.com; ssl on; ssl_certificate www.example.com+5.pem; ssl_certi
阅读全文
posted @ 2020-03-16 14:48 你不知道的浪漫
阅读(2643)
评论(0)
推荐(0)
2020年3月12日
使用ffmpeg将视频切割成多个ts分片
摘要: <dependency> <groupId>net.bramp.ffmpeg</groupId> <artifactId>ffmpeg</artifactId> <version>0.6.2</version> </dependency> import net.bramp.ffmpeg.FFmpeg
阅读全文
posted @ 2020-03-12 14:21 你不知道的浪漫
阅读(3583)
评论(2)
推荐(0)
2020年3月11日
java中将一个数组按照每份固定大小拆分
摘要: stackoverflow代码 public static boolean isMatch(byte[] pattern, byte[] input, int pos) { for(int i=0; i< pattern.length; i++) { if(pattern[i] != input[p
阅读全文
posted @ 2020-03-11 15:20 你不知道的浪漫
阅读(4973)
评论(1)
推荐(1)
2020年3月7日
java中xml反序列化,绑定到实体上
摘要: 实体类 @XStreamAlias("ROOT") public class VehiclePassInfo { @Id @GeneratedValue(generator = "JDBC") private Integer id; @XStreamAlias("LICENSEKEY") priva
阅读全文
posted @ 2020-03-07 18:26 你不知道的浪漫
阅读(818)
评论(0)
推荐(0)
IDEA中使用插件sonarlint连接到SonarQube对代码质量进行管控
摘要: 申明:以下部分技术是网络上搜索来的,由于距离写本文时过去一段时间,无法再查找到原来网址, 无法署名版权,如果您看到此处引用您的文字,请留言联系我署名版权,相应的办法归原作者所有,在此表示感谢。 前文:本地安装SonarQube Community8.1社区版进行代码质量管控中已经详细讲解了Sonar
阅读全文
posted @ 2020-03-07 10:40 你不知道的浪漫
阅读(23308)
评论(2)
推荐(3)
2020年3月4日
IDEA cannot download sources
摘要: 在终端运行 mvn dependency:resolve -Dclassifier=sources 然后自动下载源代码 转载自:https://blog.csdn.net/weixin_42379136/article/details/87804492
阅读全文
posted @ 2020-03-04 13:55 你不知道的浪漫
阅读(868)
评论(0)
推荐(0)
ModelMapper从Map转实体,数据类型转换出错failed to convert java.lang.String to java.lang.Long
摘要: org.modelmapper.MappingException: ModelMapper mapping errors: 1) Converter org.modelmapper.internal.converter.NumberConverter@1c93b51e failed to conve
阅读全文
posted @ 2020-03-04 13:21 你不知道的浪漫
阅读(4108)
评论(0)
推荐(0)
springboot使用jmh基准测试评估json反序列化、实体转换的性能差异
摘要: 1、背景 笔者经常把一些经常使用的数据放到redis缓存,方便程序进行读取。 比如按照不同的键名将数值存储到hash值类型中。示例如下 hash hashkey hashValue snapshot 999 "{\"id\":999,\"distId\":999,\"distName\":\"玄武区
阅读全文
posted @ 2020-03-04 12:43 你不知道的浪漫
阅读(997)
评论(0)
推荐(0)
2020年3月3日
Java压缩技术之解压篇,支持:ZIP、RAR、7Z、TAR、GZ、TAR.GZ、BZ2、TAR.BZ2
摘要: 转载自:https://blog.csdn.net/qq_28082757/article/details/78932756 这篇文章主要讲解Java解压的操作,后续会写一篇关于压缩的文章。 提醒:文章中有些片段看似代码很多,其实去除trycatch、释放资源真正有用的代码没几句,解压其实都很简单,
阅读全文
posted @ 2020-03-03 18:10 你不知道的浪漫
阅读(1649)
评论(1)
推荐(0)
java RFC822中将字符串转成Date
摘要: 将字符串转成Date import java.text.SimpleDateFormat; import java.util.Date; public class DateUtil { public static Date ParseRFC3339DateFormat(String p_date)
阅读全文
posted @ 2020-03-03 18:02 你不知道的浪漫
阅读(466)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
58
下一页