`
yianpuodiaotu
  • 浏览: 237847 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

JEE中上下文地址的获取path && basePath

    博客分类:
  • JEE
 
阅读更多
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort() + path + "/";

结果:

/tasklist-ies

 

http://localhost:8080/tasklist-ies/

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics