spring源码学习系列3.4-spring mvc原理-codes 博客分类: spring spring
程序员文章站
2024-02-12 20:37:58
...
本篇章从核心类角度解读springmvc的原理
web.xml(一级):
DispatcherServlet
extends FrameworkServlet
extends HttpServletBean
extends HttpServlet
spring-mvc.xml(二级):
DispatcherServlet.properties
HandlerMapping
HandlerExecutionChain
HandlerAdapter
ViewResolver
HandlerExceptionResolver
注解(二级):
RequestMappingHandlerMapping
RequestMappingHandlerAdapter
HandlerMethodArgumentResolver RequestResponseBodyMethodProcessor HttpMessageConverter
HandlerMethodReturnValueHandler RequestResponseBodyMethodProcessor HttpMessageConverter
https://www.cnblogs.com/fangjian0423/p/springMVC-xml-json-convert.html
https://my.oschina.net/u/2377110/blog/1552979
参考:
http://www.cnblogs.com/doudouxiaoye/p/5793657.html
web.xml(一级):
DispatcherServlet
extends FrameworkServlet
extends HttpServletBean
extends HttpServlet
<servlet> <servlet-name>SpringMVC</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:spring-mvc.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>SpringMVC</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
Map<String, HandlerMapping> matchingBeans = BeanFactoryUtils.beansOfTypeIncludingAncestors(context, HandlerMapping.class, true, false);
spring-mvc.xml(二级):
DispatcherServlet.properties
HandlerMapping
HandlerExecutionChain
HandlerAdapter
ViewResolver
HandlerExceptionResolver
注解(二级):
RequestMappingHandlerMapping
RequestMappingHandlerAdapter
HandlerMethodArgumentResolver RequestResponseBodyMethodProcessor HttpMessageConverter
HandlerMethodReturnValueHandler RequestResponseBodyMethodProcessor HttpMessageConverter
https://www.cnblogs.com/fangjian0423/p/springMVC-xml-json-convert.html
https://my.oschina.net/u/2377110/blog/1552979
参考:
http://www.cnblogs.com/doudouxiaoye/p/5793657.html
下一篇: email.class.php问题
推荐阅读
-
spring源码学习系列3-springmvc原理 博客分类: springtomcat springservletweb
-
spring源码学习系列3-springmvc原理 博客分类: springtomcat springservletweb
-
spring源码学习系列3.2.3-异常页面拦截机制 博客分类: springtomcat springtomcat
-
spring源码学习系列4.2-spring aop原理-codes 博客分类: spring springaop设计模式
-
spring源码学习系列3.4-spring mvc原理-codes 博客分类: spring spring
-
spring mvc 原理及应用 博客分类: Java
-
spring源码学习系列4-3种常用的自动代理创建器 博客分类: spring spring
-
spring源码学习系列3.2.3-异常页面拦截机制 博客分类: springtomcat springtomcat
-
spring源码学习系列4.1-spring实现对ibatis的事务管理 博客分类: spring spring
-
spring mvc 原理及应用 博客分类: Java