摘要:
###1.LocalDate转Date LocalDate nowLocalDate = LocalDate.now(); Date date = Date.from(localDate.atStartOfDay(ZoneOffset.ofHours(8)).toInstant()); ###2.L 阅读全文
摘要:
//需要添加自定义序列化类 @Component public class JsonDateSerializer extends JsonSerializer<Date> { @Override public void serialize(Date date, JsonGenerator jsonG 阅读全文