How to write MongoTemplate Query and Criteria for a complex Document structure?
问题 I am new to MongoTemplate. I want to define a org.springframework.data.mongodb.core.query.Query and org.springframework.data.mongodb.core.query.Criteria to fetch the data from a collection which has a complex document structure. This is the document { "_id" : { "SId" : "ANBS", "AssetId" : "ANBS_BS21", "ST" : NumberLong(1479114000) //StartDate }, "ET" : NumberLong(1479117599) //EndDate, "TS" : [ NumberLong(1479114000), NumberLong(1479114600), NumberLong(1479115200), NumberLong(1479115800),