Method and device for building pluggable system

Building a pluggable system through Maven mode solves the difficulties in upgrading and maintenance caused by the solid architecture in the development and maintenance of information systems, achieves efficient development and maintenance of the system, and reduces operation and maintenance costs.

CN118567683APending Publication Date: 2024-08-30INSPUR SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410719131.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

During the development and maintenance process of existing information systems, the fixed system architecture makes upgrades and maintenance difficult, increasing costs and limiting system performance.

Method used

Use Maven mode to build a pluggable system. By creating parent modules, base class projects, war type front-end display projects and business module projects, combined with full and incremental update modes, system modules can be replaced and maintained.

Benefits of technology

It improves system development efficiency, code reuse rate and maintenance cost savings, and simplifies the system upgrade and maintenance process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567683A
    Figure CN118567683A
Patent Text Reader

Abstract

The invention relates to the field of construction methods and devices of pluggable systems, and particularly provides a construction method and device of a pluggable system, and the construction method and device of the pluggable system have the following steps: S1, constructing a parent module project based on a Maven model, and S2, constructing a base class project based on the parent class provided in the step S1 and the Maven model; s3, a front-end display project of a war type is set up in a Maven model mode; s4, other corresponding service module projects are set up in a Maven model mode; and S5, adding all the engineering modules in the above steps into the pom dependency of the engineering created in the step S3, and finally packaging into a war packet which can be analyzed by a container. Compared with the prior art, only the module jar package needs to be replaced, and the operation and maintenance cost is greatly saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software design, and specifically provides a method and device for building a pluggable system. Background Art

[0002] In recent years, with the rapid development of information technology, various information systems have brought more convenience and help to people in their lives and work. However, different information systems often use a fixed system building architecture at the beginning of system development, regardless of whether the system complexity is matched and whether the system development convenience is appropriate, making system upgrades and maintenance very difficult. This not only increases the system development and maintenance costs, but also limits the system's operating performance. Summary of the invention

[0003] The present invention aims at solving the above-mentioned deficiencies of the prior art and provides a method for building a pluggable system with strong practicality.

[0004] A further technical task of the present invention is to provide a pluggable system construction device that is reasonably designed, safe and applicable.

[0005] The technical solution adopted by the present invention to solve its technical problem is:

[0006] A method for building a pluggable system comprises the following steps:

[0007] S1. Build a parent module project based on the Maven model mode.

[0008] S2. Build a base class project based on the parent class and Maven model mode provided in step S1;

[0009] S3, Maven model mode to build a war type front-end display project;

[0010] S4, Maven model mode to build other corresponding business module projects;

[0011] S5. Add all the project modules in the above steps to the pom dependency of the project created in step S3, and finally package them into a war package that can be parsed by the container.

[0012] Furthermore, in step S1, when creating the parent module project, a Maven project is created as the parent project using a tool, and the project details are as follows:

[0013] pom.xml: The pom file defines the parent project name, version, description, jdk version, and related dependency information.

[0014] Furthermore, in step S2, when the base class project is created, a Maven project is created as the base class project using a tool. The details are as follows:

[0015] S2-1, pom.xml: The pom file defines the base class project name, version, description and related dependencies;

[0016] S2-2. Project structure: The project directory is named according to the MVC structure. The package naming rules are as follows:

[0017] Rule 1: xx.**.controller, xx.**.entity, xx.**.dao, xx.**.service, xx.**.service.impl;

[0018] Rule 2: xx.**.controller, xx.**.bean, xx.**.dao, xx.**.service, xx.**.service.impl;

[0019] Rule 3: xx.**.controller, xx.**.bean, xx.**.mapper, xx.**.service, xx.**.service.impl;

[0020] Rule 4: xx.**.controller, xx.**.entity, xx.**.mapper, xx.**.service, xx.**.service.impl.

[0021] Furthermore, in step S3, when a war project is created, a Maven project is created as a war project using a tool. The project details are as follows:

[0022] S3-1, pom.xml: The pom file defines the name, version, description and related information of the war project; it must include the dependencies of the war project;

[0023] S3-2. Directory structure: WEB-INF\view stores presentation layer jsp files, WEB-INF\static stores css and js static files, and WEB-INF\lib stores static jar packages.

[0024] Furthermore, in step S4, when the business module project is created, a tool is used to create a Maven project as the business module project.

[0025] Furthermore, the operation and maintenance model is as follows:

[0026] (1) Full update mode, that is, use the tool to package the war project using Maven's install command, use the operation and maintenance tool to replace the original war package with the packaged war package, and restart the middleware;

[0027] (2) Incremental update mode; that is, use the tool to package the business module class project using Maven's install command, use the operation and maintenance tool to replace the packaged jar package with the jar package of the same name in the original unzipped war type folder, and restart the middleware.

[0028] Furthermore, in step (1), it further comprises:

[0029] (1-1) Delete the war project, and delete the folder and war package of the war project after decompressing it on the server;

