JAVA获取项目路径.doc
利用System.getProperty()函数获取当前路径: System.out.println(System.getProperty("user.dir"));//user.dir指定了当前的路径
下载地址
用户评论
不错,可以用,谢谢分享