摘要: 一:使用注解的方式 @JsonFormat注解 该注解加在实体类中的日期类型上,可以将返回的Json字符串中的时间戳转换为具体时间 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date update 阅读全文
posted @ 2020-11-09 11:47 master_hxh 阅读(226) 评论(0) 推荐(0) 编辑