随笔分类 -  spring mvc框架

摘要:public GetResource{ String path = GetResource.class.getClassLoader().getResource("xx/xx.txt").getPath(); } 扩展 一 相对路径的获得 说明:相对路径(即不写明时候到底相对谁)均可通过以下方式获得 阅读全文
posted @ 2016-04-22 09:31 joe立 阅读(57360) 评论(0) 推荐(0)