读书人

种路径的调取

发布时间: 2012-12-19 14:13:15 作者: rapoo

类路径的调取

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

读书人网 >编程

热点推荐