Answers for "@modelattribute"

0

@modelattribute

@RequestMapping(value = "/addEmployee", method = RequestMethod.POST)
public String submit(@ModelAttribute("employee") Employee employee) {
    // Code that uses the employee object

    return "employeeView";
}
Posted by: Guest on February-19-2021

Browse Popular Code Answers by Language