Beispiel #1
0
  @RequestMapping(value = "/search/{docStr}/page/{start}/{step}")
  @ResponseBody
  public List docSearch(
      @PathVariable String docStr,
      @PathVariable int start,
      @PathVariable int step,
      HttpServletRequest request,
      ModelMap modelMap) {
    log.debug("doc搜索 :" + docStr);
    Map map = new HashMap();
    map.put("docStr", "%" + docStr.replace(" ", "%") + "%");
    map.put("start", start);
    map.put("step", step);
    List<Doc> list = docService.docSearch(map);

    return list;
  }