如何查找class的加载地址
package foo;
public class Test
{
public static void main(String[] args)
{
ClassLoader loader = Test.class.getClassLoader();
System.out.println(loader.getResource("foo/Test.class"));
// file:/C:/Users/Jon/Test/foo/Test.class
}
}
Loading...