CN114610359A - Project upgrading method, device, equipment and medium based on design development framework - Google Patents

Project upgrading method, device, equipment and medium based on design development framework Download PDF

Info

Publication number
CN114610359A
CN114610359A CN202210439877.5A CN202210439877A CN114610359A CN 114610359 A CN114610359 A CN 114610359A CN 202210439877 A CN202210439877 A CN 202210439877A CN 114610359 A CN114610359 A CN 114610359A
Authority
CN
China
Prior art keywords
project
code
upgrading
initial
framework
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
CN202210439877.5A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202210439877.5A priority Critical patent/CN114610359A/en
Publication of CN114610359A publication Critical patent/CN114610359A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of development assistance, and discloses a project upgrading method based on a design development framework, which comprises the following steps: building a blank project based on a preset initial design development framework; acquiring an initial code from the initial design development framework, and storing the initial code to a specified directory of a blank project to obtain a project to be upgraded; judging whether the configuration of the initial code in the item to be upgraded needs to be converted or not based on whether the initial code can run under a preset upgrading framework or not; if the configuration of the initial code in the project to be upgraded needs to be converted, the initial code is transformed based on a preset verification rule to obtain an upgrade code; if the configuration of the initial code in the project to be upgraded does not need to be converted, the initial code is directly used as the upgrading code; an upgrade project is constructed based on the upgrade code. The invention also provides a project upgrading device, equipment and a storage medium based on the design development framework. The invention can improve the upgrading efficiency of the project.

Description

