当前使用版本(必填,否则不予处理)

3.4.1

该问题是如何引起的?(确定最新版也有问题再提!!!)

不会使用

十分感谢

Comment From: qmdx

class ImadcnIdentifierGeneratorTest {

    private static ImadcnIdentifierGenerator generator;

    @BeforeAll
    static void init() {
        generator = new ImadcnIdentifierGenerator("localhost:2181");
    }

    @AfterAll
    static void close() throws Exception {
        generator.close();
    }

    @Test
    void nextId() {
        for (int i = 0; i < 10; i++) {
            System.out.println(generator.nextId(null));
            System.out.println(generator.nextUUID(null));
        }
    }
}

imadcn 文档 https://github.com/imadcn/idworker