CN115480842A - Secondary development service method and device for product application, electronic equipment and storage medium - Google Patents

Secondary development service method and device for product application, electronic equipment and storage medium Download PDF

Info

Publication number
CN115480842A
CN115480842A CN202211241560.7A CN202211241560A CN115480842A CN 115480842 A CN115480842 A CN 115480842A CN 202211241560 A CN202211241560 A CN 202211241560A CN 115480842 A CN115480842 A CN 115480842A
Authority
CN
China
Prior art keywords
bean
product
customized
secondary development
application
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
CN202211241560.7A
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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202211241560.7A priority Critical patent/CN115480842A/en
Publication of CN115480842A publication Critical patent/CN115480842A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a data analysis technology, and discloses a product application secondary development service method, which comprises the following steps: acquiring all the customized beans according to the secondary development request; scanning all beans in the application code to obtain all product beans; acquiring a loading sequence of the product bean in the application code to obtain a corresponding loading sequence number; sequentially comparing each product bean with the customized bean according to the loading sequence number, and marking the priority of the product bean or the customized bean according to the comparison result; when a service request of a product application is acquired, loading all beans with priority sequence marks based on a preset container generation strategy to assemble a generated container so as to respond to the service request by the container. The invention also relates to a blockchain technique, and the customized bean can be stored in a blockchain node. The invention also provides a device, equipment and medium for secondary development service of product application. The invention can improve the convenience of secondary development service of product application.

Description

