天天看点

获取服务器上JAR包绝对路径

ApplicationHome ah = new ApplicationHome(getClass());
            File file1 = ah.getSource();
            String fileTemp = file1.getParentFile().toString();