獲取java項目目錄 根目錄

System.out.println( ProductInfoController.class.getResource("") ); System.err.println(ProductInfoController.class.getResource("").getPath()); //輸出結果:file:/D:/Develop/apache-tomcat-7.0.83/webapps/appar
相關文章
相關標籤/搜索