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

}

本文地址:http://www.yaronspace.cn/blog/index.php/archives/486