上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 63 下一页
  2022年10月8日
摘要: AES对称加密算法 import org.apache.tomcat.util.codec.binary.Base64; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.util. 阅读全文
posted @ 2022-10-08 17:05 oktokeep 阅读(245) 评论(0) 推荐(0)
摘要: String忽略大小写方法compareToIgnoreCase源码及Comparator自定义比较器 //源码 public int compareToIgnoreCase(String str) { return CASE_INSENSITIVE_ORDER.compare(this, str) 阅读全文
posted @ 2022-10-08 15:33 oktokeep 阅读(246) 评论(1) 推荐(0)
摘要: Json字符串转换处理html编码格式,= \u003d 处理 import com.alibaba.fastjson.annotation.JSONField; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.f 阅读全文
posted @ 2022-10-08 15:23 oktokeep 阅读(2101) 评论(0) 推荐(0)
  2022年9月26日
摘要: Curl请求示例curl -X GET "http://<host:port>/api/1/test/get?test=<value>&app_id=<app_id>&sign=<sign>&timestamp=<timestamp>"curl -X POST -H "Content-Type: a 阅读全文
posted @ 2022-09-26 22:55 oktokeep 阅读(3762) 评论(4) 推荐(0)
  2022年9月2日
摘要: json字符串忽略null,忽略字段,首字母大写等gson,jackson,fastJson实现demo package com.example.core.mydemo.json.vo; import com.alibaba.fastjson.annotation.JSONField; import 阅读全文
posted @ 2022-09-02 11:11 oktokeep 阅读(1088) 评论(4) 推荐(0)
  2022年8月30日
摘要: import logging import os ''' 格式符 含义 %(levername)s 日志级别名称 %(pathname)s 当前执行程序的路径(即脚本所在的位置) %(filename)s 执行脚本程序名 %(lineno)d 日志当前的行号 %(asctime)s 打印日志的时间 阅读全文
posted @ 2022-08-30 16:32 oktokeep 阅读(559) 评论(1) 推荐(0)
摘要: Java8 多线程及并行计算demo #接口 public interface RemoteLoader { String load(); default void delay() { try { Thread.sleep(1000L); } catch (InterruptedException 阅读全文
posted @ 2022-08-30 15:13 oktokeep 阅读(516) 评论(2) 推荐(0)
摘要: redis zset 延迟合并任务处理 @Autowired public RedisTemplate redisTemplate; ##1.发送端:在接口中收集任务ID,累计时间段之后,合并处理。 ##redis zset 主键,任务ID(不重复),时间戳 String key = "任务分组名称 阅读全文
posted @ 2022-08-30 15:03 oktokeep 阅读(172) 评论(0) 推荐(0)
摘要: #sqlmapper <resultMap id="BaseResultMap" type="com.LogEntity" > <result column="ID" property="ID" /> <result column="content_md5" property="contentMd5 阅读全文
posted @ 2022-08-30 14:33 oktokeep 阅读(1060) 评论(0) 推荐(0)
摘要: mybatis执行insert语句后,返回当前插入数据主键的方法 keyProperty区分大小写 #这样查询没有返回主键值 <insert id="addLog" useGeneratedKeys="true" keyProperty="id" parameterType="com.LogEnti 阅读全文
posted @ 2022-08-30 14:26 oktokeep 阅读(85) 评论(0) 推荐(0)
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 63 下一页