recommend a series of blog to learn spring, this article is also read one of the blog wrote.
poke here .
The Spring Web MVC Framework is a request-driven web framework and is also designed using a front-end controller pattern, distributed to the appropriate page controller (action/processor) for processing according to the request mapping rules.
Spring WEB MVC processes The process of a request:
The following steps are implemented:
1, the first user to send the request ———— > front-end controller, the front-end controller based on the request information (such as URL) to decide which page controller to process and entrust the request to it, that is, the control of the previous controller logic part of the diagram of the 1, 2 steps;
2, the page controller receives the request, carries on the function processing, first needs to collect and bind the request parameter to an object, this object is called the Command object in the Spring Web MVC, validates, and then delegates the command object to the business object for processing ; After processing, return a modelandview (model data and logical view name); 3, 4, 5 steps in the figure;
3, the front-end controller to reclaim control, and then according to the return of the logical view name, select the appropriate view for rendering, and the model data passed to the view rendering; steps 6, 7 in the figure;
4, the front-end controller to regain control again, return the response to the user, the figure of Step 8, the end of the whole.