@Test public void testTopReport() throws ClientProtocolException, IOException, InterruptedException { StringBuilder builder = new StringBuilder(); builder.append("http: .append("?") .append("callback=jQuery11020021555292898187584"); String result = HttpClientUtil.request(builder.toString()); System.out.print(result); }
@RequestMapping("/report/topReport") @ResponseBody public MapResult topReport(HttpServletRequest request, String callback) { MapResult result = new MapResult(); Map<String, Object> data = service.getTopReport(); result.setResult(data); result.setCallback(callback); return result; }
ReportController { @RequestMapping("/report/topReport") @ResponseBody public MapResult topReport(HttpServletRequest request, String callback) { MapResult result = new MapResult(); Map<String, Object> data = service.getTopReport(); result.setResult(data); result.setCallback(callback); return result; } }
ReportController { @RequestMapping("/report/topReport") @ResponseBody public MapResult topReport(HttpServletRequest request, String callback) { MapResult result = new MapResult(); Map<String, Object> data = service.getTopReport(); result.setResult(data); result.setCallback(callback); return result; }  }
ReportController { @RequestMapping("/report/topReport") @ResponseBody public MapResult topReport(HttpServletRequest request, String callback) { MapResult result = new MapResult(); Map<String, Object> data = service.getTopReport(); result.setResult(data); result.setCallback(callback); return result; }  @RequestMapping("/report/metrics") @ResponseBody MapResult metric(HttpServletRequest request, String callback); @RequestMapping("/report/topReport") @ResponseBody MapResult topReport(HttpServletRequest request, String callback); }
ReportController { @RequestMapping("/report/topReport") @ResponseBody public MapResult topReport(HttpServletRequest request, String callback) { MapResult result = new MapResult(); Map<String, Object> data = service.getTopReport(); result.setResult(data); result.setCallback(callback); return result; }  @RequestMapping("/report/metrics") @ResponseBody MapResult metric(HttpServletRequest request, String callback); @RequestMapping("/report/topReport") @ResponseBody MapResult topReport(HttpServletRequest request, String callback);  }