POM generation method, device and equipment based on Spring frame scaffold, medium and product

Through the POM generation method based on Spring framework scaffolding, the problems of complex technical components and high difficulty in parameter configuration in bank application systems are solved, and the project maintenance and management are simplified and configuration flexibility is improved.

CN119621135APending Publication Date: 2025-03-14INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411752968.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-03-14

Smart Images

  • Figure CN119621135A_ABST
    Figure CN119621135A_ABST
Patent Text Reader

Abstract

The invention discloses a Spring frame scaffold-based POM generation method, device and equipment, a medium and a product. The method comprises the following steps: analyzing project parameter information of a current project from a current project creation request, identifying a current project architecture and each sub-module used by the current project according to the project parameter information, and configuring a project object model POM template path of each sub-module; in the POM construction process of the sub-module, reading a POM template file of the sub-module from the POM template path corresponding to the sub-module; analyzing the POM template file of each sub-module to obtain each POM analysis result; and generating a POM file of the current project according to each POM analysis result. According to the embodiment of the invention, the flexibility and reusability of project configuration can be improved, and the maintenance and management of the project are simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology, and in particular to a POM generation method, device, equipment, medium and product based on a Spring framework scaffold. Background Art

[0002] As the construction of banking application systems and the transformation of their architecture continue to deepen, in order to quickly respond to more flexible business needs and ensure a higher level of business continuity, the technical components introduced by the application systems are becoming increasingly complex and the parameter configuration is difficult. Summary of the invention

[0003] The present invention provides a POM generation method, device, equipment, medium and product based on Spring framework scaffolding to solve the problems of complicated technical components introduced by existing bank application systems and high difficulty in parameter configuration.

[0004] According to one aspect of the present invention, a method for generating a POM based on a Spring framework scaffold is provided, comprising:

[0005] Parse the project parameter information of the current project from the current project creation request, identify the current project architecture and sub-modules used by the current project according to the project parameter information, and configure the project object model POM template path of each sub-module;

[0006] During the POM construction process of the submodule, the POM template file of the submodule is read from the POM template path corresponding to the submodule;

[0007] Parse the POM template files of each submodule to obtain the parsing results of each POM;

[0008] Generate the POM file of the current project according to the POM parsing results.

[0009] According to another aspect of the present invention, a POM generation device based on a Spring framework scaffold is provided, comprising:

[0010] The template configuration module is used to parse the project parameter information of the current project from the current project creation request, identify the current project architecture and each sub-module used by the current project according to the project parameter information, and configure the project object model POM template path of each sub-module;

[0011] The POM file generation module is used to read the POM template file of the sub-module from the POM template path corresponding to the sub-module during the POM construction process of the sub-module; parse the POM template file of each sub-module to obtain each POM parsing result; and generate the POM file of the current project according to the each POM parsing result.

[0012] According to another aspect of the present invention, a computer program product is provided, including a computer program, which, when executed by a processor, implements the POM generation method based on the Spring framework scaffold according to any embodiment of the present invention.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the POM generation method based on the Spring framework scaffolding described in any embodiment of the present invention.

