当前位置: 代码迷 >> Web前端 >> weblogic失去项目绝对路径
  详细解决方案

weblogic失去项目绝对路径

热度:105   发布时间:2012-10-16 09:57:37.0
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;
}
  相关解决方案