1
所以,我正在制作这个程序,试图更多地了解Spring和MongoDb。我已经构建了这个打勾的模块,它使用MongoDb以JSON格式存储票据信息。它看起来像这样:如何使用MongoTemplate将单个字段插入到JSON中?
> {
> "_id" : ObjectId("581fb1a24beb291d27f95a50"),
> "userID" : "581ddccb4beb29112a7b4f77",
> "ticketStatus" : "Processing",
> "ticketSolution" : "Not_Solved",
> "ticketComment" : null;
> }
我的问题是我如何插入评论到“ticketComment”字段? (我需要的东西,使用Criteria.where( “ticketID”)为(ticketID))
我试过了,它的工作原理! –