You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 547 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
12345678910111213141516171819202122232425262728
  1. ## л
  2. JDK 1.8+
  3. ## maven
  4. ```
  5. ```
  6. ## ʾ
  7. ```
  8. // ȫֳʼWorkerIdĬ2^16-1ʼȫֻһΣұã
  9. IdGeneratorOptions options = new IdGeneratorOptions();
  10. options.WorkerId = 1;
  11. YitIdHelper.setIdGenerator(options);
  12. // ʼԺ󣬾ͿҪĵط÷ID
  13. long newId = YitIdHelper.nextId();
  14. ```
  15. DIܼɣԲο YitIdHelper ȥ IdGenerator 󣬱ʹ****ģʽ
  16. ## options Ĭֵ˵
  17. οԴ룺/contract/IdGeneratorOptions.java

雪花算法中非常好用的数字ID生成器