!555 update docs/zh/core/id.md.

Merge pull request !555 from 励志理智离职/N/A
This commit is contained in:
Michael Yang 2025-07-29 07:59:38 +00:00 committed by Gitee
commit 3967aac363
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -132,7 +132,9 @@ public class UUIDKeyGenerator implements IKeyGenerator {
第 2 步:注册 UUIDKeyGenerator
```java
KeyGeneratorFactory.register("myUUID", new UUIDKeyGenerator());
static {
KeyGeneratorFactory.register("myUUID", new UUIDKeyGenerator());
}
```
第 3 步:在 Entity 里使用 "myUUID" 生成器: