接口响应Long转String注解 By lhy | 2024 年 8 月 20 日 0 Comment 在接口响应对象的字段上添加@JsonSerialize(using = ToStringSerializer.class)注解可在响应的JSON中将Long型的字段转为字符串类型 结果: