获取web项目访问路径
程序员文章站
2022-06-03 17:50:02
...
String url = request.getScheme() + "://" + request.getServerName()+ ":" + request.getServerPort() + request.getContextPath() ;
String url = request.getScheme() + "://" + request.getServerName()+ ":" + request.getServerPort() + request.getContextPath() ;
上一篇: 我爸:做人好难