mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 更新 自定义主键案例
This commit is contained in:
@ -27,8 +27,6 @@ public class TestDemo implements Serializable {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
* 如果是自定义id 或者 雪花id
|
||||
* 需要增加序列化为字符串注解 因为Long到前端会失真
|
||||
*/
|
||||
@TableId(value = "id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
|
Reference in New Issue
Block a user