java获取地址全路径

 1 String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath() + request.getServletPath() + "?" + (request.getQueryString());  
posted @ 2015-10-29 11:30  成章同学  阅读(558)  评论(0编辑  收藏  举报