`

在action或者Servlet中如何得到项目的webRoot路径

阅读更多
String webRootPath = request.getSession().getServletContext().getRealPath("/"); //获得webRoot的路径

 

分享到:
评论
1 楼 540933120 2012-12-02  
[img][/img]

相关推荐

Global site tag (gtag.js) - Google Analytics