- 获取正在运行的类所在jar包的路径
String filePath = clazz.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath();
filePath = new File(filePath).getAbsolutePath();
String filePath = clazz.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath();
filePath = new File(filePath).getAbsolutePath();