j2ee web获取路径
String prefix = getServletContext().getRealPath("/");String file = getInitParameter("log4j-init-file");prefix is D:\apache-tomcat-6.0.18\webapps\RenRenBrushWeb\prefix is D:\apache-tomcat-6.0.18\webapps\RenRenBrushWeb\ 发布时间: 2012-07-25 09:43:05 作者: rapoo
j2ee web获取路径
String prefix = getServletContext().getRealPath("/");String file = getInitParameter("log4j-init-file");prefix is D:\apache-tomcat-6.0.18\webapps\RenRenBrushWeb\prefix is D:\apache-tomcat-6.0.18\webapps\RenRenBrushWeb\