@@ -0,0 +1,808 @@
+package asa.controller;%0A%0Aimport asa.bean.Attendance;%0Aimport asa.service.AttendanceService;%0Aimport org.springframework.web.bind.annotation.*;%0Aimport org.springframework.http.MediaType;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A%0Aimport java.util.*;%0A%0A@RestController%0A@RequestMapping(%22/attendance%22)%0Apublic class AttendanceController %7B%0A%0A%09@Autowired%0A%09private AttendanceService attendanceService;%0A%09%0A%09%0A    @RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)%0A    public @ResponseBody Map%3CString,String%3E add(@RequestBody Attendance attendance)%7B%0A        %0A%09%09  Map%3CString,String%3E map=new HashMap%3C%3E();%0A%09%09  if(attendanceService.add(attendance))%7B%0A      %09%09%09map.put(%22result%22,%22success%22);%0A%09%09  %7D%0A%09    %09else%7B%0A%09%09%09map.put(%22result%22,%22failed%22);%0A%09%09%7D%0A%09%09  return map;%0A    %7D%0A%09%0A%0A%7D%0A

Create AttendanceController.java