JAVA獲取tomcat的絕對路徑

System.getProperty("user.dir").replace("bin", "")

默認獲取的是bin的路徑,這裏把bin換成空就獲取的是tomcat的路徑了。tomcat

相關文章
相關標籤/搜索