随笔分类 - 软件开发
摘要://校验微信小程序消息token public void checkSignature() { try { String timestamp = null != getPara("timestamp") ? getPara("timestamp") : ""; //时间戳 String nonce
阅读全文
摘要:
由于Springboot已经实现并集成logback,避免影响使用Log4j,需要将logback移除。如下: <!-- springboot web --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>s
阅读全文
由于Springboot已经实现并集成logback,避免影响使用Log4j,需要将logback移除。如下: <!-- springboot web --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>s
阅读全文
摘要:热部署和热加载区别: 1、热部署 项目已经运行,某个模块变更之后,无需重启tomcat,但是会清空内存,重新打包,重新解压war包运行。 2、热加载 监听项目文件变化,包括web-inf/class,wen-inf/lib,web-inf/web.xml等文件,若发生更改,则局部进行加载,不清空se
阅读全文
摘要:
搜集整理比较常用的时间工具类,记录一下。 1 /** 2 * LocalDateTime 转 时间 3 */ 4 public static String localDateTimeToDateTime(LocalDateTime localDateTime) { 5 return DateTime
阅读全文
搜集整理比较常用的时间工具类,记录一下。 1 /** 2 * LocalDateTime 转 时间 3 */ 4 public static String localDateTimeToDateTime(LocalDateTime localDateTime) { 5 return DateTime
阅读全文
摘要:"0x" + Integer.toHexString(hex);
阅读全文
摘要://循环执行任务,第一次延迟3秒执行,第二次开始每间隔5秒执行一次。最后一个参数是单位(时间) ScheduledExecutorService service = new ScheduledThreadPoolExecutor(Runtime.getRuntime().availableProce
阅读全文
摘要:
/** * 对返回结果指定编码格式 * new String(response.body().bytes(), "GB2312"); */ 1、修改前 Response response = client.newCall(request).execute(); return response.bod
阅读全文
/** * 对返回结果指定编码格式 * new String(response.body().bytes(), "GB2312"); */ 1、修改前 Response response = client.newCall(request).execute(); return response.bod
阅读全文

浙公网安备 33010602011771号