Java implements mongodb multi-condition query. It is best to take the request parameters dynamically.
- query conditions are composed of String and List, such as: (List < String > id, String location, String status,.)
The exact number of fields in the - parameter is not certain. There may be more than one
.
- how to implement this situation? you"d better use springdata mongodb interface or MongoTemplate to implement
.
Can - use @ query, to write query statements? it"s best to read the corresponding request parameters with placeholders, like JPA
.