Online development method, device, equipment and storage medium based on microservice system

In the online development of the microservice system, preset microservice programs and container deployment configuration templates are used to generate and modify codes according to form configuration parameters, and directly run microservice codes, solving the problem of inefficiency in the traditional development process and achieving an efficient and automated development process.

CN113946323BActive Publication Date: 2025-03-18G CLOUD TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111080055.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-15
Publication Date
2025-03-18
Estimated Expiration
2041-09-15

AI Technical Summary

Technical Problem

The traditional software development process is inefficient, especially in the online development of microservice systems, which requires manual copying and writing of code, resulting in cumbersome, error-prone and high development costs.

Method used

By saving the preset microservice program and container deployment configuration templates, matching them according to the received form configuration parameters, generating corresponding microservice codes, and modifying container configurations and scripts to directly run the microservice code.

Benefits of technology

It improves the efficiency of online development, avoids manual copying of code, saves development time, reduces development costs, and optimizes user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113946323B_ABST
    Figure CN113946323B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an online development method, device, equipment and storage medium based on a microservice system. The technical solution provided by the embodiment of the present application saves the preset microservice program and the configuration template of the container deployment; matches the microservice program and the container deployment configuration template according to the form configuration parameters carried in the received instruction, generates the corresponding microservice code based on the matched template and the form configuration parameters; modifies the container configuration and script according to the form configuration parameters and the microservice code; and runs the microservice code. The technical solution provided by the embodiment of the present application can improve the online development efficiency of the microservice system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an online development method, apparatus, device and storage medium based on a microservice system. Background Art

[0002] The traditional software development process generally involves designing a database model first, building a project framework, and then gradually completing software functions in combination with specific business needs. After the project framework is built, business logic at all levels is implemented based on the framework in combination with business needs, including front-end, back-end, and front-end and back-end functional joint debugging. If there are changes, the entire process needs to be started over again, which is cumbersome and difficult to improve efficiency.

[0003] Due to the many shortcomings of traditional software development, more and more online development platforms have emerged. Especially for the development of enterprise information management systems such as cloud ERP, basically most functions can be configured online to generate front-end and back-end codes by configuring data models and selecting interface styles. After the code is generated, it is generally necessary to manually create a sub-project by copying or rely on a parent project to complete the construction of the project basic framework, and then compile, deploy and verify.

[0004] Each time after developing business code online, you need to manually create a sub-project, copy the generated business code to the sub-project, write container deployment configuration and scripts, and then perform a series of repetitive operations such as compilation, packaging, deployment and startup. This wastes a lot of time, is inefficient, prone to errors, and has high development costs. In addition, different development habits and naming habits easily lead to poor code readability, which is not conducive to code maintenance. Summary of the invention

[0005] The embodiments of the present application provide an online development method, apparatus, device and storage medium based on a microservice system, which can solve the problem of low online development efficiency of the microservice system and improve the online development efficiency of the microservice system.

[0006] In a first aspect, an embodiment of the present application provides an online development method based on a microservice system, comprising:

[0007] Save the preset configuration templates for microservice programs and container deployment;

[0008] According to the form configuration parameters carried in the received instruction, the microservice program and the container deployment configuration template are matched, and the corresponding microservice code is generated based on the matched template and the form configuration parameters;

[0009] Modify the container configuration and script according to the form configuration parameters and the microservice code;

[0010] Run the microservice code.

[0011] Furthermore, the configuration template for saving the preset microservice program and container deployment is specifically:

[0012] Preset Maven program, main program entry class file, configuration file and build file;

[0013] Save the Maven program, main program entry class file, configuration file, and build file to form the configuration template of the microservice program.

[0014] Furthermore, the configuration template for saving the preset microservice program and container deployment is specifically:

[0015] Save the preconfigured docker-compose service template, which includes the configuration of the container name, dependent container component category, host port, container port mapping, and environment parameters.

[0016] Furthermore, the microservice program and the container deployment configuration template are matched according to the form configuration parameters carried in the received instruction, specifically:

[0017] According to the instruction sent by the client, the newly added form configuration parameters carried in the instruction received from the client are matched with the configuration template of the corresponding preset microservice program and its container deployment;

[0018] Select a configuration template for the microservice program and its container deployment that matches the newly added form configuration parameters.

[0019] Furthermore, the corresponding microservice code is generated based on the form configuration parameters according to the matched template, specifically:

