springboot 获取当前Jar包当前所在目录

// 获取当前目录
ApplicationHome ah = new ApplicationHome(JwtAuthService.class);
String docStorePath = ah.getSource().getParentFile().toString();
System.out.println(docStorePath);

发表评论 (审核通过后显示评论):

昵称:
邮箱:
内容: