public static String DEPLOY_PATH = null;
static
{
String CurrentClassFilePath = Constant.class.getResource("").getPath();
int lastpath = CurrentClassFilePath.lastIndexOf("WEB-INF/");
DEPLOY_PATH = CurrentClassFilePath.substring(0, lastpath);
}

參考:http://blog.sina.com.cn/s/blog_6f3da9650101d70r.html

http://tech.ddvip.com/2011-11/1322014194170006.html

最新文章

  1. 个人理解java的继承
  2. help和dir函数
  3. KVM中Linux虚拟机的硬盘添加方法
  4. 周赛-Equidistant String 分类: 比赛 2015-08-08 15:44 6人阅读 评论(0) 收藏
  5. bzoj题解汇总(1001-1016)
  6. reverse(), extend(), sort() methods of list
  7. Memcached学习(二)
  8. 分享个人Vim型材
  9. 把事务封装成类似Serializable用法的特性
  10. Spring(二)
  11. Winform跨窗体操作控件(使用委托)
  12. dede表前缀不定时,查询表#@__archives
  13. linux ss 命令
  14. AspNetCore中使用Ocelot之 IdentityServer4(1)
  15. C#零基础入门-0-开发工具
  16. unittest单元测试框架中的参数化及每个用例的注释
  17. 脚本:定时释放 Linux/CentOS 缓存【转载自:杭州山不高】
  18. C#条形码生成(五)----Web下的测试
  19. Spring.net方法的替换
  20. TCP粘包处理 参考spserver

热门文章

  1. requirejs + vue 项目搭建
  2. python request使用
  3. Sencha Touch 之 Ext.fly方法的使用
  4. 删除字符串中多余的空白字符和空行(C语言实现)
  5. MVC入门
  6. delphi 修改代码补全的快捷键(由Ctrl+Space 改为 Ctrl + alt + Space)
  7. DELL服务器安装Windows server 2003---解决找不到安装在计算机上的硬盘驱动器 安装无法
  8. [Leetcode][Python]26: Remove Duplicates from Sorted Array
  9. spring mvc 返回json数据的四种方式
  10. iOS 使用UILocalizedIndexedCollation实现区域索引标题(Section Indexed Title)即拼音排序