[0030] (1-2) To package the war project, first use the tool to clean the war package using Maven's clean command, and then use Maven's install command to package it;

[0031] (1-3) Transfer the war project. Use the tool to transfer the war package in step (1-2) to the original path of the server;

[0032] (1-4) Restart, restart the middleware.

[0033] Furthermore, in step (2), it further comprises:

[0034] (2-1) Delete the business jar package: Delete the jar package that needs to be replaced in the folder of the war package after decompressing the war project on the server;

[0035] (2-2) Packaging jar package: First, use the tool to use Maven's clean command to clean the war package of the business project, and then use Maven's install command to package it;

[0036] (2-3) Transfer jar package: Use the tool to transfer the jar package in step (2-2) to the original path of the server;

[0037] (2-4) Restart: Restart the middleware.

[0038] A pluggable system construction device, comprising: at least one memory and at least one processor;

[0039] The at least one memory is used to store a machine-readable program;

[0040] The at least one processor is used to call the machine-readable program to execute a method for building a pluggable system.

[0041] Compared with the prior art, the pluggable system construction method and device of the present invention have the following outstanding beneficial effects:

[0042] The present invention greatly improves the system's R&D efficiency, code reuse rate, and the accumulation of subsequent technology stacks. In subsequent system maintenance and upgrades, only the module jar package needs to be replaced, which greatly saves operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Attached Figure 1 It is a flow chart of a method for building a pluggable system;

[0045] Attached Figure 2 The present invention is a pluggable schematic diagram in a method for building a pluggable system. DETAILED DESCRIPTION

[0046] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] A best embodiment is given below:

[0048] like Figure 1-2 As shown, a method for building a pluggable system in this embodiment has the following steps:

[0049] S1. Build a parent module project based on the Maven model mode;

[0050] This project mainly provides the common dependencies required for system development, reduces the repetitive operations of adding the same dependencies in each sub-module, and can also control the version numbers of the required dependencies from the source, and increase the speed of dependency upgrades.

[0051] To create a parent module project, use the tool to create a Maven project as the parent project. The project details are as follows:

[0052] pom.xml: The pom file defines the parent project name, version, description, jdk version, dependencies, and other related information.

[0053] S2. Build a base class project based on the parent class and Maven model mode provided in step S1;

[0054] This project mainly provides the system with various standardized public class libraries, tool class libraries and other commonly used long-term basic class libraries as the base class libraries that must be introduced by the system.

[0055] To create a base module project, use the tool to create a Maven project as the base project. The project details are as follows:

[0056] S2-1. pom.xml: The pom file defines the base class project name, version, description, dependencies and other related information.

[0057] S2-2. Project structure: The project directory is named according to the MVC structure, and its package naming rules are as follows:

[0058] Rule 1: xx.**.controller, xx.**.entity, xx.**.dao, xx.**.service, xx.**.service.impl;

[0059] Rule 2: xx.**.controller, xx.**.bean, xx.**.dao, xx.**.service, xx.**.service.impl;

[0060] Rule 3: xx.**.controller, xx.**.bean, xx.**.mapper, xx.**.service, xx.**.service.impl;

[0061] Rule 4: xx.**.controller, xx.**.entity, xx.**.mapper, xx.**.service, xx.**.service.impl.

[0062] S3. Based on the parent class and Maven model pattern provided in step S1, a war-type front-end display project is built. This project mainly provides a storage project for various front-end pages for the system presentation layer.

[0063] Creation of war project. Use the tool to create a Maven project as a war project. The project details are as follows:

[0064] S3-1, pom.xml: The pom file defines the name, version, description, dependencies and other related information of the war project; it must include the dependencies of the war project.

[0065] S3-2. Directory structure: WEB-INF\view stores presentation layer jsp files, WEB-INF\static stores css, js static files, and WEB-INF\lib stores static jar packages

[0066] S4. Use the Maven model mode to build other corresponding business module projects. This project mainly provides storage projects for various front-end pages for the system presentation layer.

[0067] When creating a business module project, use the tool to create a Maven project as the business module project. Its project details are the same as those of the base class project.

[0068] S5. Add all the project modules in the above steps to the pom dependency of the project created in step S3, and finally package them into a war package that can be parsed by the container.

[0069] Its operation and maintenance modes include:

[0070] (1) Full update mode;

[0071] The full update mode is to use the tool to package the above war project using Maven's install command, use the operation and maintenance tool to replace the original war package with the packaged war package, and restart the middleware.

[0072] The steps are as follows:

[0073] (1-1) Delete the war project: Delete the folder and war package of the war project after decompressing it on the server.

[0074] (1-2) Packaging war project: First, use the tool to clean the war package of the war project using Maven's clean command, and then use Maven's install command to package it.

[0075] (1-3) Transfer war project: Use the tool to transfer the war package in step (1-2) to the original path of the server.

[0076] (1-4) Restart: Restart the middleware.

