随笔分类 -  软件开发

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