且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法使用Mongodb Java驱动程序更新内部Arraylist对象

更新时间:2023-11-22 23:51:04

您已经关闭.您从更新中省略了位置运算符.如图所示编辑代码.

You were close. You omiited the positional operator from the update. Edit your code as shown.

DBObject data=new BasicDBObject("$set",new BasicDBObject("eidlist.$.score",100));