CN117992028A - Code generation method, device and medium based on configuration file - Google Patents

Code generation method, device and medium based on configuration file Download PDF

Info

Publication number
CN117992028A
CN117992028A CN202410198190.6A CN202410198190A CN117992028A CN 117992028 A CN117992028 A CN 117992028A CN 202410198190 A CN202410198190 A CN 202410198190A CN 117992028 A CN117992028 A CN 117992028A
Authority
CN
China
Prior art keywords
code
configuration file
service
data
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410198190.6A
Other languages
Chinese (zh)
Inventor
肖萧
鹿旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN202410198190.6A priority Critical patent/CN117992028A/en
Publication of CN117992028A publication Critical patent/CN117992028A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a code generation method, equipment and medium based on a configuration file, belongs to the technical field of computer software development, and is used for solving the technical problems that the existing code generation tool is difficult to meet complex business requirements, and the requirement change possibly needs to be manually modified, so that automatic adjustment and adaptation cannot be realized. The method comprises the following steps: based on the service characteristics, pre-placing service demand data in a configuration file; the type analysis of the calling interface is carried out on the configuration file, and a code template corresponding to the service demand data is obtained; code generation processing under relevant code parameter response is carried out on the service demand data through a code template, so that a demand code class is obtained; and configuring the demand code class into the business characteristic engineering to finish the generation processing of the source code of the business demand data.

Description

