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