[0020] Generate business code based on the selected microservice program and its container deployment configuration template;

[0021] Generate corresponding target code according to the microservice program configuration template, form configuration parameters and business code.

[0022] Furthermore, the container configuration and script are modified according to the form configuration parameters and the microservice code, specifically:

[0023] Modify the container's docker-compose.yml configuration file and install.sh script according to the newly added form configuration parameters received from the client and the configuration template of the selected microservice program;

[0024] Start the code according to the modified docker-compose.yml configuration file and install.sh script.

[0025] Furthermore, the running of the microservice code is specifically as follows:

[0026] Compile the microservice code, and after successful compilation, start the compiled microservice code through docker-compose.

[0027] In a second aspect, an embodiment of the present application provides an online development device based on a microservice system, including:

[0028] Template pre-storage module, used to save preset microservice programs and container deployment configuration templates;

[0029] A code generation module is used to match the microservice program and the container deployment configuration template according to the form configuration parameters carried in the received instruction, and generate corresponding microservice code based on the matched template and the form configuration parameters;

[0030] A container modification module, used to modify container configuration and scripts according to the form configuration parameters and the microservice code;

[0031] The code running module is used to run the microservice code.

[0032] Furthermore, the template pre-storage module is also used to preset Maven programs, main program entry class files, configuration files and build files; save Maven programs, main program entry class files, configuration files and build files to form a configuration template for the microservice program.

[0033] Furthermore, the template pre-storage module is also used to save a pre-configured docker-compose service template, wherein the docker-compose service template includes the configuration of the container name, dependent container component category, host port, container port mapping and environment parameters.

[0034] Furthermore, the code generation module is also used to receive the newly added form configuration parameters carried in the instruction from the client according to the instruction sent by the client, and match the newly added form configuration parameters with the configuration template of the corresponding preset microservice program and its container deployment;

[0035] Select a configuration template for the microservice program and its container deployment that matches the newly added form configuration parameters.

[0036] Furthermore, the code generation module is also used to generate business code according to the configuration template of the selected microservice program and its container deployment;

[0037] Generate corresponding target code according to the microservice program configuration template, form configuration parameters and business code.

[0038] Furthermore, the container modification module is further used to modify the docker-compose.yml configuration file and install.sh script of the container according to the newly added form configuration parameters received from the client and the configuration template of the selected microservice program;

[0039] Start the code according to the modified docker-compose.yml configuration file and install.sh script.

[0040] Furthermore, the code running module is also used to compile the microservice code, and after successful compilation, the compiled microservice code is started through docker-compose.

[0041] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0042] memory and one or more processors;

[0043] The memory is used to store one or more programs;

[0044] When the one or more programs are executed by the one or more processors, the one or more processors implement the online development method based on the microservice system as described in the first aspect.

[0045] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the online development method based on a microservice system as described in the first aspect.

[0046] The embodiment of the present application saves the preset configuration template of the microservice program and container deployment, matches the microservice program and the container deployment configuration template according to the form configuration parameters carried in the received instruction, generates the corresponding microservice code according to the matching result, modifies the corresponding container configuration and script, and starts running the server code. By adopting the above technical means, the corresponding microservice code can be directly matched and generated within the system and started, avoiding the operation of manually copying the code, thereby improving work efficiency and saving development time; in addition, after directly matching and generating the code within the system, the corresponding container configuration and script modification are made, so that the server code can be directly started, and the new business module service function is realized, thereby optimizing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a flowchart of an online development method based on a microservice system provided in Example 1 of the present application;

[0048] Figure 2This is a structural diagram of an online development device based on a microservice system provided in Example 2 of the present application;

[0049] Figure 3 It is a structural schematic diagram of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0051] The online development method, device, equipment and storage medium based on the microservice system provided by the present application are intended to avoid the manual copying of codes by directly matching and generating corresponding microservice codes within the system and starting them during online development, thereby improving work efficiency and saving development time; in addition, after directly matching and generating codes within the system, the corresponding container configuration and script modification are made, so that the server code can be directly started to realize the new business module service function, thereby optimizing the user experience. Compared with the traditional online development method, after the code is usually generated, it is generally necessary to manually create a sub-project by copying or rely on a parent project to complete the construction of the basic framework of the project, and then compile and deploy verification. Manual copying and compiling deployment verification are cumbersome, and manual participation is also prone to errors, resulting in low work efficiency. Based on this, an online development method based on the microservice system of an embodiment of the present application is provided. To solve the problem of low work efficiency in the existing online development process.

