public static boolean isAjaxRequest(HttpServletRequest request) {
        String requestedWith = request.getHeader("X-Requested-With");
        return requestedWith != null && "XMLHttpRequest".equals(requestedWith);
    }
@author Robert HG (254963746@qq.com) on 6/7/15.
lts-admin/src/main/java/com/github/ltsopensource/admin/web/support/AjaxUtils.java