DispatchServlet是整个spring mvc的核心。
spring mvc涉及到的所有组件都在它的管理之下。
要了解DispatchServlet是如何调度spring mvc的三层的。
applicationcontext就是一个spring容器
controlllers来调用services(业务层)以及repositories(数据访问层),
由handlermapping(映射)一个与controlllers相匹配的路径,其实就是管理注解?
上图中的前端控制器就是 前文的dispatchServlet,dispatchServlet根据注解以及映射的注解、方法名的路径 以找到controlller,然后controlller吧数据分装在model里,dispatchServlet得到model调用视图模板view template,返回html
dispatchServlet根据前文的注解,