@RequestMapping(value = "/details/{id}", method = RequestMethod.GET)
 public String displayAdminDetails(@PathVariable("id") String id, ModelMap model) {
   logger.info("displayAdminDetails {}", id);
   MemberModel member = memberService.findById(id);
   model.addAttribute("member", member);
   return "/admin/member/details";
 }
 @Override
 public void postHandle(
     HttpServletRequest request,
     HttpServletResponse response,
     Object handler,
     ModelAndView modelAndView)
     throws Exception {
   if (modelAndView != null) {
     String viewName = modelAndView.getViewName();
     if (!StringUtils.startsWith(viewName, REDIRECT_VIEW_NAME_PREFIX)) {
       modelAndView.addObject(MEMBER_ATTRIBUTE_NAME, memberService.getCurrent());
     }
   }
 }
  /**
   * datatables 分页查询 条件查询
   *
   * @param iDisplayLength
   * @param iDisplayStart
   * @param sColName
   * @param sSortDir_0
   * @param sSearch
   * @param sEcho
   * @return
   */
  @RequestMapping(value = "/getDatatables")
  @ResponseBody
  public TableData<MemberModel> getByDatatables(
      int iDisplayLength,
      int iDisplayStart,
      String sColName,
      String sSortDir_0,
      String sSearch,
      int sEcho) {
    Pageable pageable = new PageRequest(0, 25);
    Page<MemberModel> list = memberService.find(pageable);
    logger.info("list {}", list.getContent());

    TableData<MemberModel> table = new TableData(list, sEcho, false);
    logger.info("table {}", table);
    return table;
  }