当在java.time.Instant文档中的某些字段上使用新的Java8 MongoDB类型,然后使用@RepositoryRestResource公开该类型时,这些字段将显示如下所示:
{
"createdAt": {
"content": "2017-01-01T00:00:00.000Z"
}
}我希望他们看起来是这样的:
{
"createdAt": "2017-01-01T00:00:00.000Z"
}我怎么才能纠正这种行为?
https://stackoverflow.com/questions/42393204
复制相似问题