예제 #1
0
  @RequestMapping(value = "/appointment", method = RequestMethod.POST)
  @ResponseBody
  public void setAppointment(@RequestBody Appointment appointment) {

    System.out.println("**********controller");
    appointmentMgmtService.setAppointment(appointment);
  }
예제 #2
0
 @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();
 }