Code generation method, device and medium based on configuration file
Technical Field
The present application relates to the field of computer software development, and in particular, to a code generation method, device and medium based on a configuration file.
Background
At present, GSCLoud product functions are realized to interface with service interfaces of inlet and outlet items of various large tax manufacturers, and only interface manufacturers Jin Shuiji are required to be preset to realize setting and other information, so that corresponding services of the interfaced manufacturers can be adjusted according to buttons on related functions of the products by configuring configuration items in some common parameters, and services such as real billing, revocation and choosing are realized.
However, the interface document is provided according to the manufacturer to perform customized development, so that the service of the product corresponding to the defined interface is realized. The method mainly comprises the steps of identifying the calling mode and the parameter type of a manufacturer, whether encryption and decryption are needed, a corresponding algorithm and the like. And then according to the requirements of the interface entering organization into the golden tax interface entering, calling the interface, and converting the interface returning parameter into the interface returning value required by the product. Thereby realizing the real call of the related service.
Because the interfaces of different manufacturers have different public parameters and the names of parameter value fields are different, the calling mode is related to whether encryption and decryption are needed or not, or the problems of calling some auxiliary interfaces for verification and the like are solved. The method has the advantages that customized development is required for different interfaces of different manufacturers, but the whole development steps are similar, so that a large number of repeated codes are generated, the workload is increased, and the development efficiency is reduced. Therefore, it is necessary to design a code generating apparatus and method based on configuration and database table preset information, which can automatically generate codes with rich structures and functions according to different requirements.
Disclosure of Invention
The embodiment of the application provides a code generation method, equipment and medium based on a configuration file, which are used for solving the following technical problems: the existing code generation tool is difficult to meet complex business requirements, and the requirements of the existing code generation tool can be changed manually and manually, so that automatic adjustment and adaptation cannot be realized.
The embodiment of the application adopts the following technical scheme:
In one aspect, an embodiment of the present application provides a code generation method based on a configuration file, including: based on the service characteristics, pre-placing service demand data in a configuration file; performing type analysis of a calling interface on the configuration file to obtain a code template corresponding to the service demand data; performing code generation processing under relevant code parameter response on the service demand data through the code template to obtain a demand code class; and configuring the demand code class into business characteristic engineering to finish the generation processing of the source code of the business demand data.
The embodiment of the application can improve the development efficiency through the use of the cross field of software development and configuration management: by automatically generating code, the time and effort of manual writing by a developer is reduced. Error reduction: by using a reusable code structure library, errors due to human factors are avoided. The flexibility is high: the user can freely modify the configuration according to the requirements, so as to meet the requirements of different scenes. The expandability is strong: the device may support more types of interfaces and code generation through upgrades or extensions. Codes with rich structure and functions can also be automatically generated according to different services.
In a possible implementation manner, the service requirement data is pre-set in the configuration file based on the service characteristics, and specifically includes: according to the service characteristics, inquiring a service demand database to obtain the service demand data; wherein, the service characteristic is related service requirement information in the service front end; the business demand data is development demand data in the software development process; packaging the service demand data, and generating a file of the packaged service demand data to obtain a preassembled service file; pre-arranging the pre-installed business file in the configuration file; wherein, the configuration file at least has: JSON format, XML format, and YAML format.
In a possible implementation manner, the pre-installed service file is pre-installed in the configuration file, which specifically includes: matching the document attribute in the preassembly service file with the document attribute of the configuration file to obtain a key value pair mapping between the preassembly service file and the configuration file; and pre-placing the pre-installed business file in the configuration file through the key value pair mapping.
In a possible implementation manner, the type analysis of the calling interface is performed on the configuration file to obtain a code template corresponding to the service requirement data, which specifically includes: based on the software development internal architecture, reading the configuration file, and carrying out data structure analysis on the read configuration file to obtain data structure information; wherein the data structure information at least includes: package name, class name, field name, and method name; according to the data structure information, inquiring the implementation structure in the software development internal architecture, and determining the type of the calling interface; the data structure information is subjected to data matching processing under multiple stages by calling an interface type, and the code template is determined; wherein the multiple stages comprise: a business item billing stage, a business item checking stage and an electronic ledger stage.
In a possible implementation manner, the code template is determined by calling an interface type and performing data matching processing on the data structure information in multiple stages, and the method specifically includes: carrying out multi-stage interface splitting on the data structure information through the calling interface type to obtain a calling realization interface under each stage; wherein the call implementation interface comprises: an entry interface and a pin interface; pulling subcode templates corresponding to the data structure information at each stage through the call realization interface; and combining the subcode templates at each stage to obtain the code templates.
In a possible implementation manner, the code template is used to perform code generation processing under the response of relevant code parameters on the service demand data to obtain a demand code class, which specifically includes: based on the code template, carrying out pulling processing of public parameters on the service demand data to obtain request public parameters; encrypting the analyzed data structure information through a preset encryption algorithm; generating request service parameters of the service demand data; carrying out response processing on the codes of the request public parameters and the request service parameters in a preset calling mode to obtain code response parameters; and carrying out corresponding generation response on the code generator according to the code response parameters to obtain the demand code class.
In a possible implementation manner, after the type parsing of the call interface is performed on the configuration file, the method further includes: if the third party calling code exists in the software development internal architecture, generating a source code based on the data structure information after the analysis of the configuration file; and according to the source code, carrying out corresponding generation response on a code generator to obtain the demand code class.
In a possible implementation manner, the requirement code class is configured in a business characteristic engineering to complete a source code generation process of the business requirement data, and specifically includes: identifying an attribute table of the demand code class; wherein, the attribute table at least comprises: code attribute, class file, field table and method table; and carrying out automatic matching processing on a plurality of sub-projects in the business characteristic project according to the attribute table so as to enable the demand code class to be configured into a specified directory file of the business characteristic project.
In a second aspect, an embodiment of the present application further provides a code generating device based on a configuration file, where the device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a profile-based code generation method as described in any one of the embodiments above.
In a third aspect, an embodiment of the present application further provides a non-volatile computer storage medium, where the storage medium is a non-volatile computer readable storage medium, where at least one program is stored, where each program includes instructions that, when executed by a terminal, cause the terminal to perform a code generating method based on a configuration file according to any one of the foregoing embodiments.
Compared with the prior art, the embodiment of the application has the following beneficial technical effects:
The embodiment of the application can improve the development efficiency through the use of the cross field of software development and configuration management: by automatically generating code, the time and effort of manual writing by a developer is reduced. Error reduction: by using a reusable code structure library, errors due to human factors are avoided. The flexibility is high: the user can freely modify the configuration according to the requirements, so as to meet the requirements of different scenes. The expandability is strong: the device may support more types of interfaces and code generation through upgrades or extensions. Codes with rich structure and functions can also be automatically generated according to different services.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art. In the drawings:
FIG. 1 is a flow chart of a code generation method based on a configuration file according to an embodiment of the present application;
Fig. 2 is a schematic structural diagram of a code generating device based on a configuration file according to an embodiment of the present application.
Detailed Description
In order to make the technical solution of the present application better understood by those skilled in the art, the technical solution of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
The embodiment of the application provides a code generation method based on a configuration file, which specifically comprises the following steps S101-S104 as shown in FIG. 1:
It should be noted that, in the software development process, writing codes is a tedious and error-prone task. In order to reduce the workload of developers and improve development efficiency, it is necessary to design a method of automatically generating codes. In the prior art, some code generation tools can automatically generate codes according to requirements, but the tools cannot meet complex requirements. The code generated is typically fixed and may require manual modification for demand changes, failing to achieve automatic adjustment and adaptation. Moreover, different development tools and platforms may use different code generators, and lack of standardization may lead to the developer needing to learn different tools and platforms, increasing learning costs. Therefore, it is necessary to design a code generating device and method specifically for third party call, which can automatically generate codes with rich structures and functions according to different services.
The invention mainly belongs to the field of computer software development, and particularly relates to the technical field of code generation and configuration management. The method uses the configuration file as input, generates source codes according to rules and templates in the configuration file, and is suitable for various programming languages and development environments. The device aims to improve development efficiency, reduce errors and enable the code to be more easily maintained and expanded by automating code generation.
In addition, the invention can also relate to a plurality of aspects such as software architecture design, code optimization, safety control and the like, and is a comprehensive development tool for improving the efficiency and quality of software development.
In general, a code generating device based on a configuration file belongs to the crossing field of software development and configuration management, and uses the configuration file as input to generate source code through specific rules and templates, so that the code generating device is an important use tool in the software development process.
S101, based on service characteristics, service demand data are pre-arranged in a configuration file.
Specifically, according to the service characteristics, the service demand database is queried to obtain service demand data. Wherein the service characteristic is related service requirement information in the service front end. The business requirement data is development requirement data in the software development process.
Further, the service demand data is packaged, and the packaged service demand data is subjected to file generation to obtain a preassembled service file.
Further, the pre-installed service file is preset in the configuration file. Wherein the configuration file at least has: JSON format, XML format, and YAML format. Comprising the following steps: and matching the document attribute in the preassembly service file with the document attribute of the configuration file to obtain a key value pair mapping between the preassembly service file and the configuration file. And presetting the preassembly business file in the configuration file through key value pair mapping.
As a possible implementation manner, as the content of the configuration file increases, interfaces for docking correspondingly increase, features increase, the content of the configuration file correspondingly increases to be expanded, the complexity and workload of inspection increase, and the content of the configuration file can be considered to be implemented through a foreground function. The visualization of the configuration may make the examination considerably easier, i.e. by the foreground function configuration.
1) Adding a parameter matching function: the field names of the input parameters and the output parameters are identified through importing the interface document, and the mapping relation is established through checking the invoice related fields and the document scanned out fields, so that the workload of copying and pasting is reduced, and the error caused by manual writing of the configuration file is avoided, and the configuration file is difficult to check.
2) Tax office interface configuration: the method not only can configure the configuration item value, but also can associate the calling mode of the corresponding interface, whether the corresponding interface is encrypted and decrypted, and the encryption and decryption algorithm is stored in the database in a single selection frame checking mode, thereby realizing flexible modification.
S102, carrying out type analysis of a calling interface on the configuration file to obtain a code template corresponding to the service demand data.
Specifically, based on the software development internal architecture, reading the configuration file, and analyzing the data structure of the read configuration file to obtain data structure information. Wherein, the data structure information at least comprises: package name, class name, field name, and method name.
Further, according to the data structure information, query processing is carried out on the implementation structure in the software development internal architecture, and the type of the calling interface is determined.
Further, the code template is determined by calling the interface type and performing data matching processing on the data structure information in multiple stages. Wherein the multiple stages comprise: a business item billing stage, a business item checking stage and an electronic ledger stage. The method comprises the following steps: and carrying out multi-stage interface splitting on the data structure information through calling interface types to obtain a calling realization interface under each stage. Wherein, call the realization interface and include: the entry interface interfaces with the pin interface. And pulling the subcode template corresponding to the data structure information at each stage by calling the realization interface. And combining the subcode templates at each stage to obtain the code template.
In one embodiment, the call interfaces in each phase are largely divided into an entry interface and a pin interface. The entry interface comprises checking, acquiring an electronic bottom account library, checking deduction, counting signature and the like. The pin interface comprises billing, revocation, printing, batch printing, uploading, downloading, revocation and red-word confirmation list application and the like. The code of the call realization interface at each stage can be divided into a processing parameter-entering interface and a call interface, and the parameter-exiting interface is processed. When a new interface needs to be developed, the class of the corresponding interface is only needed to be realized, and finally, the subcode templates at each stage are combined to obtain the code template.
In one embodiment, the configuration file may be parsed by the java code to obtain the corresponding interface type to be invoked, thereby selecting the corresponding code template.
S103, performing code generation processing under relevant code parameter response on the service demand data through a code template to obtain a demand code class.
Specifically, based on the code template, the service demand data is pulled to obtain the public parameter.
Further, the analyzed data structure information is encrypted through a preset encryption algorithm; and generates request service parameters for service demand data.
In one embodiment, in the tool class of the software development internal architecture, the tool class can be configured in the configuration file through whether encryption (decryption) is needed in the configuration file and a corresponding encryption (decryption) algorithm. Other characteristics may be further extended according to the gradual increase of the interface characteristics.
Further, the request public parameter and the request service parameter are subjected to response processing of codes in a preset calling mode, and the code response parameters are obtained.
Further, according to the code response parameters, corresponding generation response is carried out on the code generator, and the required code class is obtained.
As a possible implementation manner, after the type analysis of the call interface is performed on the configuration file, if the third party call code exists in the software development internal architecture, the source code is generated based on the data structure information after the analysis of the configuration file. And according to the source code, carrying out corresponding generation response on the code generator to obtain the required code class.
S104, configuring the demand code class into the business characteristic engineering to finish the generation processing of the source code of the business demand data.
Specifically, an attribute table of the demand code class is identified. Wherein, the attribute table includes at least: code attribute, class file, field table and method table.
Further, according to the attribute table, carrying out automatic matching processing on a plurality of sub-projects in the business characteristic project so as to enable the demand code class to be configured into a specified directory file of the business characteristic project.
As a possible implementation mode, the invention automatically generates codes meeting requirements and specifications mainly by reading configuration files. The code generation process is simplified, the development efficiency is improved, and the manual writing errors are reduced. And (3) encapsulating the common extraction methods such as the calling mode of each interface, the encryption and decryption algorithm and the like to form code fragments with specific functions, and multiplexing the code fragments into different services of different manufacturers through configuration files so as to improve the reusability of codes. The system mainly comprises three modules, namely, configuration file analysis, code generation and code output.
In addition, the embodiment of the application also provides a code generating device based on the configuration file, as shown in fig. 2, the code generating device 200 based on the configuration file specifically includes:
At least one processor 201, and a memory 202 communicatively coupled to the at least one processor 201. Wherein the memory 202 stores instructions executable by the at least one processor 201 to enable the at least one processor 201 to perform:
based on the service characteristics, pre-placing service demand data in a configuration file;
the type analysis of the calling interface is carried out on the configuration file, and a code template corresponding to the service demand data is obtained;
Code generation processing under relevant code parameter response is carried out on the service demand data through a code template, so that a demand code class is obtained;
And configuring the demand code class into the business characteristic engineering to finish the generation processing of the source code of the business demand data.
The embodiment of the application can improve the development efficiency through the use of the cross field of software development and configuration management: by automatically generating code, the time and effort of manual writing by a developer is reduced. Error reduction: by using a reusable code structure library, errors due to human factors are avoided. The flexibility is high: the user can freely modify the configuration according to the requirements, so as to meet the requirements of different scenes. The expandability is strong: the device may support more types of interfaces and code generation through upgrades or extensions. Codes with rich structure and functions can also be automatically generated according to different services.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the apparatus and medium embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, with reference to the section of the method embodiments being relevant.
The devices and media provided in the embodiments of the present application are in one-to-one correspondence with the methods, so that the devices and media also have similar beneficial technical effects as the corresponding methods, and since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media are not repeated here.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. A method for generating a code based on a configuration file, the method comprising:
based on the service characteristics, pre-placing service demand data in a configuration file;
Performing type analysis of a calling interface on the configuration file to obtain a code template corresponding to the service demand data;
Performing code generation processing under relevant code parameter response on the service demand data through the code template to obtain a demand code class;
and configuring the demand code class into business characteristic engineering to finish the generation processing of the source code of the business demand data.
2. The code generation method based on a configuration file according to claim 1, wherein the pre-setting of the service requirement data in the configuration file based on the service characteristics specifically comprises:
according to the service characteristics, inquiring a service demand database to obtain the service demand data; wherein, the service characteristic is related service requirement information in the service front end; the business demand data is development demand data in the software development process;
Packaging the service demand data, and generating a file of the packaged service demand data to obtain a preassembled service file;
Pre-arranging the pre-installed business file in the configuration file; wherein, the configuration file at least has: JSON format, XML format, and YAML format.
3. The code generating method based on configuration file according to claim 2, wherein the pre-loading service file is pre-loaded in the configuration file, specifically comprising:
Matching the document attribute in the preassembly service file with the document attribute of the configuration file to obtain a key value pair mapping between the preassembly service file and the configuration file;
And pre-placing the pre-installed business file in the configuration file through the key value pair mapping.
4. The code generation method based on the configuration file according to claim 1, wherein the type analysis of the calling interface is performed on the configuration file to obtain a code template corresponding to the service requirement data, and the method specifically comprises:
Based on the software development internal architecture, reading the configuration file, and carrying out data structure analysis on the read configuration file to obtain data structure information; wherein the data structure information at least includes: package name, class name, field name, and method name;
According to the data structure information, inquiring the implementation structure in the software development internal architecture, and determining the type of the calling interface;
The data structure information is subjected to data matching processing under multiple stages by calling an interface type, and the code template is determined; wherein the multiple stages comprise: a business item billing stage, a business item checking stage and an electronic ledger stage.
5. The code generation method based on a configuration file according to claim 4, wherein the code template is determined by calling an interface type to perform data matching processing on the data structure information in multiple stages, and the method specifically comprises:
Carrying out multi-stage interface splitting on the data structure information through the calling interface type to obtain a calling realization interface under each stage; wherein the call implementation interface comprises: an entry interface and a pin interface;
pulling subcode templates corresponding to the data structure information at each stage through the call realization interface;
and combining the subcode templates at each stage to obtain the code templates.
6. The code generation method based on configuration files according to claim 1, wherein the code generation processing under the response of relevant code parameters is performed on the service demand data through the code template to obtain a demand code class, and the method specifically comprises the following steps:
Based on the code template, carrying out pulling processing of public parameters on the service demand data to obtain request public parameters;
encrypting the analyzed data structure information through a preset encryption algorithm; generating request service parameters of the service demand data;
Carrying out response processing on the codes of the request public parameters and the request service parameters in a preset calling mode to obtain code response parameters;
and carrying out corresponding generation response on the code generator according to the code response parameters to obtain the demand code class.
7. The profile-based code generation method of claim 4, wherein after the type parsing of the call interface is performed on the profile, the method further comprises:
if the third party calling code exists in the software development internal architecture, generating a source code based on the data structure information after the analysis of the configuration file;
and according to the source code, carrying out corresponding generation response on a code generator to obtain the demand code class.
8. The code generation method based on a configuration file according to claim 1, wherein the requirement code class is configured into a business characteristic engineering to complete a source code generation process of the business requirement data, specifically comprising:
identifying an attribute table of the demand code class; wherein, the attribute table at least comprises: code attribute, class file, field table and method table;
And carrying out automatic matching processing on a plurality of sub-projects in the business characteristic project according to the attribute table so as to enable the demand code class to be configured into a specified directory file of the business characteristic project.
9. A profile-based code generation apparatus, the apparatus comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform a profile-based code generation method according to any one of claims 1-8.
10. A non-volatile computer storage medium, characterized in that the storage medium is a non-volatile computer readable storage medium storing at least one program, each of the programs comprising instructions, which when executed by a terminal, cause the terminal to perform a profile-based code generation method according to any of claims 1-8.
CN202410198190.6A 2024-02-22 2024-02-22 Code generation method, device and medium based on configuration file Pending CN117992028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410198190.6A CN117992028A (en) 2024-02-22 2024-02-22 Code generation method, device and medium based on configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410198190.6A CN117992028A (en) 2024-02-22 2024-02-22 Code generation method, device and medium based on configuration file

