JavaWeb study notes (XIX) SpringMVC framework

First, what is SpringMVC

SpringMVC is part of the Spring Framework, and it Struts2 framework, all belong to the performance of frameworks. In front controllerDispatcherServletAs the core, based on a plurality of component parsers, complete control of the request and the response.

Two, SpringMVC execution flow

Here Insert Picture Description

  1. First, a user request reaches the front end controller, which task is to use the respective frame parser is completed the user's request. In general there may be an application controller (Controller) a plurality of processing requests. Distal parser needs to know how to map the corresponding request to the corresponding controller. FIG therefore the second step in the first visit mapper process, the mapper returns the processing chain of one processor, comprising a processor and a series of interceptor chains.
  2. Upon return handler chain, and then perform the fourth step, the portion of the processing performed by the adapter. Controller performs the corresponding method, and return Model View, is to return the contents data in response to the client.
  3. View data adapter returns the process needs to be generated corresponding to the logical name of the view, and the view through the specific page address resolver.
  4. Finally View view, Model rendering data on the page, the page response to the user.
Published 66 original articles · won praise 26 · views 10000 +

Guess you like

Origin blog.csdn.net/Time__Lc/article/details/93495379