Long类型精度丢失,date时间格式化-自定义消息转换器
long类型精度丢失和date时间格式化处理方式:1、注解类型:long类型精度丢失://fastJSon有效@JsonSerialize(using= ToStringSerializer.class)//JackSon有效@JsonFormat(shape = JsonFormat.Shape.STRING)date类型时间格式化://jackson转换@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT
原创
2021-05-06 11:29:19 ·
830 阅读 ·
5 评论