获取tomcat安装地址
System.out.println(new File(System.getProperty("user.dir")));
System.out.println(new File(System.getProperty("catalina.home")));
运行结果为:
F:\apache-tomcat-6.0.37\bin
F:\apache-tomcat-6.0.37
System.out.println(new File(System.getProperty("user.dir")));
System.out.println(new File(System.getProperty("catalina.home")));
运行结果为:
F:\apache-tomcat-6.0.37\bin
F:\apache-tomcat-6.0.37