Secondary development service method and device for product application, electronic equipment and storage medium
Technical Field
The invention relates to a data analysis technology, in particular to a product application secondary development service method, a product application secondary development service device, electronic equipment and a storage medium.
Background
After the enterprise products are standardized, the products are sold to the outside, and in the process of making implementation delivery, customers still have customized requirements. Such as modification of the input and output parameters of the interface, the need to interface with a client system, and the need to add new functions to a page, the variety of such requirements is varied. Therefore, secondary development services need to be applied to products in order to meet the needs of customers.
However, the existing secondary development service of the product application often needs to modify the source code of the product, which results in poor convenience of the secondary development service of the product application.
Disclosure of Invention
The invention provides a method and a device for secondary development service of product application, electronic equipment and a storage medium, and mainly aims to improve the convenience of the secondary development service of the product application.
Acquiring an application code and a secondary development request of a product application, and acquiring all customized beans according to the secondary development request;
scanning all beans in the application code to obtain all product beans;
acquiring the loading sequence of the product bean in the application code to obtain a corresponding loading sequence number;
sequentially comparing each product bean with the customized bean according to the loading sequence number, and marking the product bean or the customized bean with a priority sequence according to a comparison result;
when a service request of the product application is obtained, loading all beans marked by the priority sequence based on a preset container generation strategy to assemble a generated container so as to respond to the service request by the container.
Optionally, the sequentially comparing each product bean and the customized bean according to the loading sequence number and marking the product bean or the customized bean according to the comparison result by using a priority order includes:
comparing the product bean with each customized bean to judge whether the customized bean is consistent with the product bean in dependence relationship;
when the dependency relationship between the customized bean and the product bean is consistent, the customized bean with the dependency relationship consistent with the product bean is subjected to priority sequence marking by using the loading sequence number of the product bean;
and when the dependency relationship between the customized bean and the product bean is not consistent, the product bean is subjected to priority order marking by using the loading sequence number of the product bean.
Optionally, the loading all the beans with priority order labels based on the preset container generation policy to assemble a generated container to respond to the service request by the container includes:
loading the application code to launch the product application;
and when the product application is started successfully, sequentially loading the beans marked by the priority order according to the marked priority order and assembling to generate a corresponding container, wherein the container responds to the service request.
Optionally, the obtaining all the customized beans according to the secondary development request includes:
extracting a client requirement label in the secondary development request;
acquiring a function label of each bean code in a preset bean code library;
performing label consistency screening on all the functional labels by using the customer demand labels to obtain target functional labels;
and determining bean codes corresponding to all the target function labels as the customized beans.
Optionally, the performing label consistency screening on all the functional labels by using the customer requirement label to obtain a target functional label includes:
converting the customer demand labels into vectors to obtain customer demand vectors;
converting the functional label into a vector to obtain a functional vector;
calculating the vector similarity of the customer demand vector and the function vector;
determining a function vector corresponding to the vector similarity greater than a preset similarity threshold value as a target function vector;
and determining the function label corresponding to the target function vector as a target function label.
Optionally, the converting the customer requirement label into a vector to obtain a customer requirement vector includes:
converting each character in the customer requirement label into a vector to obtain a corresponding character vector;
combining all the character vectors according to the sequence of the corresponding characters in the customer requirement label to obtain a customer requirement matrix;
and performing dimension compression on the customer demand matrix to obtain a customer demand vector with preset vector dimensions.
In order to solve the above problem, the present invention further provides a product application secondary development service device, including:
the code scanning module is used for acquiring application codes and secondary development requests of product applications and acquiring all customized beans according to the secondary development requests; scanning all beans in the application code to obtain all product beans;
the priority marking module is used for acquiring the loading sequence of the product bean in the application code to obtain a corresponding loading serial number; sequentially comparing each product bean with the customized bean according to the loading sequence number, and marking the product bean or the customized bean with a priority sequence according to a comparison result;
and the service response module is used for loading all beans with priority sequence marks based on a preset container generation strategy to assemble a generated container so as to respond the service request by the container when the service request of the product application is acquired.
Optionally, the sequentially comparing each product bean and the customized bean according to the loading sequence number and marking the product bean or the customized bean according to the comparison result by using a priority order includes:
comparing the product bean with each customized bean to judge whether the customized bean is consistent with the product bean in dependence relationship;
when the dependency relationship between the customized bean and the product bean is consistent, marking the priority sequence of the customized bean consistent with the dependency relationship of the product bean by using the loading serial number of the product bean;
and when the dependency relationship between the customized bean and the product bean is not consistent, marking the priority sequence of the product bean by using the loading sequence number of the product bean.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one computer program; and
and the processor executes the computer program stored in the memory to realize the product application secondary development service method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the product application secondary development service method described above.
According to the embodiment of the invention, each product bean and the customized bean are sequentially subjected to dependency relationship comparison according to the loading serial number, and the product bean or the customized bean is subjected to priority order marking according to a comparison result; and when the service request of the product application is obtained, loading all beans with priority sequence marks based on a preset container generation strategy to assemble and generate a container so as to respond the service request by the container. The customized beans with consistent dependency relations are used for replacing the corresponding product beans for loading and assembling, so that the application responds to new requirements of clients on the premise of not changing product application codes, and the convenience of product application secondary development services is improved.
Drawings
Fig. 1 is a schematic flow chart of a method for secondary development service of product application according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a product application secondary development service apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an internal structure of an electronic device for implementing a secondary development service method for product application according to an embodiment of the present invention;
the implementation, functional features and advantages of the present invention will be further described 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 invention provides a secondary development service method for product application. The execution subject of the product application secondary development service method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the product application secondary development service method may be executed by software or hardware installed in a terminal device or a server device, and the software may be a block chain platform. The server includes but is not limited to: the system comprises a single server, a server cluster, a cloud server or a cloud server cluster, and the like, wherein the server can be an independent server, and can also be a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content Delivery Network (CDN), big data, an artificial intelligence platform and the like.
Referring to fig. 1, which is a schematic flow diagram of a product application secondary development service method according to an embodiment of the present invention, in an embodiment of the present invention, the product application secondary development service method includes:
s1, acquiring an application code and a secondary development request of a product application, and acquiring all customized beans according to the secondary development request;
in the embodiment of the invention, the product application is a web application constructed based on a spring framework, and the application code is a source code of the product application.
Further, in the embodiment of the present invention, the secondary development request is a request for performing secondary development on the product application based on new customer requirements. In the embodiment of the invention, when a customer puts forward a new requirement on the function of the product, the original product cannot meet the requirement of the customer, so that secondary development needs to be carried out on product application, and the customized bean is a constructed code package of all bean codes for realizing the new requirement of the customer.
In detail, in the embodiment of the present invention, acquiring all customized beans according to the secondary development request includes:
extracting a client requirement label in the secondary development request;
acquiring a function label of each bean code in a preset bean code library;
performing label consistency screening on all the functional labels by using the customer requirement labels to obtain target functional labels;
and determining bean codes corresponding to all the target function labels as the customized beans.
Specifically, in the embodiment of the present invention, performing label consistency screening on all the functional labels by using the customer requirement labels to obtain target functional labels includes:
and determining the function label identical to the customer requirement label as the target function label.
In another embodiment of the present invention, the tag consistency screening is performed on all the functional tags by using the customer requirement tags, so as to obtain target functional tags, including:
converting the customer demand labels into vectors to obtain customer demand vectors;
converting the functional label into a vector to obtain a functional vector;
calculating the vector similarity of the customer demand vector and the function vector;
the embodiment of the invention can calculate the vector similarity between the customer demand vector and the function vector by using similarity algorithms such as Euclidean distance, cosine similarity and the like.
Determining a function vector corresponding to the vector similarity greater than a preset similarity threshold value as a target function vector;
and determining the function label corresponding to the target function vector as a target function label.
Further, in the embodiment of the present invention, converting the customer requirement label into a vector to obtain a customer requirement vector, includes:
converting each character in the customer requirement label into a vector to obtain a corresponding character vector;
in the embodiment of the present invention, the encoding module of a vector transformation algorithm (e.g., one-hot algorithm, etc.) or a deep learning model (e.g., bert model, transform model, etc.) may be utilized to transform the characters into vectors.
Combining all the character vectors according to the sequence of the corresponding characters in the customer requirement label to obtain a customer requirement matrix;
for example: the client requirement label is 'share', wherein the character vector corresponding to the character 'score' is
Figure BDA0003884975310000061
The character vector corresponding to the character "enjoy" is
Figure BDA0003884975310000062
Then the corresponding customer demand matrix is
Figure BDA0003884975310000063
And carrying out dimension compression on the customer demand matrix to obtain a customer demand vector with preset vector dimensions.
In the embodiment of the invention, the customer demand matrix can be subjected to dimension compression by using pooling algorithms such as average pooling or maximum pooling.
In the embodiment of the present invention, a method for converting the functional tag into a vector is similar to a method for converting the customer requirement tag into a vector, and is not described herein again.
In another embodiment of the present invention, acquiring all customized beans according to the secondary development request includes:
extracting a code address in the secondary development request;
in the embodiment of the invention, the code address is a pre-written URL address of bean code meeting new requirements of a client.
And accessing the code address to obtain all files stored in the storage position corresponding to the code address, so as to obtain the customized bean.
In another embodiment of the invention, the customized bean can be stored in a block chain node, and the data taking efficiency is improved by using the characteristic of high throughput of the block chain node.
S2, scanning all beans in the application code to obtain all product beans;
in the embodiment of the present invention, scanning all beans in the application code to obtain a product bean, includes:
acquiring all code package paths in a class loader in the application code;
and accessing each code packet path to obtain the code packets stored in the storage positions corresponding to the code packet paths to obtain all the product beans.
S4, acquiring a loading sequence of the product bean in the application code to obtain a corresponding loading sequence number;
in the embodiment of the present invention, the loading sequence number is used to represent a sequence of call loading of the corresponding product bean in the application code, and the embodiment of the present invention does not limit a specific expression form of the loading sequence number, for example: the loading serial numbers can be numbers 1, 2, 3 and 4 \8230, and can also be texts first, second, third and fourth \8230.
Specifically, in the embodiment of the present invention, the loading order is determined according to the sequence of the code packet path corresponding to the product bean in the application code.
S5, sequentially comparing each product bean with each customized bean according to the loading sequence number, and marking the product bean or the customized bean with a priority sequence according to a comparison result;
in the embodiment of the present invention, the step S5 includes:
comparing the product bean with each customized bean to judge whether the customized bean is consistent with the product bean in dependence relationship;
specifically, in the embodiment of the present invention, it may be determined whether the dependency relationship between the customized bean and the product bean is consistent by determining whether the type or the annotation of the customized bean and the product bean is consistent.
When the dependency relationship between the customized bean and the product bean is consistent, the customized bean with the dependency relationship consistent with the product bean is subjected to priority sequence marking by using the loading sequence number of the product bean;
and when the dependency relationship between the customized bean and the product bean is not consistent, marking the priority sequence of the product bean by using the loading sequence number of the product bean.
For example: the loading sequence number of the product bean is 1, and the priority sequence of the corresponding mark is also 1.
S6, when the service request of the product application is obtained, loading the beans with all priority sequence marks based on a preset container generation strategy to assemble and generate a container so that the container responds to the service request.
In the embodiment of the invention, the service request is a request for loading the product application to perform service.
In detail, in the embodiment of the present invention, loading all beans with priority order labels based on a preset container generation policy to assemble a generated container so that the container responds to the service request, includes:
loading the application code to launch the product application;
and when the product application is started successfully, sequentially loading the beans marked by the priority order according to the marked priority order and assembling to generate a corresponding container, wherein the container responds to the service request.
In the embodiment of the invention, the bean can be assembled by utilizing the DevOps-Starter-based technology.
Fig. 2 is a functional block diagram of the secondary development service device for product application according to the present invention.
The product application secondary development service device 100 can be installed in an electronic device. According to the implemented functions, the product application secondary development service device may include a code scanning module 101, a priority marking module 102, and a service response module 103, which may also be referred to as a unit, and refers to a series of computer program segments that can be executed by a processor of an electronic device and can perform fixed functions, and are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the code scanning module 101 is used for acquiring application codes and secondary development requests of product applications, and acquiring all customized beans according to the secondary development requests; scanning all beans in the application code to obtain all product beans;
the priority marking module 102 is configured to obtain a loading order of the product bean in the application code to obtain a corresponding loading sequence number; sequentially comparing each product bean with the customized bean according to the loading sequence number, and marking the product bean or the customized bean with a priority sequence according to a comparison result;
the service response module 103 is configured to, when a service request of the product application is obtained, load all beans with priority order labels based on a preset container generation policy to assemble a generated container so as to respond to the service request by the container.
In detail, when the modules in the product application secondary development service device 100 according to the embodiment of the present invention are used, the same technical means as the product application secondary development service method described in fig. 1 above are adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 3 is a schematic structural diagram of an electronic device for implementing a secondary development service method for product application 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, such as a product application secondary development service program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, 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 product application secondary development service program, etc., but also to temporarily store data that has been output or is to be output.
The processor 10 may be formed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be formed of a plurality of integrated circuits packaged with the same function or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the 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 (e.g., product application secondary development service programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The communication bus 12 may be a PerIPheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus.
Fig. 3 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 3 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 such as charge management, discharge management, and power consumption management are implemented through the power management device. The power source may also include any component of one or more dc or ac power sources, recharging devices, power failure classification circuits, 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.
Optionally, the communication interface 13 may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further include a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally, a standard wired interface and 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.
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 product application secondary development service program 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:
acquiring an application code and a secondary development request of a product application, and acquiring all customized beans according to the secondary development request;
scanning all beans in the application code to obtain all product beans;
acquiring the loading sequence of the product bean in the application code to obtain a corresponding loading sequence number;
sequentially comparing each product bean with the customized bean according to the loading sequence number, and marking the product bean or the customized bean with a priority sequence according to a comparison result;
when a service request of the product application is obtained, loading all beans marked by the priority sequence based on a preset container generation strategy to assemble a generated container so as to respond to the service request by the container.
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 separate product, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM).
Embodiments of the present invention may also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program may implement:
acquiring an application code and a secondary development request of a product application, and acquiring all customized beans according to the secondary development request;
scanning all beans in the application code to obtain all product beans;
acquiring the loading sequence of the product bean in the application code to obtain a corresponding loading sequence number;
sequentially comparing each product bean with the customized bean according to the loading sequence number, and marking the product bean or the customized bean with a priority sequence according to a comparison result;
when a service request of the product application is obtained, loading all beans marked by the priority sequence based on a preset container generation strategy to assemble a generated container so as to respond to the service request by the container.
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
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 position, or may be distributed on multiple 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.
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.
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.
Furthermore, it will be obvious that the term "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 product application secondary development service method is characterized by comprising the following steps:
acquiring an application code and a secondary development request of a product application, and acquiring all customized beans according to the secondary development request;
scanning all beans in the application code to obtain all product beans;
acquiring the loading sequence of the product bean in the application code to obtain a corresponding loading sequence number;
sequentially comparing each product bean with the customized bean according to the loading sequence number, and marking the product bean or the customized bean with a priority sequence according to a comparison result;
when a service request of the product application is obtained, loading all beans marked by the priority sequence based on a preset container generation strategy to assemble a generated container so as to respond to the service request by the container.
2. The method for secondary development service of product application according to claim 1, wherein the step of comparing the dependency relationship between each product bean and the customized bean in sequence according to the loading sequence number and marking the priority sequence of the product bean or the customized bean according to the comparison result comprises:
comparing the product bean with each customized bean to judge whether the customized bean is consistent with the product bean in dependence relationship;
when the dependency relationship between the customized bean and the product bean is consistent, marking the priority sequence of the customized bean consistent with the dependency relationship of the product bean by using the loading serial number of the product bean;
and when the dependency relationship between the customized bean and the product bean is not consistent, the product bean is subjected to priority order marking by using the loading sequence number of the product bean.
3. The product application secondary development service method of claim 1, wherein the loading all the beans with priority order labels based on the preset container generation policy to assemble the generated container to respond to the service request by the container comprises:
loading the application code to launch the product application;
and when the product application is started successfully, sequentially loading beans marked by the priority order according to the marked priority order and assembling to generate a corresponding container, wherein the container responds to the service request.
4. The product application secondary development service method of claim 3, wherein the obtaining all customized beans according to the secondary development request comprises:
extracting a client requirement label in the secondary development request;
acquiring a function label of each bean code in a preset bean code library;
performing label consistency screening on all the functional labels by using the customer requirement labels to obtain target functional labels;
and determining bean codes corresponding to all the target function labels as the customized beans.
5. The product application secondary development service method of claim 4, wherein the obtaining of the target function label by performing label consistency screening on all the function labels by using the customer requirement label comprises:
converting the customer demand labels into vectors to obtain customer demand vectors;
converting the functional label into a vector to obtain a functional vector;
calculating the vector similarity of the customer demand vector and the function vector;
determining a function vector corresponding to the vector similarity greater than a preset similarity threshold as a target function vector;
and determining the function label corresponding to the target function vector as a target function label.
6. The product application secondary development service method of claim 5, wherein the converting the customer demand label into a vector to obtain a customer demand vector comprises:
converting each character in the customer requirement label into a vector to obtain a corresponding character vector;
combining all the character vectors according to the sequence of the corresponding characters in the customer requirement label to obtain a customer requirement matrix;
and carrying out dimension compression on the customer demand matrix to obtain a customer demand vector with preset vector dimensions.
7. A product application secondary development service device is characterized by comprising:
the code scanning module is used for acquiring application codes and secondary development requests of product applications and acquiring all customized beans according to the secondary development requests; scanning all beans in the application code to obtain all product beans;
the priority marking module is used for acquiring the loading sequence of the product bean in the application code to obtain a corresponding loading serial number; sequentially comparing each product bean with the customized bean according to the loading sequence number, and marking the product bean or the customized bean with a priority sequence according to a comparison result;
and the service response module is used for loading all beans with priority sequence marks based on a preset container generation strategy to assemble and generate a container so as to respond the service request by the container when the service request of the product application is acquired.
8. The apparatus of claim 7, wherein the comparing each product bean and the customized bean in turn according to the loading sequence number and marking the product bean or the customized bean according to the comparison result in a priority order comprises:
comparing the product bean with each customized bean to judge whether the customized bean is consistent with the product bean in dependence relationship;
when the dependency relationship between the customized bean and the product bean is consistent, marking the priority sequence of the customized bean consistent with the dependency relationship of the product bean by using the loading serial number of the product bean;
and when the dependency relationship between the customized bean and the product bean is not consistent, marking the priority sequence of the product bean by using the loading sequence number of the product bean.
9. An electronic device, characterized in that the electronic device comprises:
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, the computer program being executable by the at least one processor to enable the at least one processor to perform the product application secondary development service method of any of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the product application secondary development service method according to any one of claims 1 to 6.
CN202211241560.7A 2022-10-11 2022-10-11 Secondary development service method and device for product application, electronic equipment and storage medium Pending CN115480842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211241560.7A CN115480842A (en) 2022-10-11 2022-10-11 Secondary development service method and device for product application, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211241560.7A CN115480842A (en) 2022-10-11 2022-10-11 Secondary development service method and device for product application, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115480842A true CN115480842A (en) 2022-12-16

