/**
*获取当前jar包所在系统中的目录
*/
public File getBaseJarPath() {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
return jarFile.getParentFile();
}
/**
*获取当前jar包所在系统中的目录
*/
public File getBaseJarPath() {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
return jarFile.getParentFile();
}
转载于:https://my.oschina.net/u/1167637/blog/1612269