07 2021 档案

摘要:@Configurationpublic class RedissonConfProperty { @Value("${spring.redis.cluster.nodes:}") private String clusters; @Value("${spring.redis.host:}") pr 阅读全文
posted @ 2021-07-27 11:57 dahuinihao 阅读(60) 评论(0) 推荐(0) 编辑
摘要:/** * tweeter的snowflake 移植到Java.参考资料:https://github.com/twitter/snowflake * id构成: 42位的时间前缀 + 10位的节点标识 + 12位的sequence避免并发的数字(12位不够用时强制得到新的时间前缀) * id单调递 阅读全文
posted @ 2021-07-27 11:29 dahuinihao 阅读(403) 评论(0) 推荐(0) 编辑