title: Send a map as request param to a GET request in Spring Boot app
body: <p>Basically I need to accept a map along with other request parameters in a GET request. </p>
  
  <p>Controller:</p>
  
  <pre><code>@GetMapping
  public Page&lt;Users&gt; search(@Valid final UsersParams params) {
      return userService.search(params);
  }
  </code></pre>
  
  <p>My params object looks like this:</p>
  
  <pre><code>public class UserParams {
      private String age;
      private String gender;
      private MultiValuedMap&lt;String, String&gt; names;
  }
  </code></pre>
  
  <p>So, if I pass a request with these param values:</p>
  
  <pre><code>users?age=20&amp;gender=Male&amp;names={"john,doe","Harry,Potter","James,Bond"}
  </code></pre>
  
  <p>Is this even possible to pass a map in a request and make it work in a GET REST call? </p>
  
  <p>With whatever minute knowledge I have, the only other option I could think of is, instead of the map use a list with comma-separated values and do some deserialization hack. </p>