摘要: weblogic和tomcat下通用的获取路径或者加载资源的方法 1、获取路径 this.getClass().getClassLoader().getResource("/").getPath(); //格式如...../WEB-INFO/class/ 2、加载配置文件 若配置文件是在源文件根目录 阅读全文
posted @ 2018-01-23 22:12 jamsbwo 阅读(790) 评论(0) 推荐(0) 编辑
©2014 to