V. Introduction to the SPRINGMVC of beginners Springmvc+mybatis

Source: Internet
Author: User

1. Introduction to the MVC pattern

MVC is a design pattern or a programming idea, and it cannot be said that MVC is a framework.

M-model Model

The role of model is to be responsible for business logic. Consists of two tiers: business data and business processing logic. For example, the entity class, dao,service all belong to the model layer.

V-view View

The view's responsibility is to display the interface and user interaction.

C-controller Controller

A controller is a bridge between the model layer m and the view layer to control the process of invocation.


2. What is SPRINGMVC

SPRINGMVC is a representation of the spring framework after implementing the MVC function module.

The Spring framework provides a full-featured MVC module for building Web applications. When using spring for web development, you can choose to use the Spring SPRINGMVC framework or integrate with other MVC development frameworks.


3. Core components of SPRINGMVC

Dispatcherservlet (Controller, requested entrance)

Handlermapping (Controller, requested)

Controller (Director, request processing process)

Modelandview (model, encapsulating Business processing results and views)

Viewresolver (view, view display processor)

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.