title: Spring Boot - How to get all request params in a map in Spring RestController?
body: <p>Sample URL:</p>
  
  <pre><code>../get/1?attr1=1&amp;attr2=2&amp;attr3=3
  </code></pre>
  
  <p>I do not know the names of attr1, att2, and attr3.</p>
  
  <p>When I ran this code, I get the size of 'allRequestParams' equals to <strong>1</strong></p>
  
  <pre><code>@RequestMapping(value = "/get/", method = RequestMethod.GET)
  public String search(
  @RequestParam Map&lt;String,Integer&gt; allRequestParams) {
     System.out.println(allRequestParams.size());
     return "";
  }
  </code></pre>
  
  <p>Is it problem with Spring or I wrote a wrong code.
  Thank you!</p>