摘要: File pathFile = new File(path); //文件以及路径是否存在 if (!pathFile.exists()) { //mkdirs可以创建指定目录以及所有的父目录,不存在则创建 pathFile.mkdirs(); } substring(参数)是java中截取字符串的一 阅读全文
posted @ 2017-08-04 11:30 来自IT国的猴子 阅读(138) 评论(0) 推荐(0)
摘要: String ContextPath = request.getContextPath();这个获取的是上下文路径,一般就是项目名字,如果上下文路径为空,则这个输出也为空。 String basePath = request.getScheme() + "://" + request.getServ 阅读全文
posted @ 2017-08-04 11:10 来自IT国的猴子 阅读(221) 评论(0) 推荐(0)
摘要: //file {File} //File对象 //response {Object} //服务端返回的数据 //File对象 //服务端返回的数据 阅读全文
posted @ 2017-08-04 10:42 来自IT国的猴子 阅读(172) 评论(0) 推荐(0)