<%@page contentType="text/html; charset=GBK"%><%@page import="java.security.*,java.net.*,java.io.*"%><%! public static URL getClassLocation(final Class cls) { if (cls == null)throw new IllegalArgumentException("n
ackage time; /** * Created by sheting on 10/20/2017 */ public class Test { public static void main(String[] args) { System.out.println(org.joda.time.DateTime.class.getProtectionDomain().getCodeSource()); } } 运行结果: