美文网首页
springmvc关键的类

springmvc关键的类

作者: 浪白条 | 来源:发表于2019-04-30 11:23 被阅读0次


1.dispatcherservlet

主要请求的分发响应作用

2.HandlerMapping

更具请求路径找到handler,handler实际是业务controller#方法

主要的方法:getHandler()

3.HandlerAdapter

调用handler得到modelAndView,既是拿到数据和viewname

主要方法:support() ; handle()

4.ViewResolver

更具viewName找到html等静态文件,将数据model替换静态文件中的变量,既渲染,最终输出html到页面

相关文章

网友评论

      本文标题:springmvc关键的类

      本文链接:https://www.haomeiwen.com/subject/bhpmnqtx.html