Java implements mongodb multi-condition query. It is best to take the request parameters dynamically.

  1. query conditions are composed of String and List, such as: (List < String > id, String location, String status,.)
  2. The exact number of fields in the
  3. parameter is not certain. There may be more than one
  4. .
  5. how to implement this situation? you"d better use springdata mongodb interface or MongoTemplate to implement
  6. . Can
  7. use @ query, to write query statements? it"s best to read the corresponding request parameters with placeholders, like JPA
  8. .
Menu