假设我有一个ZonedDateTime: ZonedDateTime.of(LocalDateTime.now(), ZoneId.of我有两种方法:
zonedDateTime.withZoneSameInstant(ZoneId.of("Europe/Berlin")); // probably this is the rightone to get the correspondi
尝试将ZonedDateTime与MongoDB结合使用。我可以将ZonedDateTime保存在MongoDB中,但是当我查看记录时,它有很多不必要的东西:> "dateTime" : ISODate第一个问题是,我们是否可以在某些只使用ISODate保存ZonedDateTime的地方更改一些设置?第二个问题,有类似于Jsr310JpaConverters for mongodb的东西吗?public class Zoned