mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
Compare commits
2 Commits
354f9d11a3
...
3967aac363
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3967aac363 | ||
|
|
4b1e4fa021 |
@ -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" 生成器:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user