Project upgrading method, device, equipment and medium based on design development framework
Technical Field
The invention relates to the technical field of development assistance, in particular to a project upgrading method, device, equipment and medium based on a design development framework.
Background
As services develop, software development systems become more complex, services in different fields involve a lot of knowledge and problems, and if the services are developed from the beginning each time, a lot of time is consumed and the services cannot be made well. And when team cooperation development is carried out, because no unified standard can lead workers to carry out the work, the problem can be effectively solved by applying a mature design and development framework.
However, with the rapid development of network infrastructure and the increasing access of more and more individuals to the internet, because the program designed by the original design and development framework has no function of micro-service, the original design and development framework is more and more labored in processing the problem of program development, and therefore, a method for upgrading and reconstructing the project of the original design and development framework to conform to the micro-service mode is needed.
Disclosure of Invention
The invention provides a project upgrading method, device, equipment and medium based on a design development framework, and mainly aims to improve the project upgrading efficiency.
In order to achieve the above object, the present invention provides a project upgrading method based on a design development framework, which includes:
building a blank project based on a preset initial design development framework;
acquiring an initial code from the initial design development framework, and storing the initial code to a specified directory of the blank project to obtain a project to be upgraded;
acquiring a judgment result of whether the initial code can run under a preset upgrading frame or not, and judging whether the configuration of the initial code in the project to be upgraded needs to be converted or not according to the judgment result;
if the configuration of the initial code in the project to be upgraded needs to be converted, transforming the initial code based on a preset verification rule to obtain an upgrade code;
if the configuration of the initial code in the project to be upgraded does not need to be converted, directly taking the initial code as an upgrading code;
and constructing an upgrading project by using the preset upgrading framework based on the upgrading code.
Optionally, the building a blank project based on a preset initial design development framework includes:
applying for a project name and a project storage space based on the design development framework;
and selecting the item with the item name and the item storage space as a blank item.
Optionally, the storing the initial code to the specified directory of the blank item to obtain an item to be upgraded includes:
acquiring a storage interface of the appointed directory of the blank item;
and importing the initial code into the specified directory of the blank item through the storage interface to obtain the item to be upgraded.
Optionally, the transforming the initial code based on a preset validation rule to obtain an upgrade code includes:
acquiring a preset verification rule, wherein the verification rule comprises a single-row verification rule and a multi-row verification rule;
constructing a single-row validation rule queue and a multi-row validation rule queue based on the single-row validation rule and the multi-row validation rule respectively;
and performing adaptive transformation on the initial code sequentially through the single-row validation rule queue and the multi-row validation rule queue to obtain the upgrade code.
Optionally, the building an upgrade project by using the preset upgrade framework based on the upgrade code includes:
calling the upgrading framework, and inquiring the code logic of the upgrading code through the upgrading framework;
and packaging the upgrading code based on the code logic to construct the upgrading project.
Optionally, the obtaining initial code from the initial design development framework includes:
acquiring a project repository in the initial design development framework;
and acquiring a storage item from the item storage library, and splitting the storage item based on the code logic of the storage item to obtain the initial code.
Optionally, after the initial code is adaptively transformed sequentially through the single-row validation rule queue and the multi-row validation rule queue to obtain the upgrade code, the method further includes:
counting the number of validation rules in the single-row validation rule queue and the multi-row validation rule queue respectively;
collecting the verification rule numbers of the single-row verification rule queue and the multi-row verification rule queue to obtain a total verification rule number;
and adding an annotation segment after the upgrade code, and adding the sum verification rule number into the annotation segment to be used as the annotation of the upgrade code.
In order to solve the above problem, the present invention further provides a project upgrading apparatus based on a design development framework, the apparatus including:
the project construction module is used for constructing a blank project based on a preset initial design development framework, acquiring an initial code from the initial design development framework, and storing the initial code to a specified catalog of the blank project to obtain a project to be upgraded;
the conversion judging module is used for obtaining a judging result of whether the initial code can run under a preset upgrading framework or not, and judging whether the configuration of the initial code in the project to be upgraded needs to be converted or not according to the judging result;
the code upgrading module is used for transforming the initial codes based on a preset verification rule to obtain upgrading codes if the configuration of the initial codes in the project to be upgraded needs to be converted, and directly taking the initial codes as the upgrading codes if the configuration of the initial codes in the project to be upgraded does not need to be converted;
and the project upgrading module is used for constructing an upgrading project by using the preset upgrading framework based on the upgrading code.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the design development framework based project upgrade method as described above.
In order to solve the above problem, the present invention further provides a computer-readable storage medium including a storage data area and a storage program area, the storage data area storing created data, the storage program area storing a computer program; wherein the computer program, when executed by a processor, implements a design development framework based project upgrade method as described above.
In the embodiment of the invention, a blank project is built based on a preset initial design development framework, an initial code is obtained from the initial design development framework and is stored to an appointed catalogue of the blank project to obtain a project to be upgraded, the purpose of obtaining the project from the original design development framework is realized, the preset upgrade framework is obtained, whether the configuration of the initial code in the project to be upgraded needs to be converted is judged based on whether the initial code can run under the upgrade framework, and if the configuration of the initial code in the project to be upgraded needs to be converted, the initial code is verified based on a preset verification rule to obtain an upgrade code; if the configuration of the initial code in the project to be upgraded does not need to be converted, the initial code is directly used as the upgrade code, the code of the project under the original design and development framework is upgraded, and finally the upgrade project is constructed based on the upgrade code file. Therefore, the invention obtains the old codes from the original design and development framework, and upgrades the codes, so that the codes are constructed and suitable for the upgrading framework to realize the upgrading of the old project.
Drawings
Fig. 1 is a schematic flowchart of a project upgrading method based on a design development framework according to an embodiment of the present invention;
FIG. 2 is a detailed flowchart illustrating a step in a project upgrading method based on a design development framework according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart illustrating a step in a project upgrading method based on a design development framework according to an embodiment of the present invention;
FIG. 4 is a detailed flowchart illustrating a step in a project upgrading method based on a design development framework according to an embodiment of the present invention;
FIG. 5 is a detailed flowchart illustrating a step in a project upgrading method based on a design development framework according to an embodiment of the present invention;
FIG. 6 is a detailed flowchart illustrating a step in a project upgrading method based on a design development framework according to an embodiment of the present invention;
FIG. 7 is a detailed flowchart illustrating a step in a project upgrading method based on a design development framework according to an embodiment of the present invention;
FIG. 8 is a block diagram of a project upgrading apparatus based on a design development framework according to an embodiment of the present invention;
fig. 9 is a schematic internal structural diagram of an electronic device for implementing a project upgrading method based on a design development framework according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a project upgrading method based on a design development framework. The execution subject of the project upgrading method based on the design development framework includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiments of the present application. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. In other words, the project upgrading method based on the design development framework may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to fig. 1, a schematic flow chart of a project upgrading method based on a design development framework according to an embodiment of the present invention is provided. In this embodiment, the project upgrading method based on the design and development framework includes the following steps S1-S7:
and S1, building a blank project based on the preset initial design development framework.
In the embodiment of the present invention, the initial design and development framework is a design and development framework built on J2EE, and further, the initial design and development framework further defines a series of processes, such as how to process HTTP requests, transaction control, and some general functions, such as file uploading, data checking, message management, and log functions.
Further, the J2EE (Java 2Platform Enterprise Edition) is an industry standard for developing Enterprise-level applications using Java technology, which is a product of the process of Java technology continuously adapting and facilitating Enterprise-level application development.
In the embodiment of the invention, the blank item is a program established in programming or development and a certain module specifically aiming at the program in the programming process.
Referring to fig. 2, further, the building of the blank project based on the preset initial design development framework includes steps S1011 to S1012:
s1011, applying for a project name and a project storage space based on the design development framework;
s1012, selecting the item with the item name and the item storage space as a blank item.
In the embodiment of the present invention, the item name is used to identify the blank item, and the item storage space is used to determine the storage location and the space size of the blank item, so as to facilitate the subsequent addition of data to the blank item.
And S2, acquiring initial codes from the initial design development framework, and storing the initial codes to the specified directory of the blank project to obtain the project to be upgraded.
In the embodiment of the present invention, the specified directory of the blank project is used for storing the initial code, that is, all the initial codes obtained in the initial design development framework are stored in the specified directory of the blank project.
Referring to fig. 3, further, the acquiring initial code from the initial design development framework includes steps S2011 to S2012:
s2011, acquiring a project repository in the initial design development framework;
s2012, a storage item is obtained from the item storage library, and the storage item is split based on the code logic of the storage item to obtain the initial code.
In the embodiment of the present invention, a project repository exists in the initial design and development framework, each project constructed by the initial design and development framework is stored in the project repository, in the present solution, each project is named as a storage project, and the storage project can be split according to a logic of a code constructing the storage project.
In the embodiment of the present invention, the initial code is a code of a project developed in the design development framework, and the initial code may be stored in a data storage library of the initial design development framework in advance.
Referring to fig. 4, in the embodiment of the present invention, the storing the initial code to the specified directory of the blank item to obtain the item to be upgraded includes steps S2021 to S2022:
s2021, acquiring a storage interface of the appointed directory of the blank item;
s2022, importing the initial code into the specified directory of the blank item through the storage interface to obtain an item to be upgraded.
Further, the storage interface may be divided into four parts, including: the method comprises the steps of obtaining a storage interface through a Uniform Resource Identifier (URI) of the storage interface.
In the embodiment of the present invention, the storage interface is an interface for importing data into the blank item.
In the embodiment of the invention, the item to be upgraded is a blank item after the initial code is stored, and the codes in the item to be upgraded can be upgraded in a centralized manner after the initial code is stored in the blank item, so that the non-uniform upgrading of the codes is avoided.
And S3, acquiring a judgment result of whether the initial code can run under a preset upgrading framework.
In an embodiment of the present invention, the configuration of the initial code includes a connected interface, a called database, and the like.
In the embodiment of the present invention, the upgrade framework is a Spring Boot framework, wherein the upgrade framework is the new design and development framework in step S1. The Spring Boot framework is a brand-new framework designed by Pivotal team and used for simplifying the initial building and development process of new Spring application, and the Spring Boot framework is configured in a specific mode, so that developers do not need to define the configuration of the template.
And S4, judging whether the configuration of the initial code in the item to be upgraded needs to be converted according to the judgment result.
Furthermore, the initial code can be divided into a code which needs to be subjected to configuration conversion and a code which does not need to be subjected to configuration conversion by judging whether the configuration of the initial code needs to be converted or not, and only the code which needs to be subjected to configuration conversion is converted, so that the computing resource is saved.
And S5, if the configuration of the initial code in the project to be upgraded needs to be converted, transforming the initial code based on a preset verification rule to obtain an upgrade code.
In the embodiment of the invention, the upgrading code is the code which is applied to the upgrading framework after the initial code is converted.
Referring to fig. 5, in the embodiment of the present invention, transforming the initial code based on the preset verification rule to obtain the upgrade code includes steps S4011 to S4013:
s5011, obtaining a preset verification rule, wherein the verification rule comprises a single-row verification rule and a multi-row verification rule;
s5012, constructing a single-row validation rule queue and a multi-row validation rule queue respectively based on the single-row validation rule and the multi-row validation rule;
s5013, performing adaptive transformation on the initial code sequentially through the single-row validation rule queue and the multi-row validation rule queue to obtain the upgrade code.
In an embodiment of the present invention, the single-line validation rule is a validation rule having only one validation step, and the multi-line validation rule is a validation rule having a plurality of validation steps.
In an embodiment of the present invention, the single-row validation rule queue and the multi-row validation rule queue are task queues respectively constructed for single-row validation rules and multi-row validation.
In another embodiment of the present invention, if a new validation rule needs to be added to the upgrade frame, the validation rules are classified, and the validation rule is determined to be a single-line validation rule or a multi-line validation rule, and then the validation is directly added to the last bit of the validation queue of the corresponding rule, which is convenient for flexibly adding the validation rule.
Referring to fig. 6, in the embodiment of the present invention, after the initial code is adaptively transformed sequentially through the single-line validation rule queue and the multi-line validation rule queue to obtain the upgraded code, the method further includes steps S5021 to S5023:
s5021, respectively counting the number of the validation rules in the single-row validation rule queue and the multi-row validation rule queue;
s5022, gathering the number of the single-row validation rule queue and the validation rules of the multi-row validation rule queue to obtain the total number of the validation rules;
s5023, adding an annotation segment behind the upgrading code, and adding the sum verification rule number to the annotation segment to serve as the annotation of the upgrading code.
In the embodiment of the invention, the conversion of the code for a plurality of times can be preliminarily mastered by adding annotations to the upgrade code, and the difference between the upgrade code and the initial code is also reflected.
And S6, if the configuration of the initial code in the item to be upgraded does not need to be converted, directly taking the initial code as the upgrade code.
In the embodiment of the invention, if the configuration of the initial code does not need to be converted, the interface requirement, the function calling requirement and the like of the initial code all meet the upgrading framework, and the initial code can run under the upgrading framework to construct a new project.
And S7, constructing an upgrade project by using the preset upgrade framework based on the upgrade code file.
In the embodiment of the invention, the upgrade project is a project which can directly run under the preset upgrade framework, and the preset upgrade framework can be a Spring Boot framework.
In the embodiment of the invention, the upgrade project is constructed through the upgrade framework, which means that codes in the upgrade code file are converted from the original design-compliant development framework to the preset upgrade framework, that is, the codes in the upgrade code file are combined through the preset upgrade framework to construct the upgrade project.
In the embodiment of the invention, the upgrading project is constructed according to the upgrading code, the project under the original architecture is converted into the project under the upgrading architecture, and the application which is in accordance with the modern micro-service development mode can be constructed according to the upgrading project through the upgrading project, namely the application program under the Spring Boot framework is met.
Referring to fig. 7, in the embodiment of the present invention, the building an upgrade project by using the preset upgrade framework according to the upgrade code includes steps S7011 to S7012:
s7011, calling the upgrading framework, and inquiring code logic of the upgrading code through the upgrading framework;
s7012, packaging the upgrading code based on the code logic, and constructing the upgrading project.
In an embodiment of the present invention, the code logic is the code writing logic, and is configured to determine different uses of the upgrade code among different projects.
In the embodiment of the invention, a blank project is built based on a preset initial design development framework, an initial code is obtained from the initial design development framework and is stored to an appointed catalogue of the blank project to obtain a project to be upgraded, the purpose of obtaining the project from the original design development framework is realized, the preset upgrade framework is obtained, whether the configuration of the initial code in the project to be upgraded needs to be converted is judged based on whether the initial code can run under the upgrade framework, and if the configuration of the initial code in the project to be upgraded needs to be converted, the initial code is verified based on a preset verification rule to obtain an upgrade code; if the configuration of the initial code in the project to be upgraded does not need to be converted, the initial code is directly used as the upgrade code, the codes of the project under the original design and development framework are upgraded, and finally the upgrade project is constructed based on the upgrade code file. Therefore, the invention obtains the old codes from the original design and development framework, and upgrades the codes, so that the invention constructs the framework suitable for upgrading to realize the upgrading of the old project.
Fig. 8 is a schematic block diagram of a project upgrading apparatus based on a design development framework according to the present invention.
The project upgrading apparatus 100 based on the design development framework of the present invention can be installed in an electronic device. According to the realized functions, the project upgrading device based on the design development framework can comprise a project building module 101, a conversion judging module 102, a code upgrading module 103 and a project upgrading module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the project construction module 101 is configured to construct a blank project based on a preset initial design development framework, acquire an initial code from the initial design development framework, and store the initial code to a specified directory of the blank project to obtain a project to be upgraded;
a conversion judging module 102, configured to obtain a judgment result of whether the initial code can run in a preset upgrade framework, and judge whether the configuration of the initial code in the item to be upgraded needs to be converted according to the judgment result;
the code upgrading module 103 is configured to transform the initial code based on a preset verification rule to obtain an upgrade code if the configuration of the initial code in the item to be upgraded needs to be converted, and directly take the initial code as the upgrade code if the configuration of the initial code in the item to be upgraded does not need to be converted;
and the project upgrading module 104 is used for constructing an upgrading project by using the preset upgrading framework based on the upgrading code.
In detail, in the embodiment of the present invention, when the modules in the project upgrading apparatus 100 based on a design development framework are used, the same technical means as the project upgrading method based on a design development framework described in fig. 1 to fig. 7 are used, and the same technical effect can be produced, which is not described again here.
Fig. 9 is a schematic structural diagram of an electronic device for implementing a project upgrading method based on a design development framework according to the present invention.
The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may further include a computer program stored in the memory 11 and executable on the processor 10, such as a project upgrade program based on a design development framework.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules stored in the memory 11 (for example, executing a project upgrading program based on a design development framework, etc.), and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a project upgrading program based on a design development framework, but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are commonly used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Fig. 9 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 9 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The project upgrading program based on the design development framework stored in the memory 11 of the electronic device is a combination of a plurality of computer programs, and when running in the processor 10, can realize that:
building a blank project based on a preset initial design development framework;
acquiring an initial code from the initial design development framework, and storing the initial code to a specified directory of the blank project to obtain a project to be upgraded;
acquiring a judgment result of whether the initial code can run under a preset upgrading framework or not, and judging whether the configuration of the initial code in the project to be upgraded needs to be converted or not according to the judgment result;
if the configuration of the initial code in the project to be upgraded needs to be converted, transforming the initial code based on a preset verification rule to obtain an upgrade code;
if the configuration of the initial code in the project to be upgraded does not need to be converted, directly taking the initial code as an upgrading code;
and constructing an upgrading project by using the preset upgrading framework based on the upgrading code.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic diskette, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
building a blank project based on a preset initial design development framework;
acquiring an initial code from the initial design development framework, and storing the initial code to a specified directory of the blank project to obtain a project to be upgraded;
acquiring a judgment result of whether the initial code can run under a preset upgrading framework or not, and judging whether the configuration of the initial code in the project to be upgraded needs to be converted or not according to the judgment result;
if the configuration of the initial code in the project to be upgraded needs to be converted, transforming the initial code based on a preset verification rule to obtain an upgrade code;
if the configuration of the initial code in the project to be upgraded does not need to be converted, directly taking the initial code as an upgrading code;
and constructing an upgrading project by using the preset upgrading framework based on the upgrading code.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A project upgrading method based on a design development framework is characterized by comprising the following steps:
building a blank project based on a preset initial design development framework;
acquiring an initial code from the initial design development framework, and storing the initial code to a specified directory of the blank project to obtain a project to be upgraded;
acquiring a judgment result of whether the initial code can run under a preset upgrading framework or not, and judging whether the configuration of the initial code in the project to be upgraded needs to be converted or not according to the judgment result;
if the configuration of the initial code in the project to be upgraded needs to be converted, transforming the initial code based on a preset verification rule to obtain an upgrade code;
if the configuration of the initial code in the project to be upgraded does not need to be converted, directly taking the initial code as an upgrading code;
and constructing an upgrading project by using the preset upgrading framework based on the upgrading code.
2. The project upgrading method based on the design development framework, as claimed in claim 1, wherein the building of the blank project based on the preset initial design development framework includes:
applying for a project name and a project storage space based on the design development framework;
and selecting the item with the item name and the item storage space as a blank item.
3. The design development framework-based project upgrading method according to claim 1, wherein the storing the initial code to a specified directory of the blank project to obtain a project to be upgraded comprises:
acquiring a storage interface of the appointed directory of the blank item;
and importing the initial code into the specified directory of the blank item through the storage interface to obtain the item to be upgraded.
4. The design development framework-based project upgrading method according to claim 1, wherein transforming the initial code based on the preset validation rules to obtain an upgrade code comprises:
acquiring a preset verification rule, wherein the verification rule comprises a single-row verification rule and a multi-row verification rule;
constructing a single-line validation rule queue and a multi-line validation rule queue based on the single-line validation rule and the multi-line validation rule, respectively;
and performing adaptive transformation on the initial code sequentially through the single-row validation rule queue and the multi-row validation rule queue to obtain the upgrade code.
5. The design development framework-based project upgrading method according to claim 1, wherein the building of the upgrade project by using the preset upgrade framework based on the upgrade code comprises:
calling the upgrading framework, and inquiring the code logic of the upgrading code through the upgrading framework;
and packaging the upgrading code based on the code logic to construct the upgrading project.
6. The design development framework-based project upgrading method of claim 1, wherein the obtaining initial code from the initial design development framework comprises:
acquiring a project repository in the initial design development framework;
and acquiring a storage item from the item repository, and splitting the storage item based on the code logic of the storage item to obtain the initial code.
7. The design development framework-based project upgrade method according to claim 4, wherein after the initial code is adaptively transformed sequentially through the single-line validation rule queue and the multi-line validation rule queue, the method further comprises:
counting the number of validation rules in the single-row validation rule queue and the multi-row validation rule queue respectively;
collecting the number of the validation rules of the single-row validation rule queue and the multi-row validation rule queue to obtain the total number of the validation rules;
and adding an annotation segment after the upgrade code, and adding the sum verification rule number into the annotation segment to be used as the annotation of the upgrade code.
8. An apparatus for project upgrade based on a design development framework, the apparatus comprising:
the project construction module is used for constructing a blank project based on a preset initial design development framework, acquiring an initial code from the initial design development framework, and storing the initial code to a specified directory of the blank project to obtain a project to be upgraded;
the conversion judging module is used for obtaining a judging result of whether the initial code can run under a preset upgrading framework or not, and judging whether the configuration of the initial code in the project to be upgraded needs to be converted or not according to the judging result;
the code upgrading module is used for transforming the initial codes based on a preset verification rule to obtain upgrading codes if the configuration of the initial codes in the project to be upgraded needs to be converted, and directly taking the initial codes as the upgrading codes if the configuration of the initial codes in the project to be upgraded does not need to be converted;
and the project upgrading module is used for constructing an upgrading project by using the preset upgrading framework based on the upgrading code.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the design development framework based project upgrade method of any one of claims 1 to 7.
10. A computer-readable storage medium comprising a storage data area storing created data and a storage program area storing a computer program; wherein the computer program when executed by a processor implements a design development framework based project upgrade method according to any one of claims 1 to 7.
CN202210439877.5A 2022-04-25 2022-04-25 Project upgrading method, device, equipment and medium based on design development framework Pending CN114610359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210439877.5A CN114610359A (en) 2022-04-25 2022-04-25 Project upgrading method, device, equipment and medium based on design development framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210439877.5A CN114610359A (en) 2022-04-25 2022-04-25 Project upgrading method, device, equipment and medium based on design development framework