[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the POM generation method based on the Spring framework scaffold described in any embodiment of the present invention when executed.

[0016] According to another aspect of the present invention, a computer program product is provided, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the method for generating a POM based on a Spring framework scaffold as described in any embodiment of the present invention is implemented.

[0017] When the embodiment of the present invention creates a project through the Spring framework scaffold, multiple POM files with the same or similar configuration can be easily generated with the help of the POM template file. The template file allows the use of variables and tags to dynamically generate content, thereby improving the flexibility of configuration. The configuration information is concentrated in the template file to simplify the maintenance and management of the project.

[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1This is a first flow chart of a POM generation method based on a Spring framework scaffold provided by an embodiment of the present invention;

[0021] Figure 2 It is a second flow chart of a POM generation method based on Spring framework scaffolding provided by an embodiment of the present invention;

[0022] Figure 3 It is a structural schematic diagram of a POM generation device based on Spring framework scaffolding provided by an embodiment of the present invention;

[0023] Figure 4 It is a schematic diagram of the structure of an electronic device implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not 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 should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] Figure 1 This is the first flow chart of a method for generating a POM based on a Spring framework scaffold provided by an embodiment of the present invention. This embodiment is applicable to the situation where the introduced technical components are quickly configured during the development of a banking application system. The method can be executed by a POM generating device based on a Spring framework scaffold. The device can be implemented in the form of hardware and / or software. The device can be configured in an electronic device with corresponding data processing capabilities. Figure 1 As shown, the method includes:

[0027] S110, parsing the project parameter information of the current project from the current project creation request, identifying the current project architecture and each sub-module used by the current project according to the project parameter information, and configuring the project object model POM template path of each sub-module.

[0028] Spring framework scaffolding is an auxiliary tool for quickly building the basic structure and configuration of applications under the Spring framework. Maven is a project management and automated build tool that manages projects through POM (Projector Object Model). POM is the basic working unit of Maven projects. It is an XML file that contains basic information about the project, which is used to describe how the project is built and declare project dependencies. The project creation request initiated by the user through the front-end interface is obtained, where the project creation request contains the project parameter information of the project to be created, and the project parameter information includes the project name, dependencies, module structure, etc. The Spring framework scaffolding parses the project parameter information of the current project from the current project creation request, and determines the current project architecture used by the current project based on the parsed project parameter information, such as a monolithic application, a microservice architecture, etc., and determines the various sub-modules included in the current project.

[0029] Configure the POM template path of each submodule for the current project. For example, if the current project is a distributed microservice architecture, including four submodules: start, api, app, and common, then configure the POM template path corresponding to each submodule in the current project. The POM template path is used to indicate the storage location of the POM template file. In the Maven project, the POM file is the core configuration file of the project. The POM file contains the configuration information of the project, including the basic information of the project, the packaging method of the project, the version number of the project, the environment configuration of the project, the external libraries or external modules on which the project depends, etc. The POM template file is a template file of the POM file, which customizes the content of the POM file. Through the POM template file, multiple POM files with the same or similar configuration can be easily generated. The template file allows the use of variables and tags to dynamically generate content, thereby improving the flexibility of the configuration. Concentrate the configuration information in the template file to simplify the maintenance and management of the project.

[0030] S120. During the POM construction process of the submodule, the POM template file of the submodule is read from the POM template path corresponding to the submodule; the POM template file of each submodule is parsed to obtain each POM parsing result; and the POM file of the current project is generated according to each POM parsing result.

[0031] During the creation of the current project, for each module that needs to be created, the scaffolding service traverses the project builder collection. The project builder is responsible for building project modules according to specific rules or configurations. In the process of traversing the project builder collection, when the POM builder is executed, the POM builder begins to process the creation and update of the POM file.

[0032] For each submodule of the current project, during the POM construction process of the submodule, the POM template file of the submodule is read from the POM template path corresponding to the submodule. The POM template files of each submodule are parsed to obtain the POM parsing results of each POM and generate the POM files of each submodule. And the POM file of the current project is generated according to the POM parsing results. Specifically, the template engine parses the tags in the POM template file, replaces these tags according to the data context information, and converts the POM template file into the POM file format. The final generated POM file contains the configuration information required for the project, such as the project's dependency management, build configuration, plug-in settings, etc., and is used to build and manage Maven projects.

[0033] When the embodiment of the present invention creates a project through the Spring framework scaffold, multiple POM files with the same or similar configuration can be easily generated with the help of the POM template file. The template file allows the use of variables and tags to dynamically generate content, thereby improving the flexibility of configuration. The configuration information is concentrated in the template file to simplify the maintenance and management of the project.

[0034] In an optional implementation, it also includes: extracting the current business scenario component and the dependency parameters of the current business scenario component pre-selected by the front end from the current project creation request; generating the POM file of the current project based on the POM parsing results, including: merging the dependency parameters of the current business scenario component and the POM parsing results of each sub-module to obtain the POM file of the current project.

[0035] Specifically, according to the project parameter information of the project to be created contained in the current project creation request, the current project architecture used by the current project is determined, and the sub-function components integrated by default in the current project are determined according to the current project architecture, thereby determining the sub-modules in the current project. The current project creation request also includes the current business scenario component pre-selected by the front end and the dependency parameters of the current business scenario component. The dependency parameters of the current business scenario component pre-selected by the front end and the POM parsing results of each sub-module are merged to obtain the POM file of the current project, and the POM file of the current project includes the dependency parameters of the current business scenario component selected by the front end and the POM parsing results of each POM of the current project architecture. Based on the current project architecture, while supporting the selection of the current business scenario component of the current project and the dependency parameters of the current business scenario component through the front end, the POM parsing results of each sub-module under the project architecture are finally combined with the dependency parameters of the business scenario component to generate the final project POM file, supporting the flexible configuration of multiple modules outside the current project structure for the current project, supporting the selection of business scenario components according to actual needs, and improving the flexibility and practicality of project creation.

[0036] In an optional implementation, the method further includes: in response to an update operation on any application component in the sub-module, updating the POM template file stored in the POM template path of the sub-module.

[0037] In response to an update operation on any application component in a sub-module, the POM template path of the sub-module is located, and the POM template file stored under the path is updated to ensure that the dependencies, plug-ins, and project configurations listed in the POM file can accurately reflect the latest status and changes of the application components, thereby maintaining the build consistency and operational stability of the entire project.

[0038] Figure 2 This is a second flow chart of a method for generating a POM based on a Spring framework scaffold provided by an embodiment of the present invention. This embodiment is optimized and improved on the basis of the above embodiment. Figure 2 As shown, the method includes:

[0039] S210: Parse the project parameter information of the current project from the current project creation request, identify the current project architecture and sub-modules used by the current project according to the project parameter information, and configure the project object model POM template path of each sub-module.

[0040] S220. During the POM construction process of the submodule, the POM template file of the submodule is read from the POM template path corresponding to the submodule.

[0041] S230, calling the Maven builder implementation class shared by each sub-module in the current project architecture, parsing the POM template file of each sub-module to obtain the element dependency tree of each sub-module; converting the element dependency tree of each sub-module into a dependency tree in memory state.

[0042] In the process of traversing the project builder collection, when the POM builder is executed, the POM builder starts to process the creation and update of the POM file. Call the Maven builder to create the POM initial memory object according to the front-end parameters. Read the POM template file of the sub-module according to the description information of the project architecture and the sub-module, and parse the POM template file of each sub-module to obtain the element dependency tree of the sub-module. Update the content of the POM template file to the initial POM memory object to obtain the target POM memory object of the sub-module, that is, convert the element dependency tree of the sub-module into a dependency tree in memory state. Among them, each sub-module in the current project architecture shares the Maven builder implementation class, that is, only one Maven builder implementation class needs to be created in the current project architecture, and there is no need to implement the builder implementation class corresponding to each sub-module for each sub-module in the current project, and there is no need to hard-code the POM file structure of each sub-module in the builder implementation class.

[0043] By integrating the POM template file into the project architecture, only one Maven builder public implementation class is needed. The POM file of the current project can be created by reading the POM template files of each submodule through the shared Maven builder implementation class. This facilitates flexible expansion to achieve the generation of different POM files and saves the transformation cost caused by hard coding when updating files.

[0044] S240, determining the module hierarchy relationship corresponding to the sub-module, and updating the properties of the POM file according to the module hierarchy relationship; and obtaining the POM parsing result of each sub-module according to the properties of the updated POM file.

[0045] Determine the module hierarchy relationship corresponding to the submodule, and update the properties of the POM file according to the module hierarchy relationship. Optionally, updating the properties of the POM file according to the module hierarchy relationship includes: if the submodule belongs to the parent level, calling the Maven builder implementation class to update the module and dependency management properties of the POM object according to the configuration, which is used to define the list of submodules and the management of dependencies. Wherein, the POM object is the target POM memory object of the submodule. If the submodule belongs to the sublevel, calling the Maven builder implementation class to update the parent project properties of the POM object according to the configuration to specify the information of the parent module. If the submodule belongs to the parent level, the module and dependency management properties of the POM object are updated by the Maven builder implementation class, which can effectively manage the submodule list and dependencies and improve the efficiency of project construction and maintenance. If the submodule belongs to the sublevel, the parent project properties of the POM are updated by the Maven builder implementation class to ensure that the submodule correctly references the parent module information, simplifying dependency management and project structure maintenance. According to the properties of the updated POM file, that is, according to the target POM memory object of the updated submodule, the POM parsing results of each submodule are obtained. The Maven builder generates the POM files of each submodule according to the POM parsing results of each submodule, and completes the creation of the POM files of each submodule. Specifically, the target POM memory object in the memory is serialized into XML format and output to the pom.xml file on the disk.

[0046] S250: Generate a POM file for the current project according to the POM analysis results.

[0047] Generate the POM file of the current project based on the POM parsing results of each sub-module in the current project.

[0048] The embodiment of the present invention integrates the POM template file into the project architecture, and only requires a Maven builder public implementation class. The POM file of the current project can be created by reading the POM template file of each submodule through the shared Maven builder implementation class. It is convenient to flexibly expand the generation of different POM files and save the transformation cost caused by hard coding when updating files. Only the configuration and POM template files need to be modified to quickly integrate the new architecture project, which greatly improves the R&D efficiency and the flexibility of the scaffolding.

[0049] Figure 3 Schematic diagram of a POM generation device based on Spring framework scaffolding provided by an embodiment of the present invention. Figure 3 As shown, the device comprises:

[0050] The template configuration module 310 is used to parse the project parameter information of the current project from the current project creation request, identify the current project architecture and each sub-module used by the current project according to the project parameter information, and configure the project object model POM template path of each sub-module;

[0051] The POM file generation module 320 is used to read the POM template file of the sub-module from the POM template path corresponding to the sub-module during the POM construction process of the sub-module; parse the POM template file of each sub-module to obtain each POM parsing result; and generate the POM file of the current project according to the each POM parsing result.

[0052] The POM generation device based on the Spring framework scaffolding provided in the embodiment of the present invention can execute the POM generation method based on the Spring framework scaffolding provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.

[0053] Optionally, the POM file generation module includes:

[0054] The template parsing unit is used to call the Maven builder implementation class shared by each submodule in the current project architecture, parse the POM template file of each submodule to obtain the element dependency tree of each submodule; convert the element dependency tree of each submodule into a dependency tree in memory state;

[0055] The POM property updating unit is used to determine the module hierarchy relationship corresponding to the submodule, and update the properties of the POM file according to the module hierarchy relationship; and obtain the POM parsing results of each submodule according to the properties of the updated POM file.

[0056] Optionally, the POM property update unit is specifically used to: if the sub-module belongs to the parent level, call the Maven builder implementation class to update the module and dependency management properties of the POM object according to the configuration, so as to define the sub-module list and dependency management.

[0057] Optionally, the POM property updating unit is further specifically used to: if the submodule belongs to a sub-level, call the Maven builder implementation class to update the parent project property of the POM object according to the configuration to specify the information of the parent module.

[0058] Optionally, it also includes a business scenario selection module, which is used to extract the current business scenario components and dependency parameters of the current business scenario components pre-selected by the front end from the current project creation request; the POM file generation module is specifically used to merge the dependency parameters of the current business scenario components and the POM parsing results of each sub-module to obtain the POM file of the current project.

[0059] Optionally, a template update module is also included, which is used to update the POM template file stored in the POM template path of the sub-module in response to an update operation on any application component in the sub-module.

[0060] The further described POM generation device based on the Spring framework scaffold can also execute the POM generation method based on the Spring framework scaffold provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0061] According to an embodiment of the present invention, the present invention also provides an electronic device, a readable storage medium and a computer program product.

