1. 将LocalDateTime传化成 Date
LocalDateTime ldt = LocalDateTime.now();
Date date =Date.from(ldt.atZone(ZoneId.systemDefault()).toInstant());
2. 将Date转化成 LocalDateTime
Date date =new Date();
LocalDateTime ldt = LocalDateTime.ofInstant(date.toInstant(),ZoneId.systemDefault());