@RequestMapping("/ad-editLocation/{id}") public String getEditLocation(Model model, @PathVariable("id") int id) { model.addAttribute("location", locationService.findOne(id)); return "ad-editLocation"; }