摘要: 获得配置文件内容,其最大的问题就是文件路径的定位:通过ClassLoader去加载资源。参数需要从classpath的入口来算起。也就是说需要取全路径名称。 String path = 当前类名.class.getClassLoader().getResource("").toURI().get... 阅读全文
posted @ 2014-06-11 15:18 小子582547523 阅读(1873) 评论(0) 推荐(0) 编辑