springboot獲取項目目錄路徑

springboot部署後獲取項目的路徑javascript //獲取跟目錄 File path = new File(ResourceUtils.getURL("classpath:").getPath()); if(!path.exists()) path = new File(""); System.out.println("path:"+path.getAbsolutePath());
相關文章
相關標籤/搜索