-
Type: Improvement
-
Resolution: Done
-
None
-
Affects Version/s: None
-
Component/s: Documentation
-
Environment:my environment :
mongodb used : mongodb-win32-x86_64-2008plus-2.6.1
java environmen t: mongo-java-driver-2.12.2.jar
springMVC 3.2
*Location*: http://www.mongodb.org/about/support/
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
*Screen Resolution*: 1600 x 900
*repo*: mongodb-www-about
*source*: support
my environment : mongodb used : mongodb-win32-x86_64-2008plus-2.6.1 java environmen t: mongo-java-driver-2.12.2.jar springMVC 3.2 *Location*: http://www.mongodb.org/about/support/ *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36 *Screen Resolution*: 1600 x 900 *repo*: mongodb-www-about *source*: support
DBObject user = new BasicDBObject();
user.put("name", "hoojo");
user.put("age", 23);
WriteResult wr = dbCollection.insert(user);// dbCollection.save(user);
method wr.getN() return 0 both with insert and save,
but the data save success.
Reporter: luoch
E-mail: luoch668@163.com