【发布时间】:2016-11-13 12:48:47
【问题描述】:
所以,我正在制作这个程序,试图了解更多关于 Spring 和 MongoDb 的信息。我已经构建了这个勾选的模块,它使用 MongoDb 以 JSON 格式存储票信息。它看起来像这样:
> {
> "_id" : ObjectId("581fb1a24beb291d27f95a50"),
> "userID" : "581ddccb4beb29112a7b4f77",
> "ticketStatus" : "Processing",
> "ticketSolution" : "Not_Solved",
> "ticketComment" : null;
> }
我的问题是如何在“ticketComment”字段中插入评论? (我需要使用 Criteria.where("ticketID").is(ticketID))
的东西【问题讨论】:
标签: java json spring mongodb mongotemplate