As I read explanation here, I found that Spring can automatically bind GET request parameter to a type. Below is the sample code from the link.
@Controller
@RequestMapping("/person")
public class PersonController {
...
@RequestMapping("/create")
public String create(Person p) {
//TODO: add Person to DAO
return "person/show";
}
}
Can someone tell me how spring do this? What bean that contains the logic to convert the parameter onto command type (Person type)?