雪花算法id在json时后几位被置零
增加@JsonSerialize(using= ToStringSerializer.class)注解
```
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
* id
*/
@TableId(value = "id", type = IdType.ID_WORKER)
@JsonSerialize(using= ToStringSerializer.class)
private Long id;
```
标签:json,时后,JsonSerialize,算法,ToStringSerializer,id From: https://www.cnblogs.com/yexuba/p/16988083.html