How to make the RequestMapping to handle GET parameters in the url? For example i have this url
http://localhost:8080/userGrid?_search=false&nd=135197257
If you are willing to change your uri, you could also use PathVariable.
@RequestMapping(value="/mapping/foo/{foo}/{bar}", method=RequestMethod.GET)
public String process(@PathVariable String foo,@PathVariable String bar) {
//Perform logic with foo and bar
}
NB: The first foo is part of the path, the second one is the PathVariable