title: Spring MVC - How to get all request params in a map in Spring controller?
body: <p>Sample URL:</p>
  
  <pre><code>../search/?attr1=value1&amp;attr2=value2&amp;attr4=value4
  </code></pre>
  
  <p>I do not know the names of attr1, att2, and attr4.</p>
  
  <p>I would like to be able to do something like that (or similar, don't care, just as long as I have access to the Map of request param name -> value:</p>
  
  <pre><code>@RequestMapping(value = "/search/{parameters}", method = RequestMethod.GET)
  public void search(HttpServletRequest request, 
  @PathVariable Map&lt;String,String&gt; allRequestParams, ModelMap model)
  throws Exception {//TODO: implement}
  </code></pre>
  
  <p>How can I achieve this with Spring MVC?</p>