码迷,mamicode.com
首页 > 编程语言 > 详细

java web获取路径

时间:2018-01-28 15:33:43      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:ppt   bst   ssi   log   获取路径   child   java web   target   context   

class

URL save = Thread.currentThread().getContextClassLoader().getResource("");
String str = save.toString();
str = str.substring(6) +childPath;

 

webapp

String excelPath = request.getSession().getServletContext().getRealPath("dddd);
excelpath=D:\0pentakill\0code\ycgwl\pp\rosefinch-ppTest-web\target\webapp\dddd

 

java web获取路径

标签:ppt   bst   ssi   log   获取路径   child   java web   target   context   

原文地址:https://www.cnblogs.com/zfzf1/p/8371061.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!