「Spring」RequestMethod.GETを利用するサンプル

サンプルコード
@RequestMapping(value = “/display", method = RequestMethod.GET)
public String display(Model model) {
UserForm form = new UserForm();
form.setNum(1234);
form.setName(“yamada");
model.addAttribute(“userForm", form);
return “xxx";
}

Software

Posted by arkgame