现在的位置: 首页 > 综合 > 正文

路径

2018年04月28日 ⁄ 综合 ⁄ 共 324字 ⁄ 字号 评论关闭

String scheme = ServletActionContext.getRequest().getScheme();
String serverName = ServletActionContext.getRequest() .getServerName();
int localPort = ServletActionContext.getRequest().getLocalPort();
String contextPath = ServletActionContext.getRequest().getContextPath();

 

String Url = scheme + "://" + serverName + ":"+ localPort + contextPath + "/";

 

【上篇】
【下篇】

抱歉!评论已关闭.