Family

ID=84394419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211241560.7A Pending CN115480842A (en) 2022-10-11 2022-10-11 Secondary development service method and device for product application, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115480842A (en)

Similar Documents

Publication Publication Date Title
CN114979120B (en) Data uploading method, device, equipment and storage medium
CN114491047A (en) Multi-label text classification method and device, electronic equipment and storage medium
CN114708461A (en) Multi-modal learning model-based classification method, device, equipment and storage medium
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN114913371A (en) Multitask learning model training method and device, electronic equipment and storage medium
CN115982454A (en) User portrait based questionnaire pushing method, device, equipment and storage medium
CN115016754A (en) Method and device for synchronously displaying pages among devices, electronic device and medium
CN115496166A (en) Multitasking method and device, electronic equipment and storage medium
CN115687384A (en) UUID (user identifier) identification generation method, device, equipment and storage medium
CN114185588A (en) Incremental package generation method, device, equipment and storage medium
CN115480842A (en) Secondary development service method and device for product application, electronic equipment and storage medium
CN114186540A (en) Mail content intelligent filling method and device, electronic equipment and storage medium
CN113918305A (en) Node scheduling method and device, electronic equipment and readable storage medium
CN112667244A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN113657076B (en) Page operation record table generation method and device, electronic equipment and storage medium
CN115204158B (en) Data isolation application method and device, electronic equipment and storage medium
CN113452785B (en) Service access method and device based on offline resources, electronic equipment and medium
CN115174698B (en) Market data decoding method, device, equipment and medium based on table entry index
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN115174555A (en) File transmission method and device, electronic equipment and storage medium
CN114942855A (en) Interface calling method and device, electronic equipment and storage medium
CN114640666A (en) File sharing and downloading method, electronic equipment and readable storage medium
CN114218894A (en) Data conversion method and device, electronic equipment and storage medium
CN114595153A (en) Video generation method, device, equipment and storage medium based on automatic test

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