Publications (1)

Publication Number Publication Date
CN114610359A true CN114610359A (en) 2022-06-10

Family

ID=81868807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210439877.5A Pending CN114610359A (en) 2022-04-25 2022-04-25 Project upgrading method, device, equipment and medium based on design development framework

Country Status (1)

Country Link
CN (1) CN114610359A (en)

Similar Documents

Publication Publication Date Title
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN113342472A (en) Micro-service cluster creating method and device, electronic equipment and readable storage medium
CN115964307B (en) Automatic test method, device, equipment and medium for transaction data
CN111694844A (en) Enterprise operation data analysis method and device based on configuration algorithm and electronic equipment
CN113704665A (en) Dynamic service publishing method, device, electronic equipment and storage medium
CN114185895A (en) Data import and export method and device, electronic equipment and storage medium
CN115048111A (en) Code generation method, device, equipment and medium based on metadata
CN113434542B (en) Data relationship identification method and device, electronic equipment and storage medium
CN114185776A (en) Big data point burying method, device, equipment and medium for application program
CN114398282A (en) Test script generation method, device, equipment and storage medium
CN112328656B (en) Service query method, device, equipment and storage medium based on middle platform architecture
CN114860314B (en) Deployment upgrading method, device, equipment and medium based on database compatibility
CN114816371B (en) Message processing method, device, equipment and medium
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN114510400A (en) Task execution method and device, electronic equipment and storage medium
CN114610359A (en) Project upgrading method, device, equipment and medium based on design development framework
CN113918296A (en) Model training task scheduling execution method and device, electronic equipment and storage medium
CN112686759A (en) Account checking monitoring method, device, equipment and medium
CN112380820A (en) Automatic data backfilling method and device, electronic equipment and computer storage medium
CN114860349B (en) Data loading method, device, equipment and medium
CN112637280B (en) Data transmission method, device, electronic equipment and storage medium
CN114610340A (en) Project deployment method, device, equipment and storage medium
CN115934576A (en) Test case generation method, device, equipment and medium in transaction scene
CN114721744A (en) Interface modification evaluation method and device, electronic equipment and readable storage medium

Legal Events

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