文章分类 -  分布式

分布式
摘要:1.redis <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-integration</artifactId> </dependency> <dependency> < 阅读全文
posted @ 2022-06-22 11:09 DreamCatt 阅读(452) 评论(0) 推荐(0)
摘要:package **; public class IdWorker { //下面两个每个5位,加起来就是10位的工作机器id private static long workerId; //工作id private static long datacenterId; //数据id //12位的序列号 阅读全文
posted @ 2020-12-18 09:35 DreamCatt 阅读(150) 评论(0) 推荐(0)