次のようなクラス設定があります...
public class Person {
protected String firstName;
protected String lastName;
protected Integer age;
...
}
こんな感じのコントローラー…
@RequestMapping(value={"/person"}, method = RequestMethod.GET)
public void returnPerson(Person person, ModelMap model, HttpServletResponse response) {
....
}
そして、私は次のようなストレートな URL を渡しています...
<a href="/person?firstName=John&lastName=Smith&age=18">Link</a>
これらすべてをコントローラーの「Person」引数に渡すことはでき@RequestParam
ますか? 特に、大量のパラメーターを渡す場合はどうなりますか?