The class MongoTemplate has a protected method doUpdate (...), in it's signature is a boolean parameter upsert. This method is called from methods updateFirst () and updateMulti() with always set to upsert = false. Thus there is no possibility to upsert. Maybe there are other ways?
MongoDB unvailable "upsert" update Page Title Module
Move Remove Collapse