[0077] (2) Incremental update mode;

[0078] Incremental update mode is to use the tool to package the business module class project using Maven's install command, use the operation and maintenance tool to replace the packaged jar package with the same jar package in the original unzipped war type folder, and restart the middleware. The steps are as follows:

[0079] (2-1) Delete the business jar package: Delete the jar package that needs to be replaced in the folder of the war package after decompressing the war project on the server.

[0080] (2-2) Packaging jar package: First, use the tool to clean the war package of the business project using Maven's clean command, and then use Maven's install command to package it.

[0081] (2-3) Transfer jar package: Use the tool to transfer the jar package in step (2-2) to the original path of the server.

[0082] (2-4) Restart: Restart the middleware.

[0083] Based on the above method, a pluggable system construction device in this embodiment includes: at least one memory and at least one processor;

[0084] The at least one memory is used to store a machine-readable program;

[0085] The at least one processor is used to call the machine-readable program to execute a method for building a pluggable system.

[0086] The above-mentioned specific implementations are only specific cases of the present invention. The patent protection scope of the present invention includes but is not limited to the above-mentioned specific implementations. Any technical solutions that comply with the claims of the present invention and any appropriate changes or substitutions made by ordinary technicians in the relevant technical field shall fall within the patent protection scope of the present invention.

[0087] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for building a pluggable system, characterized in that: The steps are as follows: S1. Build a parent module project based on the Maven model mode. S2. Build a base class project based on the parent class and Maven model mode provided in step S1; S3, Maven model mode to build a war type front-end display project; S4, Maven model mode to build other corresponding business module projects; S5. Add all the project modules in the above steps to the pom dependency of the project created in step S3, and finally package them into a war package that can be parsed by the container.

2. A method for building a pluggable system according to claim 1, characterized in that: In step S1, when creating the parent module project, use the tool to create a Maven project as the parent project. The project details are as follows: pom.xml: The pom file defines the parent project name, version, description, jdk version, and related dependency information.

3. A method for building a pluggable system according to claim 2, characterized in that: In step S2, when the base class project is created, a Maven project is created as the base class project using a tool. The details are as follows: S2-1, pom.xml: The pom file defines the base class project name, version, description and related dependencies; S2-2. Project structure: The project directory is named according to the MVC structure. The package naming rules are as follows: Rule 1: xx.**.controller, xx.**.entity, xx.**.dao, xx.**.service, xx.**.service.impl; Rule 2: xx.**.controller, xx.**.bean, xx.**.dao, xx.**.service, xx.**.service.impl; Rule 3: xx.**.controller, xx.**.bean, xx.**.mapper, xx.**.service, xx.**.service.impl; Rule 4: xx.**.controller, xx.**.entity, xx.**.mapper, xx.**.service, xx.**.service.impl.

4. A method for building a pluggable system according to claim 3, characterized in that: In step S3, when creating a war project, use the tool to create a Maven project as a war project. The project details are as follows: S3-1, pom.xml: The pom file defines the name, version, description and related information of the war project; it must include the dependencies of the war project; S3-2. Directory structure: WEB-INF\view stores presentation layer jsp files, WEB-INF\static stores css and js static files, and WEB-INF\lib stores static jar packages.

5. A method for constructing a pluggable system according to claim 4, characterized in that: In step S4, when the business module project is created, a Maven project is created as the business module project using a tool.

6. A method for constructing a pluggable system according to claim 5, characterized in that: The operation and maintenance mode is as follows: (1) Full update mode, that is, use the tool to package the war project using Maven's install command, use the operation and maintenance tool to replace the original war package with the packaged war package, and restart the middleware; (2) Incremental update mode; that is, use the tool to package the business module class project using Maven's install command, use the operation and maintenance tool to replace the packaged jar package with the jar package of the same name in the original unzipped war type folder, and restart the middleware.

7. A method for constructing a pluggable system according to claim 6, characterized in that: In step (1), further comprising: (1-1) Delete the war project, and delete the folder and war package of the war project after decompressing it on the server; (1-2) To package the war project, first use the tool to clean the war package using Maven's clean command, and then use Maven's install command to package it; (1-3) Transfer the war project. Use the tool to transfer the war package in step (1-2) to the original path of the server; (1-4) Restart, restart the middleware.

8. A method for constructing a pluggable system according to claim 7, characterized in that: In step (2), further comprising: (2-1) Delete the business jar package: Delete the jar package that needs to be replaced in the folder of the war package after decompressing the war project on the server; (2-2) Packaging jar package: First, use the tool to use Maven's clean command to clean the war package of the business project, and then use Maven's install command to package it; (2-3) Transfer jar package: Use the tool to transfer the jar package in step (2-2) to the original path of the server; (2-4) Restart: Restart the middleware.

9. A pluggable system construction device, characterized in that: include: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is configured to call the machine-readable program to execute the method according to any one of claims 1 to 8.