半只蚂蚁 发表于 2017-2-17 09:48:30

weblogic得到项目绝对路径

String path = new DefaultResourceLoader().getClassLoader().getResource("/").getPath();
path = URLDecoder.decode(path);
if (path.endsWith("/")) {
return path.substring(0, path.length() - 1);
} else {
return path;
}
页: [1]
查看完整版本: weblogic得到项目绝对路径