mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
Merge branch 'main' of https://gitee.com/mybatis-flex/mybatis-flex
This commit is contained in:
commit
41b52fa6c2
@ -132,7 +132,9 @@ public class UUIDKeyGenerator implements IKeyGenerator {
|
|||||||
第 2 步:注册 UUIDKeyGenerator
|
第 2 步:注册 UUIDKeyGenerator
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
static {
|
||||||
KeyGeneratorFactory.register("myUUID", new UUIDKeyGenerator());
|
KeyGeneratorFactory.register("myUUID", new UUIDKeyGenerator());
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
第 3 步:在 Entity 里使用 "myUUID" 生成器:
|
第 3 步:在 Entity 里使用 "myUUID" 生成器:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user