Map map = request.getParameterMap(); Iterator it = map.keySet().iterator(); String paramStr = ""; while(it.hasNext()){ String key = it.next().toString(); String value = request.getParameter(key); paramStr += key + "=" + value + "&"; } //完整的请求 System.out.println(request.getRequestURL()+"?"+paramStr);