摘要: ###1.LocalDate转Date LocalDate nowLocalDate = LocalDate.now(); Date date = Date.from(localDate.atStartOfDay(ZoneOffset.ofHours(8)).toInstant()); ###2.L 阅读全文
posted @ 2021-06-10 11:44 cchilei 阅读(323) 评论(0) 推荐(0) 编辑
摘要: //需要添加自定义序列化类 @Component public class JsonDateSerializer extends JsonSerializer<Date> { @Override public void serialize(Date date, JsonGenerator jsonG 阅读全文
posted @ 2021-06-10 11:41 cchilei 阅读(331) 评论(0) 推荐(0) 编辑