`
bbwang8088
  • 浏览: 43950 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Tomcat下获取web应用的绝对路径

阅读更多

 

String tomcatRoot = request.getSession().getServletContext().getRealPath("/");  

 可以获取到"%tomcat_root%\%web_app_name%\"的绝对路径

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics