spring get all path variables and query string code example
Example: spring mvc get all request parameters
@RequestMapping(value = {"/search/", "/search"}, method = RequestMethod.GET)
public String search(@RequestParam Map<String,String> allRequestParams) {
return "viewName";
}