String url = request.getScheme() + "://" + request.getServerName() + ("http".equals(request.getScheme()) && request.getServerPort() == 80 || "https".equals(request.getScheme()) && request.getServerPort() == 443 ? "" : ":" + request.getServerPort()) + request.getRequestURI() + (request.getQueryString() != null ? "?" + request.getQueryString() : "");
tips:
本文由导入,原文链接: