首页 > 学院 > 开发设计 > 正文

java中如何获得系统路径!

2019-11-18 11:25:23
字体:
来源:转载
供稿:网友

application中:
System.getPRoperty("user.dir")
在Servlet中:
ServletContext servletContext = config.getServletContext();
String rootPath = servletContext.getRealPath("/");
jsp中:
application.getRealPath("")



发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表