I have a class setup like the following...
public class Person {
protected String firstName;
protected String lastName;
protected Integer age;
...
}
A controller that looks like this...
@RequestMapping(value={"/person"}, method = RequestMethod.GET)
public void returnPerson(Person person, ModelMap model, HttpServletResponse response) {
....
}
And I am passing in a straight URL such as...
<a href="/person?firstName=John&lastName=Smith&age=18">Link</a>
Is it possible to pass all of these into the "Person" argument in my controller rather than making numerous @RequestParam
arguments for each one? Especially if I am going to be passing in a good amount of params?