因故,需要学习springmvc,现在demo已经跑起来。列文分析springmvc并简单对比struts2.springmvc的核心对象dispatcherServlet。struts2的核心对象是strutsPrepareAndExecuteFilter,拦截的方式不同,但同为前段控制器(front controller)设计模式。dispatcherServlet的初始化:JVM加载dispatcherServlet时,会先执行静态代码块:static{ ClassPathResource resource = new ClassPathResource(DEFAULT_STRATE.. Read More