@RequestMapping(value = "/appointment", method = RequestMethod.POST) @ResponseBody public void setAppointment(@RequestBody Appointment appointment) { System.out.println("**********controller"); appointmentMgmtService.setAppointment(appointment); }
@RequestMapping(value = "/list", method = RequestMethod.GET) public @ResponseBody List<Appointment> getUser(ModelMap map) { System.out.println( "Came inside this method >>>> :::: " + appointmentMgmtService.getAllAppointment()); return appointmentMgmtService.getAllAppointment(); }