action失去tomcat的绝对路径

action得到tomcat的绝对路径String home getServlet().getServletContext().getRealPath(/)//得到项

action得到tomcat的绝对路径
String home = getServlet().getServletContext().getRealPath("/");//得到项目的绝对路径