@RequestMapping(value = "/getbestoffice") public String getBestOffice(@ModelAttribute MedClinic medClinic, Model model) { model.addAttribute("bestoffice", medClinicService.getBestOffice(medClinic)); return "bestoffice"; }