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;
}

猜你喜欢

转载自jackaney.iteye.com/blog/1664184
今日推荐