摘要:
//For Window 需要用反斜杠 private String path = "..\\webapps\\ROOT\\upload\\documents\\"; //For Other OS 需要用正斜杠 private String path2 = "/opt/tomcat/webapps/ROOT/upload/documents/"; //getBasedir() 和 getSeparator()定义了在不同操作系统下的路径或连接符 private String Basedir,Separator; public String getSeparator() { if(Separat 阅读全文
posted @ 2010-02-04 21:48 刘政道 阅读(1232) 评论(4) 推荐(0) 编辑