Java 快捷读取CLASSPATH下的资源文件在JVM中查找classpath下的资源文件,使用Class.getResource()方法会方
Java 快捷读取CLASSPATH下的资源文件
在JVM中查找classpath下的资源文件,使用Class.getResource()方法会方便些.
?
/** * The specified file name on that host. <code>file</code> is * defined as <code>path[?query]</code> * @serial */ private String file; /** * The path part of this URL. */ private transient String path;
