当前版本springboot2.1.3,
利用ApplicationHome类实现:
new Application(this.getClass). getSource(). getParentFile().getPath()
springboot获取jar所在绝对路径
最新推荐文章于 2024-04-15 22:00:41 发布
当前版本springboot2.1.3,
利用ApplicationHome类实现:
new Application(this.getClass). getSource(). getParentFile().getPath()