[0062] Figure 4 A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0063] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0064] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0065] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 executes the various methods and processes described above, such as the POM generation method based on the Spring framework scaffolding.

[0066] In some embodiments, the POM generation method based on the Spring framework scaffolding can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the POM generation method based on the Spring framework scaffolding described above can be performed. Alternatively, in other embodiments, the processor 41 can be configured to execute the POM generation method based on the Spring framework scaffolding by any other appropriate means (for example, by means of firmware).

[0067] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0068] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0069] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0070] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0071] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0072] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0073] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0074] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A POM generation method based on Spring framework scaffolding, characterized in that: include: Parse the project parameter information of the current project from the current project creation request, identify the current project architecture and sub-modules used by the current project according to the project parameter information, and configure the project object model POM template path of each sub-module; During the POM construction process of the submodule, the POM template file of the submodule is read from the POM template path corresponding to the submodule; Parse the POM template files of each submodule to obtain the parsing results of each POM; Generate the POM file of the current project according to the POM parsing results.

2. The method according to claim 1, characterized in that The POM template files of each submodule are parsed to obtain the parsing results of each POM, including: Call the Maven builder implementation class shared by each sub-module in the current project architecture, parse the POM template file of each sub-module to obtain the element dependency tree of each sub-module; Convert the element dependency tree of each submodule into a dependency tree in memory state; Determine the module hierarchy relationship corresponding to the submodule, and update the properties of the POM file according to the module hierarchy relationship; According to the properties of the updated POM file, the POM parsing results of each submodule are obtained.

