Java MVC Summary (for your own use)

Source: Internet
Author: User

1) The top layer is the "view layer" that directly targets end users ). It is the operation interface provided to the user and the shell of the program.

2) the bottom layer is the core "data layer" (model), that is, the data or information that the program needs to operate on.

3) The intermediate layer is the "control layer" (Controller). It selects data in the "data layer" based on the instructions you input from the "view layer, then perform corresponding operations to generate the final result.

 

 

 

Web: data assembly, call service

 

Service: business layer: only perform business operations, and then call Dao (the best Interface) (inheriting the business base class)

 

Interface: add, delete, modify, and query list

 

Dosave ();

Dodelete ();

Doupdate ();

Dosearch ();

Dolist ()

 

Dao: only perform data operations (preferably through interfaces)

 

 

 

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.