主键使用雪花算法:
@ApiModelProperty("主键id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
出现:查询时候出现精度缺失:preview 回显的值造成精度缺失,response 的值没有问题 解决方式: 将id 转换为字符串的返回
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
微信扫一扫
主键使用雪花算法:
@ApiModelProperty("主键id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
出现:查询时候出现精度缺失:preview 回显的值造成精度缺失,response 的值没有问题 解决方式: 将id 转换为字符串的返回
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
相关推荐