代码
ApplicationHome h = new ApplicationHome(getClass());
File jarF = h.getSource();
System.out.println(jarF.getParentFile().toString());
参考:https://blog.csdn.net/liangcha007/article/details/88526181
ApplicationHome h = new ApplicationHome(getClass());
File jarF = h.getSource();
System.out.println(jarF.getParentFile().toString());
参考:https://blog.csdn.net/liangcha007/article/details/88526181