尝试在java.time.OffsetDateTime中使用新的MongoDB对象。我在用org.springframework.data:spring-data-mongodb:1.8.2.RELEASE。它似乎能够很好地写入数据库,但是当我试图读取数据时,它会抛出以下异常。如果我将对象更改为LocalDateTime,它就能够成功地读取/写入DB。要添加对OffsetDateTime对象的支持,还需要进行其他配置吗?
org.springframework.data.mapping.model.MappingException: No property null found on enti