当前位置: 技术问答>java相关
Servlet 能知道当前绝对路径吗?
来源: 互联网 发布时间:2015-01-04
本文导语: 如何知道. | ServletContext.getRealPath(); java.lang.String getRealPath(java.lang.String path) Returns a String containing the real path that corresponds to a virtual path.
如何知道.
|
ServletContext.getRealPath();
java.lang.String getRealPath(java.lang.String path)
Returns a String containing the real path that corresponds to a virtual path.
java.lang.String getRealPath(java.lang.String path)
Returns a String containing the real path that corresponds to a virtual path.