@RequestMapping("/ad-deleteLocation/{id}") public String getDeleteLocation(@PathVariable("id") int id) { locationService.delete(id); return "redirect:/ad-searchLocation?deleteSuccess=true"; }