Java获取完整URL

转自:http://blog.csdn.net/shiyuezhong/article/details/8448674


String url = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + request.getServletPath();


private AnchorInfo mAnchor;

你可能感兴趣的:(Java获取完整URL)