What is @ModelAttribute in Spring MVC?
@ModelAttribute refers to a property of the Model object (the M in MVC 😉 so let’s say we have a form with a form backing object that is called “Person” Then you can have Spring MVC supply this object to a Controller method by using the @ModelAttribute annotation: public String processForm(@ModelAttribute(“person”) Person person){ person.getStuff(); } … Read more