getResource("/")返回项目classes目录,返回protocol=file
getResource("")返回当前类所在的目录,有可能是jar内部目录如 file:/D:/jar/maven/org/anyline/anyline-core/8.7.2-SNAPSHOT/anyline-core-8.7.2-SNAPSHOT.jar!/org/anyline/util/ 返回protocol=jar