Javaweb 总结

1、获取tomcat目录

String path = request.getSession().getServletContext().getRealPath(/);
String path = System.getProperty(“catalina.home”);
String path = classLoader.getResource("/").getPath()

猜你喜欢

转载自blog.csdn.net/weixin_41544662/article/details/132023094