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