上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页
摘要: 在web.xml中配置 <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener> ContextLoaderListener的作用就是启动W 阅读全文
posted @ 2016-11-07 14:48 且听风吟-wuchao 阅读(94128) 评论(2) 推荐(7) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-29 22:11 且听风吟-wuchao 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Iterable Iterable接口有一个方法声明,方法用于获取迭代器。实现该接口的类表明可以使用foreach来遍历。实现该接口的类中的iterator()方法必须返回一个迭代器。而迭代器类通常作为内部类来实现,此内部类必须实现Iterator接口。 Iterator 实现该接口的类可以作为迭代 阅读全文
posted @ 2016-10-28 20:26 且听风吟-wuchao 阅读(2621) 评论(0) 推荐(0) 编辑
摘要: Vector、ArrayList、LinkedList Vector和ArrayList在使用上非常相似,都可用来表示一组数量可变的对象应用的集合,并且可以随机地访问其中的元素。 Vector的方法都是同步的(Synchronized),是线程安全的(thread-safe),而ArrayList的 阅读全文
posted @ 2016-10-28 15:17 且听风吟-wuchao 阅读(7967) 评论(0) 推荐(1) 编辑
摘要: JavaWeb应用的生命周期由Servlet容器控制,而Servlet的容器也同样由Servlet容器控制。Servlet的生命周期分为三个阶段:初始化阶段、运行阶段和销毁阶段。javax.servlet.Servlet接口定义了三个方法:init()、service()和destroy()。它们会 阅读全文
posted @ 2016-10-25 15:28 且听风吟-wuchao 阅读(211) 评论(0) 推荐(0) 编辑
摘要: JavaWeb应用的生命周期是由Servlet容器来控制。 启动阶段 (1)读取web.xml配置文件数据 (2)为JavaWeb应用创建一个ServletContext对象 (3)对所有的Filter进行初始化。 (4)对需要在Web应用启动时就被初始化的servlet进行初始化。 运行阶段 所有 阅读全文
posted @ 2016-10-25 14:29 且听风吟-wuchao 阅读(456) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-24 22:12 且听风吟-wuchao 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 将博客搬至CSDN 阅读全文
posted @ 2016-10-23 21:57 且听风吟-wuchao 阅读(119) 评论(0) 推荐(0) 编辑
摘要: CountDownLatch A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes. A C 阅读全文
posted @ 2016-10-23 21:43 且听风吟-wuchao 阅读(349) 评论(0) 推荐(0) 编辑
摘要: Servlet最常用的对象: 请求对象:ServletRequest和HttpServletRequest,通过该对象获取来自客户端的请求信息 响应对象:ServletResponse和HttpServletResponse,通过该对象生成响应结果 Servlet配置对象:ServletConfig 阅读全文
posted @ 2016-10-22 22:07 且听风吟-wuchao 阅读(438) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页