[0052] Embodiment 1:

[0053] Figure 1A flowchart of an online development method based on a microservice system provided in the first embodiment of the present application is given. The online development method based on a microservice system provided in this embodiment can be executed by an online development device based on a microservice system. The online development device based on a microservice system can be implemented by software and / or hardware. The online development device based on a microservice system can be composed of two or more physical entities, or can be composed of one physical entity. Generally speaking, the online development device based on a microservice system can be an intelligent terminal, such as a computer.

[0054] The following description takes a computer as the main body of the online development method based on the microservice system as an example. Figure 1 , the online development method based on the microservice system specifically includes:

[0055] S101. Save the preset microservice program and container deployment configuration template.

[0056] Specifically, preset Maven program, main program entry class file, configuration file and build file; save Maven program, main program entry class file, configuration file and build file to form a configuration template of the microservice program.

[0057] Save the preconfigured docker-compose service template, which includes the configuration of the container name, dependent container component category, host port, container port mapping, and environment parameters.

[0058] Exemplarily, the steps of presetting the configuration template for microservice program and container deployment are: presetting a certain type of service template, such as web_db_nacos, the service template includes a microservice program part and its container deployment part; the microservice program, such as a maven program, contains the main program entry class file, configuration file and build file; the container part is a docker-compose service configuration template, such as the container name, which container components it depends on, the mapping of host port and container port, environmental parameters, etc.

[0059] In one embodiment, the specific steps of the preset microservice program and container deployment configuration template are as follows: preset the web_db_nacos microservice template, the web_db_nacos microservice template includes a microservice program part and its container deployment part. The microservice program part takes the maven program as an example, and the maven program includes the main program entry class file, the application.yml configuration file and the pom.xml build file. Among them, the main program entry class file is annotated on the main program class through @SpringBootApplication, indicating that this class is the main configuration class of SpringBoot, and the corresponding functions are introduced through other relevant annotations, such as allowing the registration center to discover and scan the service through @EnableDiscoveryClient, and start the SpringBoot application in the main method. The application.yml configuration file includes the configuration items required by the web_db_nacos microservice template, that is, the web project template with the default configuration of the database and the default configuration of nacos in the configuration items, generally only the port and application name need to be modified. The pom.xml build file contains template_db_nacos, the dependency packages and build plug-ins required by this type of microservice template, and generally only the project name needs to be modified. The container deployment part is the docker-compose service configuration template, such as the container name, which container components it depends on, the mapping of the host port to the container port, environmental parameters, etc.

[0060] S102: According to the form configuration parameters carried in the received instruction, the microservice program and the container deployment configuration template are matched, and the corresponding microservice code is generated according to the matched template based on the form configuration parameters.

[0061] Specifically, according to the instruction received from the client, the newly added form configuration parameters carried in the instruction received from the client are matched with the configuration template of the corresponding preset microservice program and its container deployment; the configuration template of the microservice program and its container deployment that matches the newly added form configuration parameters is selected. Business code is generated according to the selected configuration template of the microservice program and its container deployment; and the corresponding target code is generated according to the microservice program configuration template, the form configuration parameters and the business code.

[0062] Exemplarily, the instruction sent by the client is an entry for triggering the corresponding function of adding a development business on the client, and the corresponding new form configuration parameters are filled in according to the triggered exit. The new form configuration parameters include the table name of the new business module, the selection of a theme template (such as ERP theme one-to-many), the form style (such as one column, two columns), and the database properties, page properties, foreign keys, etc. of each attribute field. The instruction for adding a development business and the new form configuration parameters sent by the client are received, and the parameter information of the new form configuration parameters is synchronized to the database, and it is verified whether the new form configuration parameter information in the database meets expectations. If so, the subsequent new form configuration parameters are matched with the corresponding configuration template of the preset microservice program and its container deployment. If not, the new form configuration parameters are received again until they meet expectations.

[0063] In one embodiment, in the online development platform of the client, click [Add] through the online form development module, and a new form configuration parameter window for online development will pop up. Enter the table name of the new business module, select the theme template (such as ERP theme one-to-many), form style (such as one column, two columns), and enter the database properties, page properties, foreign keys, etc. of each attribute field, click "OK", and the system will successfully add the form configuration parameters; select the newly added form configuration parameter record, click the operation "Synchronize to Database", and the form will be successfully synchronized to the database; after the database is successfully synchronized, the form configuration parameters can be checked through the [Function Test] function of the form to see if they meet expectations. If not, re-edit the business form configuration parameters until they meet expectations;

