问题 I am using spring mongoTemplate.I am trying to find Date of birth from min and max Date. My resultant query is db.profile.find({ "$and" : [ { "dob" : { "$lte" : { "$date" : "2014-01-31T18:30:00.000Z"}}} , { "dob" : { "$gte" : { "$date" : "1995-01-31T18:30:00.000Z"}}}]}).pretty() but it didn't return any records.Where I am missing? 回答1: All queries in MongoDB are and operations by default, so you don't need the wrapping $and here. It is also the wrong way to do it, your serialization should