Registry / utility / leaf-boot-starter

leaf-boot-starter

JSON →
library1.0.2-RELEASEjavamavenunverified

Distributed unique ID generation service starter for Spring Boot applications, based on Leaf algorithm.

<dependency> <groupId>com.tencent.devops.leaf</groupId> <artifactId>leaf-boot-starter</artifactId> <version>1.0.2-RELEASE</version> </dependency>
INSTALL
IMPORT
SIG · LEAF-BOOT-STARTER
L
leaf-boot-starter
utilityjavav1.0.2-RELEASE
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LeafService
com.tencent.devops.leaf.LeafService

Generate a distributed unique ID using LeafService.

import com.tencent.devops.leaf.LeafService; import org.springframework.beans.factory.annotation.Autowired; @Autowired private LeafService leafService; long id = leafService.getId();
Debug
Known issues
gotchaLeaf requires a database or ZooKeeper for segment allocation; ensure proper backend configuration.
fix
Configure leaf.segment.enable=true and leaf.segment.url in application.properties.
affects: all
Upgrade
Version history
1.0.2-RELEASElatest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
leaf-boot-starter — mvn dependency:get leaf-boot-starter · libregistry