DAO Service Action What is the function of each

Source: Internet
Author: User
First, this is now the most basic layering method, combining the SSH architecture. The Modle layer is the entity class for the corresponding database table. The DAO layer uses Hibernate to connect to the database, to manipulate the database (add and revise). Service layer: Reference to the corresponding DAO database operation, where you can write your own code (such as simple judgment). Action layer: reference to the corresponding service layer, where the combination of struts configuration file, jump to the specified page, of course, can accept the page to pass the request data, can also do some calculation processing. All of the above hibernate,struts need to be injected into spring's configuration file, and spring links these together to become a whole.

DAO additions and deletions, service for simple judgment (try,except, etc.), action filter

The insert for DAO corresponds to the service's new

DAO Service Action What is the function of each

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.