JAVA获取tomcat的绝对路径

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

默认获取的是bin的路径,这里把bin换成空就获取的是tomcat的路径了。tomcat

相关文章
相关标签/搜索