java獲取文件路徑的二種方式

方式一:使用類加載器java @Test public void test_path1() { String path = ClassLoader.getSystemResource("").getPath(); System.out.println(path); }   方式二:使用classpathweb @Test public void test_path2() { //
相關文章
相關標籤/搜索