[0064] Exemplarily, the newly added form configuration parameters that are verified to be in accordance with expectations are matched with the corresponding preset microservice program and its container deployment configuration template; the configuration template of the microservice program and its container deployment that matches the newly added form configuration parameters is selected. Business code is generated according to the selected microservice program and its container deployment configuration template; corresponding target code is generated according to the microservice program configuration template, form configuration parameters and business code.

[0065] In one embodiment, the corresponding business form configuration parameters are selected on the client, and the corresponding [Generate Service Code] instruction and the form configuration parameter information are sent. According to the instruction sent by the client and the corresponding form configuration parameter information, the corresponding microservice code configuration instruction is generated and sent to the client. The client pops up a service code generation configuration window, and the user needs to fill in the module name, service port, select microservice template, etc. The corresponding module name, service port, select microservice template and other information sent by the receiving client are generated; the business code is generated according to the received selected microservice template; according to the selected microservice template, configuration parameter information and business code, the target code of the corresponding business module microservice is generated.

[0066] In one embodiment, a directory corresponding to the business module is automatically generated under the micro-module of the container deployment project, and a corresponding Dockerfile configuration file is generated under the directory; the Dockerfile describes which software packages are installed in the image, what operations are performed, what is created, etc., and can be used to quickly create a custom image.

[0067] S103: Modify container configuration and script according to the form configuration parameters and the microservice code.

[0068] Specifically, according to the newly added form configuration parameters received from the client and the configuration template of the selected microservice program, the docker-compose.yml configuration file and the install.sh script of the container are modified; and the code is started according to the modified docker-compose.yml configuration file and the install.sh script.

[0069] Exemplarily, according to the module name, service port, and microservice template, modify the docker-compose.yml configuration file and install.sh script under the container deployment project, add the deployment configuration and service startup script of the new module; modify the pom.xml build file of the container deployment project, and copy the jar packaged with the new module project to the directory of the business module corresponding to the container deployment project.

[0070] S104: Run the microservice code.

[0071] Specifically, the microservice code is compiled, and after successful compilation, the compiled microservice code is started through docker-compose.

[0072] Exemplarily, the container deployment and microservice code generated in the deployment step S103 are automatically compiled, and after successful compilation, the newly added microservice code is started through docker-compose.

[0073] In one embodiment, after the automatic compilation and deployment, the menu is configured, the system is re-logged in and the functions of the newly added business module are verified, and the verification after the newly added business is completed is completed.

[0074] The embodiment of the present application solves the problem that developers need to manually create a sub-project, copy the generated code to the sub-project, write container deployment configuration and scripts, and then compile, package, deploy and start a series of tedious operations after each online business code development. It saves a lot of time for developers, improves efficiency and reduces development costs, and also improves the readability of the code.

[0075] As mentioned above, by saving the preset microservice program and container deployment configuration template, the microservice program and container deployment configuration template are matched according to the form configuration parameters carried in the received instruction, the corresponding microservice code is generated according to the matching result, and the corresponding container configuration and script are modified to start running the server code. By adopting the above technical means, the corresponding microservice code can be directly matched and generated within the system and started, avoiding the operation of manually copying the code, thereby improving work efficiency and saving development time; in addition, after directly matching and generating the code within the system, the corresponding container configuration and script modification are made, so that the server code can be directly started, and the new business module service function is realized, thereby optimizing the user experience.

[0076] Embodiment 2:

[0077] Based on the above embodiments, Figure 3 This is a schematic diagram of the structure of an online development device based on a microservice system provided in Example 2 of the present application. Figure 3 The online development device based on the microservice system provided in this embodiment specifically includes: a template pre-storage module 21, a code generation module 22, a container modification module 23 and a code execution module 24.

[0078] Among them, the template pre-storage module 21 is used to save the preset microservice program and container deployment configuration template; the code generation module 22 is used to match the microservice program and container deployment configuration template according to the form configuration parameters carried in the received instruction, and generate the corresponding microservice code based on the matched template based on the form configuration parameters; the container modification module 23 is used to modify the container configuration and script according to the form configuration parameters and the microservice code; the code running module 24 is used to run the microservice code.

