@RequestMapping(value = "update", method = RequestMethod.POST) public String update(@Valid Coach coach, RedirectAttributes redirectAttributes) { coachService.updateCoach(coach); redirectAttributes.addFlashAttribute("message", "更新教练成功"); return "redirect:/coach/"; }