how to get first parameter in spring controller by map 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";
}