MVC architecture mode

xiaoxiao2021-03-06  58

Java-based web application systems use MVC architectural mode, named, View, Control separation design. This is the mainstream design direction of the Web application service system.

Model: Module that handles transaction logic, each processing a module. View: The view is responsible for page display, which is responsible for displaying the MODEL processing result to the user, mainly implementing data to the page conversion process. Control: Control is responsible for distributing Dispatch for each request request, passes the FORM data to the Model process, passes the data of the processing result to the View display. This system develops the MVC base library for both MyUtils Framework, similar Structs, but simplifies StruCTS complicated configuration, integrating the operation of the database, making it easier to develop and maintain database applications. And the system supports internationalization, but also supports multi-language display simultaneously, just deliver different parameters to any URL. All information and database query statements in this system are set in the configuration file, and the modification is very convenient. The architecture diagram of the system is as follows: This system uses multiple mature design patterns, and all base classes are Abstract classes, ensuring that the implementation class must be inherited from the base class and cannot be created directly. The contacts of the system and the outside are called through the specified interface, and each bean and control, the VIEW passes the processing result via the FORM data class, which makes the system low coupling degree, and the expansion is extremely convenient and ensured that the structure is clear. The class diagram of the system is as follows:

转载请注明原文地址:https://www.9cbs.com/read-109159.html

New Post(0)