片片白云催犊返,飘飘黄叶止儿啼
--何处是归程
随笔 - 12, 文章 - 0, 评论 - 4, 引用 - 0
java中获得系统路径
java中获得系统路径
在Application中:
System.getProperty("user.dir")
在Servlet中:
ServletContext servletContext = config.getServletContext();
String rootPath = servletContext.getRealPath("/");
在jsp中:
application.getRealPath("")
posted on
2004-12-08 10:20
云在青天水在瓶
阅读(1038) 评论(
3
)
编辑
收藏
刷新评论
刷新页面
返回顶部
程序员问答社区,解决您的IT难题
博客园首页
博问
新闻
闪存
程序员招聘
知识库
导航
博客园
首页
新随笔
联系
订阅
管理
公告