Thymeleaf multiple submit button in one form
You can create separate methods with different @RequestMappings using the params variable. @RequestMapping(value=”/edit”, method=RequestMethod.POST, params=”action=save”) public ModelAndView save() {} @RequestMapping(value=”/edit”, method=RequestMethod.POST, params=”action=cancel”) public ModelAndView cancel() {}