Exemplo n.º 1
0
 @RequestMapping(value = "/{id}", method = RequestMethod.GET)
 public String update(@PathVariable("id") int id, Model uiModel) {
   MemberHelp help = service.findOne(id);
   addMenu(uiModel);
   uiModel.addAttribute("help", help);
   return EDIT;
 }
Exemplo n.º 2
0
 @RequestMapping(value = "/{id}", method = RequestMethod.PUT)
 public String update(@PathVariable("id") int id, @ModelAttribute("help") MemberHelp help) {
   help.setId(id);
   service.update(help);
   return REDIRECT + id;
 }