web之家  

2017年1月5日

摘要: ServletContext 代表当前web应用 如何获取ServletContext对象 ServletConfig对象中维护了ServletContext对象的引用,可以通过以下方式获得 ServletContext ctx=ServletConfig.getServletContext() 那 阅读全文
posted @ 2017-01-05 17:22 路修远而求索 阅读(6496) 评论(0) 推荐(0)
 
摘要: 创建目录 当不存在目录aa文件夹时: File file1=new File("/aa"); Boolean aa=file.mkdir();// true File file1=new File("/aa/bb"); Boolean bb=file.mkdir();// false Boolean 阅读全文
posted @ 2017-01-05 13:48 路修远而求索 阅读(50683) 评论(0) 推荐(0)