Struts 2 + Hibernate + Spring Integration essentials

Source: Internet
Author: User

The functionality of Struts 2 and Spring is coincident, so it is necessary to illustrate which technologies in the two frameworks are used in the integration.

Struts 2 uses function points:

1, interceptors. One is to intercept non-logged-in users ' purchases, and one is to intercept the file upload format. The former interceptor files need to be written manually, which can be directly encapsulated with the Struts 2 framework of the Interceptor.

2, data check, rewrite Validate () method. Verify the user registration information.

3, the core controller filterdispatcher, restrict only the administrator to access the background.

Spring uses feature points:

1. Configure bean element, inject bean attribute, load bean.

2. Gethibernatetemplate () is the method that Spring provides when it encapsulates Hibernate.

Resources:

1. Bazoming Wei Wang Li, etc. Struts 2+hibernate+spring integrated Development Technology detailed. 19th Chapter

Struts 2 + Hibernate + Spring Integration essentials

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.