// String str = request.getRequestURI(); // 或许主机访问地址// String str = request.getRequestURL().toString();// String sm = "http://" + str.split("/")[2] + "/" + str.split("/")[3];