首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

java中获取系统途径的方法

2012-10-30 
java中获取系统路径的方法在Application中:?System.getProperty(user.dir)?在Servlet中:?ServletContext

java中获取系统路径的方法

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

热点排行