Jar hell问题诊断

 

ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
String reosurceName = "xxxx.class";
Enumeration<URL> urls = classLoader.getResources(reosurceName);
while (urls.hasMoreElements()) {
URL url = urls.nextElement();
System.out.println(url);
}

你可能感兴趣的:(类冲突,jar hell,hell)