天蓬老师2017-04-18 10:27:59
The official documentation of MongoDB is very complete, please refer to the official manual of the MongoDB Java driver:
http://mongodb.github.io/mong...
Update operates as follows:
collection.updateOne(eq("i", 10), set("i", 110));