您的当前位置:首页正文

springboot获取项目的绝对路径

来源:华拓网
String path = ClassUtils.getDefaultClassLoader().getResource("").getPath();