@Test public void dayVisitCount() throws Exception { mockMvc.perform(get("/dayVisitCount")).andDo(MockMvcResultHandlers.print()).andDo(result -> assertEquals(SUCCESS.getCode(), JSONObject.fromObject(result.getResponse().getContentAsString()).getInt(Code)) ); }
@GetMapping("/dayVisitCount") public Response dayVisitCount() { return ResponseUtil.success(countService.getDayVisitCount()); }
VisitorController { @GetMapping("/dayVisitCount") public Response dayVisitCount() { return ResponseUtil.success(countService.getDayVisitCount()); } }
VisitorController { @GetMapping("/dayVisitCount") public Response dayVisitCount() { return ResponseUtil.success(countService.getDayVisitCount()); }  }
VisitorController { @GetMapping("/dayVisitCount") public Response dayVisitCount() { return ResponseUtil.success(countService.getDayVisitCount()); }  @GetMapping("/visitor/count") Response getVisitorCount(); @GetMapping("/admin/visitor/page") Response page(@RequestParam(value = "count", required = false, defaultValue = "10") int count,
                         @RequestParam(value = "page", required = false, defaultValue = "1") int page,
                         @RequestParam(value = "showLocation", required = false, defaultValue = "false") boolean showLocation); @PostMapping("/visit") Response add(HttpServletRequest request); @GetMapping("/dayVisitCount") Response dayVisitCount(); @GetMapping("/ip/{ip}") Response ipLocation(@PathVariable("ip") String ip); @GetMapping("/ip") Response getIp(HttpServletRequest request); }
VisitorController { @GetMapping("/dayVisitCount") public Response dayVisitCount() { return ResponseUtil.success(countService.getDayVisitCount()); }  @GetMapping("/visitor/count") Response getVisitorCount(); @GetMapping("/admin/visitor/page") Response page(@RequestParam(value = "count", required = false, defaultValue = "10") int count,
                         @RequestParam(value = "page", required = false, defaultValue = "1") int page,
                         @RequestParam(value = "showLocation", required = false, defaultValue = "false") boolean showLocation); @PostMapping("/visit") Response add(HttpServletRequest request); @GetMapping("/dayVisitCount") Response dayVisitCount(); @GetMapping("/ip/{ip}") Response ipLocation(@PathVariable("ip") String ip); @GetMapping("/ip") Response getIp(HttpServletRequest request);  }