I’m trying to build a multifunctional search method using MongoTemplate, Query and Criteria. Here is my RequestMapping for variable search: I want to be able to search lastName with multiple request parameters. For example, I want to find everyone with lastname “Smith” and “Johnson”. Something like this: URL will be: http://localhost:8080/get?lastName=Smith&lastName=Johnson This is where I found Mapping a Multi-Value Parameter