String bootstrapPath = System.getProperty("sun.boot.class.path");
System.out.println("BootStrapClassLoader Path : " + bootstrapPath);
String extPath = System.getProperty("java.ext.dirs");
System.out.println("ExtClassLoader Path : " + extPath);
String appPath = System.getProperty("java.class.path");
System.out.println("AppClassLoader Path : " + appPath);
Java 默认三个ClassLoader的加载路径
最新推荐文章于 2022-04-27 14:20:06 发布