find1 [MongDB] update, find 1234567891011121314151617181920212223242526 private void updateDatas(String key, String value, MongoTestVO mongoTestVO) { Criteria criteria = new Criteria(key); criteria.is(value); Query query = new Query(criteria); Update update = new Update(); update.set("name", mongoTestVO.getName()); update.set("address", mongoTestVO.getAddress()); mongoTemplate.updateMulti(query, update, "person"); } privat.. 2016. 6. 2. 이전 1 다음