java 动态获取web应用的部署路径
2024-10-19 00:34:04
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);
}
最新文章
- 个人理解java的继承
- help和dir函数
- KVM中Linux虚拟机的硬盘添加方法
- 周赛-Equidistant String 分类: 比赛 2015-08-08 15:44 6人阅读 评论(0) 收藏
- bzoj题解汇总(1001-1016)
- reverse(), extend(), sort() methods of list
- Memcached学习(二)
- 分享个人Vim型材
- 把事务封装成类似Serializable用法的特性
- Spring(二)
- Winform跨窗体操作控件(使用委托)
- dede表前缀不定时,查询表#@__archives
- linux ss 命令
- AspNetCore中使用Ocelot之 IdentityServer4(1)
- C#零基础入门-0-开发工具
- unittest单元测试框架中的参数化及每个用例的注释
- 脚本:定时释放 Linux/CentOS 缓存【转载自:杭州山不高】
- C#条形码生成(五)----Web下的测试
- Spring.net方法的替换
- TCP粘包处理 参考spserver
热门文章
- requirejs + vue 项目搭建
- python request使用
- Sencha Touch 之 Ext.fly方法的使用
- 删除字符串中多余的空白字符和空行(C语言实现)
- MVC入门
- delphi 修改代码补全的快捷键(由Ctrl+Space 改为 Ctrl + alt + Space)
- DELL服务器安装Windows server 2003---解决找不到安装在计算机上的硬盘驱动器 安装无法
- [Leetcode][Python]26: Remove Duplicates from Sorted Array
- spring mvc 返回json数据的四种方式
- iOS 使用UILocalizedIndexedCollation实现区域索引标题(Section Indexed Title)即拼音排序