标签:uri scheme is not fi osgi 异常
如果想根据给定的文件名称创建一个File实例,你可能会这么写:
File file = new File(当前类.class.getResource("config").toURI());
File file = new File(FileLocator.toFileURL(当前类.class.getResource("config.xml")).toURI());
标签:uri scheme is not fi osgi 异常
原文地址:http://blog.csdn.net/windrui/article/details/40581219