[b]核心入口功能定位:[/b]
HttpServletBean:完成的是<init-param>配置元素的依赖注入
FrameworkServle:t完成的是容器上下文的建立
DispatcherServlet:完成的是SpringMVC具体编程元素的初始化策略。
[b]spring-web 和spring-webmvc[/b]:
HttpServletBean:完成的是<init-param>配置元素的依赖注入
FrameworkServle:t完成的是容器上下文的建立
DispatcherServlet:完成的是SpringMVC具体编程元素的初始化策略。
[b]spring-web 和spring-webmvc[/b]:
spring-web provides core HTTP integration, including some handy Servlet filters, Spring HTTP Invoker, infrastructure to integrate with other web frameworks and HTTP technologies e.g. Hessian, Burlap.
spring-webmvc is an implementation of Spring MVC. spring-webmvc depends on on spring-web, thus including it will transitively add spring-web. You don't have to add spring-web explicitly.
You should depend only on spring-web if you don't use Spring MVC but want to take advantage of other web-related technologies that Spring supports.
本文解析了Spring MVC架构中的关键组件,包括HttpServletBean、FrameworkServlet和DispatcherServlet的功能定位,以及spring-web与spring-webmvc模块的区别与联系。强调了spring-webmvc不仅依赖于spring-web,还提供了Spring MVC的具体实现。
8081

被折叠的 条评论
为什么被折叠?



