コード例 #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();
 }