摘要:
方法一:String url = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";方法二:String projectUrl = request.getRequestURL().toString();projectUrl = projectUrl.substring(0, projectUrl.lastIndexOf("/")); 阅读全文