3. The method according to claim 2, characterized in that The updating of the properties of the POM file according to the module hierarchy relationship includes: If the submodule belongs to the parent level, the Maven builder implementation class is called to update the module and dependency management properties of the POM object according to the configuration, so as to define the list of submodules and the management of dependencies.

4. The method according to claim 2, characterized in that The updating of the properties of the POM file according to the module hierarchy relationship includes: If the submodule belongs to a sub-level, the Maven builder implementation class is called to update the parent project property of the POM object according to the configuration to specify the information of the parent module.

5. The method according to claim 1, characterized in that: The method further comprises: extracting the current business scenario component and the dependent parameters of the current business scenario component pre-selected by the front end from the current project creation request; The generating of the POM file of the current project according to the POM parsing results includes: The dependency parameters of the current business scenario components and the POM parsing results of each sub-module are merged to obtain the POM file of the current project.

6. The method according to claim 1, characterized in that Also includes: In response to an update operation on any application component in a sub-module, the POM template file stored in the POM template path of the sub-module is updated.

7. A POM generation device based on Spring framework scaffolding, characterized in that: The device comprises: The template configuration module is used to parse the project parameter information of the current project from the current project creation request, identify the current project architecture and each sub-module used by the current project according to the project parameter information, and configure the project object model POM template path of each sub-module; The POM file generation module is used to read the POM template file of the sub-module from the POM template path corresponding to the sub-module during the POM construction process of the sub-module; parse the POM template file of each sub-module to obtain each POM parsing result; and generate the POM file of the current project according to the each POM parsing result.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the POM generation method based on the Spring framework scaffolding described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the POM generation method based on the Spring framework scaffold described in any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for generating a POM based on a Spring framework scaffold according to any one of claims 1 to 6 is implemented.