Skip to content

maojx0630/snow-flake-zk-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

snow-flake-zk-spring-boot-starter

使用方法

<dependency>
   <groupId>com.github.maojx0630</groupId>
   <artifactId>snow-flake-zk-spring-boot-starter</artifactId>
   <version>0.4</version>
</dependency>

配置zk地址

zk:
  connect: 127.0.0.1:2181

调用IdUtils的next或nextStr即可 ##注意

  • zk请使用3.4.x,在较高spring cloud版本下 需要使用3.5.x zookeeper,请查看curator-framework依赖版本选择zk版本
  • 若启动时zk不可用,且开启探测则会使用默认workerId
  • 所有配置信息

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages