「Spring」@ModelAttributeのbinding属性を指定するサンプル
サンプルコード
@PostMapping(path = "update")
String update(@ModelAttribute(binding = false) Form form) { // binding=falseを指定して引数として直接受け取る
// some code
return "redirect:/employees/update?stage";
}
Coding Changes the World
サンプルコード
@PostMapping(path = "update")
String update(@ModelAttribute(binding = false) Form form) { // binding=falseを指定して引数として直接受け取る
// some code
return "redirect:/employees/update?stage";
}