获取web项目classes下的路径

this.getClass().getClassLoader().getResource("").getPath();

 

posted @ 2016-04-14 10:53  IAMME  阅读(292)  评论(0编辑  收藏  举报