Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认情况下,mongojack 在 Mongo 中将 DateTime 存储为 long。有没有一种简单的方法可以将日期存储为 BSON 日期?
例如,以下内容在 Mongo 中以 long 结束,我想要一个 BSON Date
@JsonProperty("date") date: DateTime