System.out.println("HWPFDocument类引用的jar包:"+HWPFDocument.class.getProtectionDomain().getCodeSource().getLocation());
System.out.println("Range类引用的jar包:"+Range.class.getProtectionDomain().getCodeSource().getLocation());
打印:
HWPFDocument类引用的jar包:file:/C:/Users/tingyu/.m2/repository/org/apache/poi/poi-scratchpad/3.8-beta4/poi-scratchpad-3.8-beta4.jar
Range类引用的jar包:file:/C:/Users/tingyu/.m2/repository/org/apache/poi/poi-scratchpad/3.8-beta4/poi-scratchpad-3.8-beta4.jar
System.out.println("Range类引用的jar包:"+Range.class.getProtectionDomain().getCodeSource().getLocation());
打印:
HWPFDocument类引用的jar包:file:/C:/Users/tingyu/.m2/repository/org/apache/poi/poi-scratchpad/3.8-beta4/poi-scratchpad-3.8-beta4.jar
Range类引用的jar包:file:/C:/Users/tingyu/.m2/repository/org/apache/poi/poi-scratchpad/3.8-beta4/poi-scratchpad-3.8-beta4.jar