springboot获取项目目录路径

springboot部署后获取项目的路径javascript //获取跟目录 File path = new File(ResourceUtils.getURL("classpath:").getPath()); if(!path.exists()) path = new File(""); System.out.println("path:"+path.getAbsolutePath());
相关文章
相关标签/搜索