String realPath = request.getSession().getServletContext().getRealPath("/");
结果如下:E:\javatool\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\XXXVideoApp\
获取Tomcat服务器目录
猜你喜欢
转载自blog.csdn.net/qq_39822451/article/details/86133807
今日推荐
周排行