//linux和windows下通用
private String getJarFilePath() {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
return jarFile.getParentFile().toString();
}
springboot获取运行Jar包的目录
最新推荐文章于 2024-04-15 22:00:41 发布