Enumeration<URL> urls = ConfigTable.class.getClassLoader().getResources("org/anyline/"); while (urls.hasMoreElements()) { URL url = urls.nextElement(); System.out.println(url); } file:/D:/git/anyline-simple/anyline-simple-data-jdbc-dialect/anyline-simple-data-jdbc-dm/target/classes/org/anyline/ jar:file:/D:/jar/maven/org/anyline/anyline-data-jdbc-dm/8.7.2-SNAPSHOT/anyline-data-jdbc-dm-8.7.2-SNAPSHOT.jar!/org/anyline/ jar:file:/D:/jar/maven/org/anyline/anyline-data-jdbc/8.7.2-SNAPSHOT/anyline-data-jdbc-8.7.2-SNAPSHOT.jar!/org/anyline/ jar:file:/D:/jar/maven/org/anyline/anyline-data/8.7.2-SNAPSHOT/anyline-data-8.7.2-SNAPSHOT.jar!/org/anyline/ jar:file:/D:/jar/maven/org/anyline/anyline-environment-spring-data-jdbc/8.7.2-SNAPSHOT/anyline-environment-spring-data-jdbc-8.7.2-SNAPSHOT.jar!/org/anyline/ jar:file:/D:/jar/maven/org/anyline/anyline-environment-spring-data/8.7.2-SNAPSHOT/anyline-environment-spring-data-8.7.2-SNAPSHOT.jar!/org/anyline/ jar:file:/D:/jar/maven/org/anyline/anyline-environment-spring/8.7.2-SNAPSHOT/anyline-environment-spring-8.7.2-SNAPSHOT.jar!/org/anyline/ jar:file:/D:/jar/maven/org/anyline/anyline-core/8.7.2-SNAPSHOT/anyline-core-8.7.2-SNAPSHOT.jar!/org/anyline/ jar:file:/D:/jar/maven/org/anyline/anyline-environment-spring-boot/8.7.2-SNAPSHOT/anyline-environment-spring-boot-8.7.2-SNAPSHOT.jar!/org/anyline/如果或获取org.anyline下所有的类,根据上一步返回结构解析目录中的所有文件,如果是jar需要遍历jar,判断是否以org/anyline开头
返回一个包含一个package的所有目录
如所有包含org.anyline的目录,有可能是在jar中