java类中获取tomcat路径

来源:互联网 发布:美国人的零食知乎 编辑:程序博客网 时间:2024/05/21 17:25
Map m = System.getenv();
     
    System.out.println(m.get("CATALINA_HOME"));