实体类Long属性转为string
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long id;
前端在发送回数据时,也要做处理:
JSON.stringify({
'id': id,
'name': data
})
实体类Long属性转为string
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long id;
前端在发送回数据时,也要做处理:
JSON.stringify({
'id': id,
'name': data
})