diff --git a/spring-framework-reference/src/mvc.xml b/spring-framework-reference/src/mvc.xml index 46e2a4585f..dc7e0b7e4f 100644 --- a/spring-framework-reference/src/mvc.xml +++ b/spring-framework-reference/src/mvc.xml @@ -1092,7 +1092,7 @@ public class RelativePathUriTemplateController { Invalid ordering of BindingResult and @ModelAttribute - @RequestMapping(method = RequestMethod.POST) + @RequestMapping(method = RequestMethod.POST) public String processSubmit(@ModelAttribute("pet") Pet pet, Model model, BindingResult result) { … } @@ -1101,7 +1101,7 @@ public String processSubmit(@ModelAttribute("pet") Pet pet BindingResult. To get this working you have to reorder the parameters as follows: - @RequestMapping(method = RequestMethod.POST) + @RequestMapping(method = RequestMethod.POST) public String processSubmit(@ModelAttribute("pet") Pet pet, BindingResult result, Model model) { … }