首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

种路径的调取

2012-12-19 
类路径的调取public String getWebClassesPath() {?? String path getClass().getProtectionDomain().ge

类路径的调取

public String getWebClassesPath() {
?? String path = getClass().getProtectionDomain().getCodeSource()
???? .getLocation().getPath();
?? return path;
??
}

热点排行