Basic concepts of SSH framework (what is ssh framework?)

Introduction to SSH framework :
       SSH is an integrated framework of struts+spring+hibernate, and it is a popular open source framework for web applications. 〖Recommended to read against the picture〗
       1. The system integrating the SSH framework is divided into four layers in terms of responsibilities: presentation layer, business logic layer, data persistence layer and domain module layer to help developers build a clear and reusable structure in a short period of time A web application with good performance and easy maintenance. Among them, Struts is used as the overall infrastructure of the system, which is responsible for the separation of MVC. In the model part of the Struts framework, it controls the business jump, uses the Hibernate framework to provide support for the persistence layer, and Spring manages struts and hibernate. The specific method is: using the object-oriented analysis method to propose some models according to the requirements, implement these models as basic Java objects, then write the basic DAO (Data Access Objects) interface, and give the DAO implementation of Hibernate, which is implemented using the Hibernate architecture. The DAO class implements the conversion and access between Java classes and the database, and finally managed by Spring, managing struts and hibernate.
        2. The basic business process of the system is: In the presentation layer, the interactive interface is first realized through the JSP page, which is responsible for receiving the request (Request) and transmitting the response (Response), and then Struts receives the ActionServlet according to the configuration file (struts-config.xml). The received Request is delegated to the corresponding Action for processing. In the business layer, the Spring IoC container that manages the service components is responsible for providing the business model (Model) component and the component's collaborative object data processing (DAO) component to the Action to complete the business logic, and provides container components such as transaction processing and buffer pools to improve the system performance and ensure data integrity. In the persistence layer, it relies on Hibernate's object mapping and database interaction to process the data requested by the DAO component and return the processing results.
        Using the above development model not only realizes the complete separation of the view, the controller and the model, but also realizes the separation of the business logic layer and the persistence layer. In this way, no matter how the front end changes, the model layer only needs few changes, and changes in the database will not affect the front end, which greatly improves the reusability of the system. Moreover, due to the small coupling between different layers, it is conducive to the parallel work of team members, which greatly improves the development efficiency.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326446913&siteId=291194637