首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

weblogic失去项目绝对路径

2012-10-16 
weblogic得到项目绝对路径String path new DefaultResourceLoader().getClassLoader().getResource(/)

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

热点排行