11 2017 档案
获取web项目根目录下的文件,读取web项目根目录下的某个文件
摘要:方法一: String path = this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath();path = path.substring(0,path.indexOf("/WEB-INF"));Str 阅读全文
posted @ 2017-11-06 14:21 Godfrey富高贵 阅读(4777) 评论(0) 推荐(1)