"Spring+springmvc+mybatis" 1.1 System architecture-mvc

Source: Internet
Author: User

    • MVC, model models, view views, and controller controllers

View: Views that provide users with a user interface to interact directly with the user

Model: Models, modules that host data, and calculate user-submitted requests

It is divided into two categories, called data bearer Bean

A class of called Business processing beans

The data bearer Bean refers to the entity class, which specialized user carries the business data, such as Student, user

A business processing Bean is a service or Dao object that is designed to handle user-submitted requests.

Controller: To forward the user request to the appropriate model for processing, to provide the corresponding response to the user according to the model calculation results

    • Workflow for MVC Architecture programs

      1. The user makes a request to the server through the View page, which can be form request, hyperlink request, AJAX request, etc.
      2. The service-side controllers controller receives the request to parse the request and finds the appropriate Model to process the user request
      After 3.Model processing, the processing results are handed over to the Controller
      4.Controller receives processing results, finds the response View page to be sent back to the client based on the processing results. The page is rendered (data populated) and then sent to the client


    • 650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/89/81/wKiom1gVrDTgkKigAADrBMIJe3o670.png "title=" 2.png " alt= "Wkiom1gvrdtgkkigaadrbmije3o670.png" height= "315" width= "681"/>

"Spring+springmvc+mybatis" 1.1 system architecture-mvc

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.