1.Timestamp 转 LocalDateTime Timestamp time = Timestamp.from(Instant.now()); LocalDateTime localDateTime = time.toLocalDateTime(); 2.LocalDateTime 转 Timestamp Timestamp time = Timestamp.valueOf(LocalDateTime.now());
LocalDateTime java8 和TimeStamp 互相转化
原文:https://www.cnblogs.com/lalalazar/p/13573267.html