Publications (1)

Publication Number Publication Date
CN117992028A true CN117992028A (en) 2024-05-07

Family

ID=90887096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410198190.6A Pending CN117992028A (en) 2024-02-22 2024-02-22 Code generation method, device and medium based on configuration file

Country Status (1)

Country Link
CN (1) CN117992028A (en)

Similar Documents

Publication Publication Date Title
CN110825362B (en) Low-code application software development system and method
CN112748908B (en) Method and device for developing Restful service based on SSM framework
CN111399853A (en) Templated deployment method of machine learning model and custom operator
CN111858727A (en) Multi-data-source data export system and method based on template configuration
CN116149747A (en) Interface arrangement method, device, electronic equipment and computer readable storage medium
CN111198772A (en) Method and system for generating application program interface API
CN115878092A (en) Code generation method, device and medium based on micro-service architecture
CN113535141A (en) Database operation code generation method and device
CN115525534A (en) Test case generation method and platform based on swagger interface test
CN117992028A (en) Code generation method, device and medium based on configuration file
CN112114794B (en) Automatic generation method and device of website application program and computer storage medium
CN113342399A (en) Application structure configuration method and device and readable storage medium
CN112000366B (en) System parameter configuration method and device based on code generator
CN114548937B (en) Method, control device and storage medium for external investigation system
CN115934684B (en) Multi-source database data migration method and device, equipment and storage medium
CN116306537A (en) Data acquisition method, device, equipment and storage medium
CN114629788B (en) Configuration information updating method, system, storage medium and electronic device
CN117850869A (en) Interface message generation method and device, storage medium and electronic equipment
CN116827789A (en) Automatic generation method, equipment and storage medium of Nginx configuration file
CN118118262A (en) Firewall configuration file analysis method and device and electronic equipment
CN115145599A (en) Method, system and storage medium for constructing increment upgrade package
CN117555533A (en) Code generation method, electronic device and storage medium
CN116755691A (en) Data comparison method, device and medium based on identification analysis
CN117149654A (en) System migration testing method, device, equipment and storage medium
CN117193756A (en) Development method, equipment and medium of low-code development platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination