摘要: fromhttp://blessht.iteye.com/blog/2121845Spring框架提供了构建Web应用程序的全功能MVC模块,叫Spring MVC,通过Spring Core+Spring MVC即可搭建一套稳定的Java Web项目。本文通过Spring MVC源码分析介绍它的核... 阅读全文
posted @ 2015-01-12 19:17 liuzhaoqing 阅读(281) 评论(0) 推荐(0) 编辑
摘要: from:http://www.cnblogs.com/shenliang123/p/3344555.html在项目中总会遇到一些关于加载的优先级问题,刚刚就遇到了一个问题,由于项目中使用了quartz任务调度,quartz在web.xml中是使用listener进行监听的,使得在tomcat启动的... 阅读全文
posted @ 2015-01-12 18:07 liuzhaoqing 阅读(156) 评论(0) 推荐(0) 编辑
摘要: from: http://jinnianshilongnian.iteye.com/blog/16026173.1、DispatcherServlet作用DispatcherServlet是前端控制器设计模式的实现,提供Spring Web MVC的集中访问点,而且负责职责的分派,而且与Spring... 阅读全文
posted @ 2015-01-12 17:54 liuzhaoqing 阅读(414) 评论(0) 推荐(0) 编辑
摘要: spring通过在web.xml 中配置ContextLoaderListener 来加载context配置文件,在DispatcherServlet中也可以来加载spring context配置文件,那么这两个有什么区别呢。ContextLoaderListener中加载的context成功后,s... 阅读全文
posted @ 2015-01-12 16:46 liuzhaoqing 阅读(167) 评论(0) 推荐(0) 编辑
摘要: (一)ContextLoaderListener 与 ContextLoaderServlet本质上是等同的,都是调用ContextLoader来加载web程序的上下文,加载完成以后,都是在ServletContext中,只不过listener需要Servlet2.3及以上支持。(二)Context... 阅读全文
posted @ 2015-01-12 16:37 liuzhaoqing 阅读(285) 评论(0) 推荐(0) 编辑