[0079] Specifically, the template pre-storage module 21 is also used to preset Maven programs, main program entry class files, configuration files and build files; save Maven programs, main program entry class files, configuration files and build files to form the configuration template of the microservice program.

[0080] Specifically, the template pre-storage module 21 is also used to save the pre-configured docker-compose service template, and the docker-compose service template includes the configuration of the container name, dependent container component category, host port, container port mapping and environment parameters.

[0081] Specifically, the code generation module 22 is also used to receive the new form configuration parameters carried in the instruction from the client according to the instruction sent by the client, and match the new form configuration parameters with the corresponding configuration template of the preset microservice program and its container deployment; select the configuration template of the microservice program and its container deployment that matches the new form configuration parameters.

[0082] Specifically, the code generation module 22 is also used to generate business code according to the configuration template of the selected microservice program and its container deployment; and generate corresponding target code according to the microservice program configuration template, form configuration parameters and business code.

[0083] Specifically, the container modification module 23 is also used to modify the docker-compose.yml configuration file and install.sh script of the container according to the newly added form configuration parameters received from the client and the configuration template of the selected microservice program; and start the running of the code according to the modified docker-compose.yml configuration file and install.sh script.

[0084] Specifically, the code running module 24 is also used to compile the microservice code, and after successful compilation, start the compiled microservice code through docker-compose.

[0085] As mentioned above, by saving the preset microservice program and container deployment configuration template, the microservice program and container deployment configuration template are matched according to the form configuration parameters carried in the received instruction, the corresponding microservice code is generated according to the matching result, and the corresponding container configuration and script are modified to start running the server code. By adopting the above technical means, the corresponding microservice code can be directly matched and generated within the system and started, avoiding the operation of manually copying the code, thereby improving work efficiency and saving development time; in addition, after directly matching and generating the code within the system, the corresponding container configuration and script modification are made, so that the server code can be directly started, and the new business module service function is realized, thereby optimizing the user experience.

[0086] The online development device based on the microservice system provided in the second embodiment of the present application can be used to execute the online development method based on the microservice system provided in the first embodiment above, and has corresponding functions and beneficial effects.

[0087] Embodiment three:

[0088] Embodiment 3 of the present application provides an electronic device, referring to Figure 3 The electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34 and an output device 35. The number of processors in the electronic device can be one or more, and the number of memories in the electronic device can be one or more. The processor, memory, communication module, input device and output device of the electronic device can be connected via a bus or other means.

[0089] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the online development method based on the microservice system described in any embodiment of the present application (for example, template pre-stored modules, code generation modules, container modification modules and code running modules in the online development device based on the microservice system). The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0090] The communication module 33 is used for data transmission.

[0091] The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, that is, realizes the above-mentioned online development method based on the microservice system.

[0092] The input device 34 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.

[0093] The electronic device provided above can be used to execute the online development method based on the microservice system provided in the above embodiment 1, and has corresponding functions and beneficial effects.

[0094] Embodiment 4:

[0095] An embodiment of the present application also provides a storage medium containing computer executable instructions, which are used to execute an online development method based on a microservice system when executed by a computer processor. The online development method based on the microservice system includes: saving a preset microservice program and a configuration template for container deployment; matching the microservice program and the container deployment configuration template according to the form configuration parameters carried in the received instructions, and generating a corresponding microservice code based on the matched template and the form configuration parameters; modifying the container configuration and script according to the form configuration parameters and the microservice code; and running the microservice code.

[0096] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0097] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present application is not limited to the online development method based on the microservice system as described above, and can also execute related operations in the online development method based on the microservice system provided in any embodiment of the present application.

[0098] The online development device based on the microservice system, storage medium and electronic device provided in the above embodiments can execute the online development method based on the microservice system provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the online development method based on the microservice system provided in any embodiment of the present application.

