CN115525253A - Method, device, computer equipment and storage medium for realizing customized demand - Google Patents
Method, device, computer equipment and storage medium for realizing customized demand Download PDFInfo
- Publication number
- CN115525253A CN115525253A CN202211131033.0A CN202211131033A CN115525253A CN 115525253 A CN115525253 A CN 115525253A CN 202211131033 A CN202211131033 A CN 202211131033A CN 115525253 A CN115525253 A CN 115525253A
- Authority
- CN
- China
- Prior art keywords
- library
- target
- code
- customized
- codes
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/10—Requirements analysis; Specification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a method for realizing customized requirements, a device for realizing customized requirements, computer equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a code of a target sample library and a code of a target customized library; introducing a preset development tool into the codes of the target standard product library, and respectively loading the codes of the target standard product library and the codes of the target customized library by using a class loader when the preset development tool is started; judging whether the loaded codes of the target standard library and the target customized library simultaneously meet the requirement of a class depending on injection in an Spr i ng container in a preset development tool; and if so, loading the class of the target customized code by using the Spr i ng container so as to realize the requirement development of the code of the target customized library. Therefore, the product research and development and project delivery can be separately controlled, and the customized requirement can be realized without modifying the product source code in the delivery process.
Description
Technical Field
The present application relates to the field of software engineering development technologies, and in particular, to a method for implementing customized requirements, an apparatus for implementing customized requirements, a computer device, and a computer-readable storage medium.
Background
During the delivery of the enterprise product, the customer usually has a customized demand. For example, the participation in and out of the interface needs to be modified, or a part of functions needs to be added to a certain client system and a page. The traditional method for realizing the customized requirements is usually to modify on the spot of a customer so as to realize the customized requirements, so that the risk of exposing product codes exists. In addition, the traditional method for realizing customized requirements excessively depends on modifying source codes to complete the secondary-opening requirements, and sometimes needs to flow back to a production and research team for development, so that the method is not beneficial to the production and research team to focus on product standardization construction, and also influences delivery efficiency.
In view of the above, the present invention provides a method, an apparatus, a computer device and a computer-readable storage medium for implementing customized requirements, which can implement separate management and control of product development and project delivery, and can implement customized requirements without modifying product source codes during the delivery process.
Disclosure of Invention
The application provides a method for realizing customized requirements, a device for realizing customized requirements, computer equipment and a computer readable storage medium, which can realize separate management and control of product research and development and project delivery, and can realize customized requirements without modifying product source codes in the delivery process.
In a first aspect, the present application provides a method for implementing customized requirements, the method comprising:
acquiring a code of a target sample library and a code of a target customized library;
introducing the codes of the target standard product library into a preset development tool, and respectively loading the codes of the target standard product library and the codes of the target customized library by using a class loader when the preset development tool is started;
judging whether the loaded code of the target standard library and the loaded code of the target customized library simultaneously meet the injection-dependent class in a Spring container in a preset development tool;
if so, loading the class of the target customized code by using the Spring container so as to realize the requirement development of the code of the target customized library.
In a second aspect, the present application further provides an apparatus for fulfilling customized requirements, the apparatus comprising:
the acquisition module is used for acquiring codes of the target standard product library and codes of the target customized library;
the processing module is used for introducing the codes of the target standard product library into a preset development tool, and respectively loading the codes of the target standard product library and the codes of the target customized library by using a class loader when the preset development tool is started;
the judging module is used for judging whether the loaded code of the target standard library and the loaded code of the target customized library simultaneously meet the class depending on injection in a Spring container in a preset development tool;
and the customization requirement realizing module is used for loading the class of the target customization codes by utilizing a Spring container so as to realize the requirement development of the codes of the target customization library.
In a third aspect, the present application further provides a computer device, including:
a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is used for implementing the steps of the method for implementing the customized requirements according to any one of the embodiments provided in the present application by running the program stored in the memory.
In a fourth aspect, the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor is caused to implement the steps of the method for implementing customized requirements according to any one of the embodiments of the present application.
According to the method for realizing the customized requirement, the device for realizing the customized requirement, the computer equipment and the computer readable storage medium, the code of the target standard library is introduced into the preset development tool, and the class of the target customized code is loaded through the Spring container in the preset development tool, so that the requirement development of the code of the target customized library is realized. The product development and project delivery in the whole delivery process can be separately controlled, and the product source code does not need to be modified.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view of a scenario of a method for implementing customized requirements according to an embodiment of the present application;
FIG. 2 is a schematic diagram of steps of a method for implementing customized requirements according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another scenario for implementing a customized requirement according to an embodiment of the present application;
FIG. 4 is a schematic view of a scenario of another method for implementing customized requirements according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for implementing customized requirements according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a computer device provided by an embodiment of the present application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution order may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that, for the convenience of clearly describing the technical solutions of the embodiments of the present application, the words "first", "second", and the like are used in the embodiments of the present application to distinguish the same items or similar items with basically the same functions and actions. For example, the first recognition model and the second recognition model are only used for distinguishing different callback functions, and the sequence of the callback functions is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
As shown in fig. 1, fig. 1 is a schematic view of a scenario of a method for implementing customized requirements according to an embodiment of the present application. The method for realizing customized requirements provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The application environment includes a terminal device 110 and a server 120, wherein the terminal device 110 can communicate with the server 120 through a network. Specifically, the server 120 obtains a code of a target standard product library and a code of a target customized library, the server 120 introduces the code of the target standard product library into a preset development tool, and when the preset development tool is started, a class loader is used to load the code of the target standard product library and the code of the target customized library respectively, and whether the loaded code of the target standard product library and the loaded code of the target customized library simultaneously satisfy a class depending on injection in a Spring container in the preset development tool is judged; if the loaded code of the target standard library and the loaded code of the target customized library simultaneously meet the requirement of the class depending on injection in the Spring container in the preset development tool, the class of the target customized code is loaded by using the Spring container so as to realize the requirement development of the code of the target customized library, and the result is sent to the terminal device 110. The server 120 may be an independent server, or may be a cloud server that provides basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, web service, cloud communication, middleware service, domain name service, security service, content Delivery Network (CDN), and big data and artificial intelligence platform. The terminal device 110 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating steps of a method for implementing customized requirements according to an embodiment of the present application. The method can be applied to computer equipment and is used for realizing customized requirements. As shown in fig. 2, the method for implementing customized requirements includes steps S11 to S14.
S11: and acquiring the code of the target standard product library and the code of the target customized library.
The computer device can obtain the code of the target standard library and the code of the target customized library.
It should be noted that the code of the target customized code library needs to be run together with the code of the target standard library to realize the service of providing the customized requirement for the customer. The target standard library refers to a code library of a production and research team, and the content delivered to the client is a standard divided by micro-services, namely, a core code of the production and research team, and does not contain characteristics or codes according to the requirements of the client. The target customized library refers to a customized code library of a delivery team, and the delivered content is a customized module divided by micro services, namely the content developed according to the requirements of customers.
Optionally, after obtaining the code of the target standard library, the computer device may further obtain constraint conditions of the target standard library interface and the target customized library interface, respectively, and adjust the target standard library interface and the target customized library interface based on the constraint conditions, so that the computer device can provide services through the interfaces.
It should be noted that, the constraint conditions in the present application are not limited, and for example, java of the target standard library interface and the target customized library interface may be adjusted to Java version 8, and Spring Boot may be adjusted to a version of Spring Boot 2.2.5 or more.
Optionally, in order to save development resources, a part of the code of the target standard library may be further obtained, where the customization rate of the part of the code of the target standard library is higher from a functional level, and the computer device may operate on the part of the code to meet a requirement of customization. It should be noted that the customization rate is the percentage of the total products and services that the enterprise wants to provide according to the needs of the customers.
Specifically, the codes of the target standard library can be subjected to full-scan analysis from a functional level, and which functional points belong to functions with higher customization rates are evaluated. Furthermore, the codes of the evaluated target standard library can be combed according to a micro service structure and/or a code structure, so as to further determine whether the codes of the target standard library with higher customization rate can be split and reconstructed, and whether the part of codes can meet the requirements of isolating change, isolating focus, code multiplexing and coping with system complexity. In this way, the code of the target standard product library with higher customization rate can be obtained, and the computer system can apply the code of the part to realize the requirement of customization.
In this embodiment of the application, the computer device may obtain the code of the target standard library and the code of the target customized library, and constrain the interfaces of the code of the target standard library and the code of the target customized library, so that the computer device can provide services through the interfaces of the code of the target standard library and the code of the target customized library, respectively, and further achieve the requirement of customization.
S12: and introducing the codes of the target standard product library into a preset development tool, and respectively loading the codes of the target standard product library and the codes of the target customized library by using a class loader when the preset development tool is started.
The computer equipment can introduce the codes of the target standard product library into a preset development tool, and uses a class loader to start loading the codes of the target standard product library and the codes of the target customized library in the preset development tool respectively, so that the codes of the target standard product library have the capability of loading the codes of the customized code library.
It should be noted that, the present application is not limited to the preset development tool, and may be, for example, devOps-Starter, and the present application will be described with an example that the preset development tool is DevOps-Starter.
DevOps-Starter is a deployment tool that can automatically execute the settings for the entire persistent integration (CI) and persistent delivery (CD) of an application to Azure. It can start from existing code and also start with one of the example applications provided. Further, the DevOps-Starter can quickly deploy the application to different Azure services, such as virtual machines, application services, azure Kubernets Services (AKS), azure SQL database, and Azure Service Fabric.
Further, the class loader is a tool for loading all classes, and may be divided into a custom class loader and a boot class loader, which is not limited in this embodiment of the present application.
Optionally, in order to introduce the code of the target standard product library into the preset development tool, after obtaining the constraint conditions of the target standard product library interface and the interface of the target customized library, the method may further include: and acquiring the standard condition of the target standard library interface, and adjusting the target standard library interface based on the standard condition.
It should be noted that, the present application is not limited to the above specific specification conditions, for example, the specification conditions may be: the code design of the target standard product library needs to meet the characteristics of high cohesion and loose coupling or the code of the target standard product library needs to meet the design principles of SOLID and the like. Further, the computer device may decouple the code of the critical path by design patterns, or add an intermediate layer of decoupling to meet the specification conditions described above.
Further, the computer device may also alter the item object type in the code of the target standard library. It should be noted that, the present application is not limited to the item object type, for example, the item object type may be pom. Therefore, the code for introducing the preset development tool into the target standard product library is realized.
Optionally, after the code in the target standard product library is introduced into the preset development tool, the method for implementing customization proposed by the present application may further include:
acquiring running demand information of codes of a target standard product library; and adjusting the starting type information and the configuration information of the preset development tool based on the operation requirement information.
Specifically, after the code of the target standard product library is introduced into the preset development tool, the operation requirement information of the code in the target standard product library can be acquired, and the start-up type information and the configuration information of the preset development tool are adjusted based on the operation requirement information, so that the preset development tool can normally operate in the code in the target standard product library.
It can be understood that the application does not limit the operation requirement information of the code in the target standard library. For example, the computer device may replace the Spring Application in the Boot class with a Spring Boot DevOps Application and add the required annotations. Meanwhile, corresponding configuration is added to the configuration file in the Nacos or the yml so as to adjust the starting type information and the configuration information of the preset development tool, and further the preset development tool can normally run in the codes in the target standard library.
In this embodiment of the application, the computer device may introduce the code of the target standard product library into the preset development tool, and load the code of the target standard product library and the code of the target customized library respectively by using the class loader when the preset development tool is started. Therefore, the code of the target standard product library has the capability of loading the code of the customized code library, and the customized requirement is further realized.
S13: and judging whether the loaded code of the target standard library and the loaded code of the target customized library simultaneously meet the class depending on injection in a Spring container in a preset development tool.
S14: and loading the class of the target customized code by using the Spring container so as to realize the requirement development of the code of the target customized library.
After the class loader is used for loading the codes of the target standard library and the target customized library, the computer equipment can also judge whether the loaded codes of the target standard library and the loaded codes of the target customized library simultaneously meet the class depending on injection in the Spring container in the preset development tool, and if the loaded codes of the target standard library and the loaded codes of the target customized library simultaneously meet the class depending on injection in the Spring container in the preset development tool, the class of the target customized codes can be loaded by using the Spring container, so that the original logic change is completed through the customized codes under the condition that the codes of the standard library are not modified, and the customized requirement is also met.
Optionally, the computer device may first obtain a class dependent on injection in a Spring container in the development tool, and then determine whether a matching degree between the code of the loaded target standard library and the class dependent on injection and a matching degree between the code of the loaded target customized library and the class dependent on injection exceed a preset threshold. Therefore, whether the loaded codes of the target standard library and the target customized library meet the requirement of injection-dependent classes in the Spring container in the preset development tool or not can be judged.
It should be noted that, the preset threshold is not limited in the present application, for example, the preset threshold may be 90%, and when the matching degree between the code of the loaded target object library and the injection-dependent class and the matching degree between the code of the loaded target customized library and the injection-dependent class exceed 90%, it is described that the code of the loaded target object library and the code of the loaded target customized library simultaneously satisfy the injection-dependent class in the Spring container in the preset development tool.
For example, please refer to fig. 3, fig. 3 is a schematic view of another scenario of a method for implementing customized requirements according to an embodiment of the present application. As shown in fig. 3, the target object library and the target customized library belong to the same application and provide services to the outside together. Because the code of the target object library and the code of the target object library belong to two different Jar packages, the starter adjusts the Spring boot Jar Laucher Classloader, so that the code of the target object library has the capability of loading the customized code. Further, after the class of the target customized code is loaded in the Spring container, the Spring container brings the target object library and the related bean instance of the target customized code into the Spring container, and performs the life cycle management of the bean, so as to form a standard Spring Application or Spring boot Application, and then provides service support of Restful HTTP, RPC or other protocols to the outside, thereby realizing the Application of the customized requirement.
For example, when performing the adaptation and replacement of Redis, if the original standard library redi is in the standalone mode, the standard library redi can be changed to the cluster mode through the following steps. Specifically, if the loaded code of the target standard library and the loaded code of the target customized library simultaneously satisfy the class depending on injection in the Spring container in the preset development tool, the preset development tool can create a redisConfig class, and implement a redisConnectionFactory method and a redisTemplateNeew method in the class, based on the above configuration change, the preset development tool can replace the redisTemplateNeew method in the customized library for the redisTemplate method in the original standard library and replace the redisConnectionFactory method in the original standard in the customized library for the redisConnectionFactory method in the original standard in the starting stage, thereby implementing the change to the cluster mode.
Illustratively, when a change ReDisCient is made, the replacement of lettute to jedis may be accomplished by the following steps. Specifically, if whether the loaded code of the target standard library and the loaded code of the target customized library meet the class depending on injection in the Spring container in the preset development tool or not, the preset development tool can create a jedconfig class, and implement a redisconnectionfactor method and a redistesteenew method in the class, based on the above configuration change, the preset development tool can replace the redistesteenew method in the customized library with the redistesteenew method in the original target standard library in the starting stage, and replace the redisconnectionfactor method in the customized library with the redisconnectionfactor method in the original standard, thereby implementing the replacement of the space with jedis.
According to the method for realizing the customized requirements, the codes of the target standard library and the codes of the target customized library can be obtained, the preset development tool is introduced into the codes of the target standard library, and the types of the codes of the target customized library are loaded through the Spring containers in the preset development tool, so that the original logic change is completed through the codes of the customized library under the condition that the codes of the target standard library are not modified, and the customized requirements are also realized. The product development and project delivery in the whole delivery process can be separately controlled, and the product source code does not need to be modified.
Referring to fig. 4, fig. 4 is a schematic view of a scenario of another method for implementing customized requirements according to an embodiment of the present application. As shown in fig. 4, when the computer device implements the customized requirement, the Spring container serves the outside by the application of the standard article composed of its upper level, i.e., various Connection factories (Connection facilities), templates (e.g., redisboard, jdbcTemplate, kafka Template), various services encapsulated by the user, and the Controller or the eg interface, from various profile classes at the bottom layer, e.g., properties and configuration shown in the figure.
Furthermore, after the Devops-Starter is used for loading the code of the customized library, when Spring is in an initialization stage, if the code of the standard library and the code of the customized library simultaneously have a class meeting the requirement of injection, only the class of the code of the customized library needs to be loaded, and the change of the original logic can be completed through the customized code under the condition of not modifying the code of the standard library.
It should be noted that the customized library may be a component in the upper drawing, a template bean packaged by components of different levels, or a set with all components in some cases.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an apparatus for implementing customized requirements according to an embodiment of the present application. The apparatus for implementing customized requirements can be configured in a server, and configured to execute the method for implementing customized requirements.
As shown in fig. 5, the apparatus 100 for implementing customized requirements includes an obtaining module 101, a processing module 102, a determining module 103, and a module 104 for implementing customized requirements. The acquisition module 101 is configured to acquire a code of a target standard library and a code of a target customized library; the processing module 102 is configured to introduce the codes of the target standard product library into a preset development tool, and respectively load the codes of the target standard product library and the codes of the target customized library by using a class loader when the preset development tool is started; the judging module 103 is configured to judge whether the loaded code of the target standard library and the loaded code of the target customized library simultaneously satisfy a class depending on injection in a Spring container in a preset development tool; the implementation customization requirement module 104 is configured to load the class of the code of the target customization library by using a Spring container, so as to implement requirement development of the code of the target customization library.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the apparatus, the modules and the units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The methods, apparatus, and computer program products of the present application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
For example, the method and apparatus described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic diagram of a computer device according to an embodiment of the present disclosure. The computer device 600 may be a server.
As shown in fig. 6, the computer device 600 comprises a processor 601, a memory 602 and a network interface (not shown) connected by a system bus, wherein the memory 602 may comprise a volatile storage medium, a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any of the risk assessment methods.
The processor 601 is used to provide computing and control capabilities, supporting the operation of the overall computer device 600.
The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which when executed by the processor, causes the processor 601 to perform any of the risk assessment methods.
The network interface is used for network communication, such as sending assigned tasks and the like. Those skilled in the art will appreciate that the configuration of the computer apparatus is merely a block diagram of a portion of the configuration associated with aspects of the present application and is not intended to limit the computer apparatus to which aspects of the present application may be applied, and that a particular computer apparatus may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that Processor 601 may be a Central Processing Unit (CPU), and that the Processor may be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In some embodiments, the processor 601 is configured to run the computer program stored in the memory 602 to implement the following steps: acquiring a code of a target standard library and a code of a target customized library; introducing a preset development tool into the codes of the target standard product library, and respectively loading the codes of the target standard product library and the codes of the target customized library by using a class loader when the preset development tool is started; judging whether the loaded codes of the target standard library and the target customized library simultaneously meet the class depending on injection in a Spring container in a preset development tool; and if so, loading the class of the target customized code by using the Spring container so as to realize the demand development of the code of the target customized library.
In some embodiments, the processor 601 is further configured to alter the project object model in the code of the target standard library, so as to introduce the preset development tool in the code of the target standard library.
In some embodiments, the processor 601 is further configured to obtain the running requirement information of the code of the target standard library; and adjusting the starting type information and the configuration file information of the preset development tool based on the operation requirement information.
In some embodiments, the processor 601 is further configured to obtain injection-dependent classes in a Spring container in the preset development tool; and judging whether the matching degree of the code of the loaded target standard library and the depended injection class and the matching degree of the code of the loaded target customized library and the depended injection class exceed a preset threshold value or not.
In some embodiments, the processor 601 is further configured to obtain constraints of the target standard library interface and the target customized library interface respectively; and adjusting the target standard product library interface and the target customized library interface based on the constraint condition.
In some embodiments, the processor 601 is further configured to obtain a specification condition of the target standard library interface; and adjusting the target standard library interface based on the specification condition.
In some embodiments, the processor 601 is further configured to obtain a micro service component with a higher customization rate in the target standard library; and performing carding operation on the micro service components with higher customization rates and the corresponding code structures thereof.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed, the method for implementing customized requirements provided in the embodiments of the present application is implemented.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
Further, the computer-readable 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.
The invention relates to a novel application mode of computer technologies such as storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like of a block chain language model. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A method of fulfilling customized requirements, the method comprising:
acquiring a code of a target standard library and a code of a target customized library;
introducing the codes of the target standard product library into a preset development tool, and respectively loading the codes of the target standard product library and the codes of the target customized library by using a class loader when the preset development tool is started;
judging whether the loaded code of the target standard library and the loaded code of the target customized library simultaneously meet the class depending on injection in a Spring container in the preset development tool;
and if so, loading the class of the code of the target customized library by using the Spring container so as to realize the requirement development of the code of the target customized library.
2. The method for realizing customized requirements according to claim 1, wherein the step of introducing the code of the target standard product library into a preset development tool comprises:
and changing the project object model in the code of the target standard product library so as to introduce the preset development tool into the code of the target standard product library.
3. The method for realizing customized requirements according to claim 1, wherein after the step of introducing a preset development tool into the code of the target standard library, the method comprises the following steps:
acquiring running demand information of codes of the target sample library;
and adjusting the starting type information and the configuration file information of the preset development tool based on the operation requirement information.
4. The method according to claim 1, wherein the determining whether the code of the loaded target standard library and the code of the loaded target customized library simultaneously satisfy the injection-dependent class in a Spring container in a preset development tool comprises:
acquiring injection-dependent classes in a Spring container in the preset development tool;
and judging whether the matching degree of the code of the loaded target standard library and the depended injection class and the matching degree of the code of the loaded target customized library and the depended injection class exceed a preset threshold value or not.
5. The method for realizing customized requirements according to claim 1, wherein after obtaining the code of the target standard library and the code of the target customized library, the method further comprises:
respectively acquiring constraint conditions of the target standard library interface and the target customized library interface;
and adjusting the target standard library interface and the target customized library interface based on the constraint condition.
6. The method for realizing customized requirements according to claim 5, wherein before the obtaining the constraints of the target standard library interface and the target customized library interface respectively, the method comprises:
acquiring a standard condition of the target sample library interface;
and adjusting the target standard library interface based on the specification condition.
7. The method for realizing customized requirements according to claim 6, wherein the target standard library comprises a plurality of micro service components, and the obtaining of the specification condition of the interface of the target standard library comprises:
acquiring a micro service component with a higher customization rate in the target standard product library;
and combing the micro service components with higher customization rates and the corresponding code structures thereof.
8. An apparatus for fulfilling customized requirements, the apparatus comprising:
the acquisition module is used for acquiring codes of the target standard product library and codes of the target customized library;
the processing module is used for introducing a preset development tool into the codes of the target standard product library, and respectively loading the codes of the target standard product library and the codes of the target customized library by using a class loader when the preset development tool is started;
the judging module is used for judging whether the loaded code of the target standard library and the loaded code of the target customized library simultaneously meet the class depending on injection in a Spring container in a preset development tool;
and the customization requirement realizing module is used for loading the class of the target customization codes by utilizing a Spring container so as to realize the requirement development of the codes of the target customization library.
9. A computer device, characterized in that the computer device comprises:
a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is configured to implement the steps of the method of fulfilling customized requirements according to any one of claims 1-7 by running a program stored in the memory.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the steps of the method of fulfilling customized requirements according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211131033.0A CN115525253A (en) | 2022-09-16 | 2022-09-16 | Method, device, computer equipment and storage medium for realizing customized demand |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211131033.0A CN115525253A (en) | 2022-09-16 | 2022-09-16 | Method, device, computer equipment and storage medium for realizing customized demand |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115525253A true CN115525253A (en) | 2022-12-27 |
Family
ID=84698427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211131033.0A Pending CN115525253A (en) | 2022-09-16 | 2022-09-16 | Method, device, computer equipment and storage medium for realizing customized demand |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115525253A (en) |
-
2022
- 2022-09-16 CN CN202211131033.0A patent/CN115525253A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104252342B (en) | Embedded application implementation method and device capable of configuring parameters | |
CN105094799A (en) | Hybrid applications operating between on-premise and cloud platforms | |
CN112488855B (en) | Business verification method and device based on rule template | |
WO2021022713A1 (en) | Distributed module update method, device, and storage medium | |
US20090125886A1 (en) | Internal test and manipulation of an application | |
CN108038665B (en) | Business rule management method, device, equipment and computer readable storage medium | |
US10802801B1 (en) | Grand unified processor | |
CN111858727A (en) | Multi-data-source data export system and method based on template configuration | |
CN110007980A (en) | The implementation method and device at multi-services end | |
US20130275960A1 (en) | Validation of current states of provisioned software products in a cloud environment | |
CN110764752A (en) | System and method for realizing graphical service arrangement of Restful service based on micro-service architecture | |
CN114217887A (en) | Micro-service arranging method, micro-service executing method, micro-service arranging device and micro-service executing server | |
Nguyen et al. | A feature-based framework for developing and provisioning customizable web services | |
CN116233283B (en) | Dynamic expansion and hot plug method of equipment communication protocol | |
CN110262782A (en) | The interface comparison method and device of software systems | |
US9258187B2 (en) | System and method for optimizing and digitally correcting errors on a computer system | |
CN112564979A (en) | Execution method and device for construction task, computer equipment and storage medium | |
CN115525253A (en) | Method, device, computer equipment and storage medium for realizing customized demand | |
CN116755719A (en) | Data processing method, device and data processing system of application component | |
CN115758424A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN114706787A (en) | Service test method, service test device, equipment and storage medium | |
CN114860202A (en) | Project operation method, device, server and storage medium | |
CN112667441A (en) | Service module scheduling method, system and storage medium based on fault-tolerant function | |
CN110209427B (en) | Application system, starting method thereof, electronic device and storage medium | |
CN117076318A (en) | Method, device, equipment and storage medium for repairing bug |
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 |