09 2016 档案

读取Properties配置文件, 四种方式都可以得到webroot/WEB-INF/classes这个路径
摘要:下面四种方式都可以得到webroot/WEB-INF/classes这个路径,有什么区别,哪种方式最好? String path = this.getClass().getResource("/").getPath(); String path2 = this.getClass().getClass 阅读全文
posted @ 2016-09-02 11:38 xiu1009 阅读(3052) 评论(0) 推荐(0)