In spring-mvc, the query for the controller call can be built using @RequestParam. If you don't supply the value, then it defaults to the method parameter name.
example :
@RequestMapping("/hello")
@ResponseBody
public String hello(@RequestParam String name)
{
return "hello "+name;
}
is mapped to
/hello?name=x
My question is this. How does spring bind this information (or even access it) ? Arent parameter names discarded at runtime ? Does it use some library like paranamer ?