摘要: 方式1:使用@JsonComponent方式(推荐) import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson 阅读全文
posted @ 2020-06-29 21:05 i迷倪 阅读(2022) 评论(0) 推荐(0) 编辑
摘要: public class HttpClientHelper { // 执行post操作 public static string doPost(string url, Dictionary<string, string> parameters, int timeOutInMillisecond) { 阅读全文
posted @ 2020-06-05 18:22 i迷倪 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: 插件地址:https://github.com/justjavac/ReplaceGoogleCDN 阅读全文
posted @ 2020-03-20 16:24 i迷倪 阅读(2056) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/RyanZhou/p/12083025.html#commentform 问题描述 Chrome浏览器所有页面崩溃,包括设置页面,“喔唷,崩溃啦!” 显示错误码:STATUS_INVALID_IMAGE_HASH Chrome所有插件报错,右下角 阅读全文
posted @ 2020-02-22 11:07 i迷倪 阅读(1348) 评论(0) 推荐(0) 编辑
摘要: //上传图片 function AjaxFileUpload(url, fileinput) { try { if (fileinput.files.length <= 0) { alert('请选择图片'); return false; } var file = fileinput.files[0]; var re = /^.*?\.(jpg|gif|png)$/i; if (!re.test( 阅读全文
posted @ 2019-12-26 15:35 i迷倪 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 示例1:计算指定时间单位的时间差 import java.time.Instant;import java.time.LocalDateTime;import java.time.temporal.ChronoUnit;// LocalDateTime fromDate= LocalDateTime.now();// LocalDateTime toDate= LocalDateTime.no... 阅读全文
posted @ 2018-12-19 12:12 i迷倪 阅读(7423) 评论(0) 推荐(0) 编辑
摘要: 1、饿汉式(静态常量)(线程安全) public class Singleton { private final static Singleton INSTANCE = new Singleton(); private Singleton(){} public static Singleton getInstance(){ return INSTAN... 阅读全文
posted @ 2018-12-13 17:20 i迷倪 阅读(844) 评论(0) 推荐(0) 编辑
摘要: 一、对象结构 在HotSpot虚拟机中,对象在内存中存储的布局可以分为3块区域:对象头(Header)、实例数据(Instance Data)和对齐填充(Padding)。下图是普通对象实例与数组对象实例的数据结构: 1.1、对象头 HotSpot虚拟机的对象头包括两部分信息: 1、markword 第一部分markword,用于存储对象自身的运行时数据,如哈希码(HashCode)、GC分... 阅读全文
posted @ 2018-12-13 15:13 i迷倪 阅读(1058) 评论(0) 推荐(1) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-11-07 17:41 i迷倪 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 一、先来一波名次解析: SYN(synchronous建立联机) ACK(acknowledgement 确认) PSH(push传送) FIN(finish结束) RST(reset重置) URG(urgent紧急) Sequence number(顺序号码) Acknowledge number(确认号码) establish 建立,创建 二、TCP究竟是何方神圣? TCP(Trans... 阅读全文
posted @ 2018-11-06 10:37 i迷倪 阅读(187) 评论(0) 推荐(0) 编辑