request得到full URL

String newPath=request.getRequestURI();//或者String newPath=request.getRequestURL();//
 if (request.getQueryString() != null) {
   newPath+='?';
   newPath+=request.getQueryString();
  }

你可能感兴趣的:(request得到full URL)