Example #1
0
  @RequestMapping(value = "/{id}", method = RequestMethod.GET)
  public String show(@PathVariable("id") Long id, Model uiModel) {
    Banks banks = banksService.findById(id);
    uiModel.addAttribute("banks", banks);

    return "banks/show";
  }
Example #2
0
 @RequestMapping(value = "/{id}", params = "form", method = RequestMethod.GET)
 public String updateForm(@PathVariable("id") Long id, Model uiModel) {
   uiModel.addAttribute("banks", banksService.findById(id));
   return "banks/update";
 }