[0099] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. An online development method based on a microservice system, characterized in that: include: Save the preset configuration templates of microservice programs and container deployment; According to the form configuration parameters carried in the received instruction, the configuration template of the microservice program is matched with the container deployment configuration template, and the corresponding microservice code is generated based on the matched template and the form configuration parameters; Modify the container configuration and script according to the form configuration parameters and the microservice code; Run the microservice code; According to the form configuration parameters carried in the received instruction, the configuration template of the microservice program and the container deployment configuration template are matched, specifically: According to the instruction sent by the client, the newly added form configuration parameters carried in the instruction received from the client are matched with the configuration template of the corresponding preset microservice program and the configuration template of the container deployment; Select a configuration template for the microservice program and a configuration template for container deployment that match the newly added form configuration parameters; The instruction sent by the client is to trigger the corresponding entry of the function of adding the development business on the client, and fill in the corresponding new form configuration parameters according to the triggered entry. The new form configuration parameters include the table name of the new business module, the selection of the theme template, the form style, and the database attributes, page attributes and foreign keys of each attribute field; Receive the instruction for adding a development business and the newly added form configuration parameters sent by the client, synchronize the parameter information of the newly added form configuration parameters to the database, verify whether the parameter information of the newly added form configuration parameters in the database meets expectations, and if so, match the subsequent newly added form configuration parameters with the configuration template of the corresponding preset microservice program and the configuration template of the container deployment; if not, receive the newly added form configuration parameters again until they meet expectations; The corresponding microservice code is generated based on the form configuration parameters according to the matched template, specifically: Generate business code based on the selected microservice program configuration template and container deployment configuration template; Generate corresponding target code according to the configuration template of the microservice program and the configuration template of the container deployment, form configuration parameters and business code; The modification of the container configuration and script according to the form configuration parameters and the microservice code is specifically as follows: Modify the container's docker-compose.yml configuration file and install.sh script according to the newly added form configuration parameters received from the client and the selected microservice program configuration template and container deployment configuration template; Start the code according to the modified docker-compose.yml configuration file and install.sh script.

2. The online development method based on the microservice system according to claim 1 is characterized in that: The configuration template for saving the preset microservice program and the configuration template for container deployment are specifically: Preset Maven program, main program entry class file, configuration file and build file; Save the Maven program, main program entry class file, configuration file, and build file to form the configuration template of the microservice program.

3. The online development method based on the microservice system according to claim 1 is characterized in that: The configuration template for saving the preset microservice program and the configuration template for container deployment are specifically: Save the preconfigured docker-compose service template, which includes the configuration of the container name, dependent container component category, host port, container port mapping, and environment parameters.

4. The online development method based on the microservice system according to claim 1 is characterized in that: The running of the microservice code is specifically: Compile the microservice code, and after successful compilation, start the compiled microservice code through docker-compose.

5. An online development device based on a microservice system, characterized in that: include: Template pre-storage module, used to save preset microservice program configuration templates and container deployment configuration templates; A code generation module is used to match the configuration template of the microservice program with the container deployment configuration template according to the form configuration parameters carried in the received instruction, and generate corresponding microservice code based on the matched template and the form configuration parameters; A container modification module, used to modify container configuration and scripts according to the form configuration parameters and the microservice code; A code running module, used to run the microservice code; The code generation module is further used to receive the newly added form configuration parameters carried in the instruction from the client according to the instruction sent by the client, and match the newly added form configuration parameters with the configuration template of the corresponding preset microservice program and the configuration template of the container deployment; Select a configuration template for the microservice program and a configuration template for container deployment that match the newly added form configuration parameters; The instruction sent by the client is to trigger the corresponding entry of the function of adding the development business on the client, and fill in the corresponding new form configuration parameters according to the triggered entry, and the new form configuration parameters include the table name of the new business module, the selection of the theme template, the form style, and the database attributes, page attributes and foreign keys of each attribute field; Receive the instruction for adding a development business and the newly added form configuration parameters sent by the client, synchronize the parameter information of the newly added form configuration parameters to the database, verify whether the parameter information of the newly added form configuration parameters in the database meets expectations, and if so, match the subsequent newly added form configuration parameters with the configuration template of the corresponding preset microservice program and the configuration template of the container deployment; if not, receive the newly added form configuration parameters again until they meet expectations; The code generation module is also used to generate business code according to the selected configuration template of the microservice program and the configuration template of the container deployment; Generate corresponding target code according to the configuration template of the microservice program and the configuration template of the container deployment, form configuration parameters and business code; The container modification module is further used to modify the docker-compose.yml configuration file and the install.sh script of the container according to the newly added form configuration parameters received from the client and the selected configuration template of the microservice program and the configuration template of the container deployment; Start the code according to the modified docker-compose.yml configuration file and install.sh script.

6. An electronic device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

7. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to perform the method according to any one of claims 1 to 4 when executed by a computer processor.