CN113282349A - Configuration object processing method and device, electronic equipment and readable storage medium - Google Patents

Configuration object processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113282349A
CN113282349A CN202110577364.6A CN202110577364A CN113282349A CN 113282349 A CN113282349 A CN 113282349A CN 202110577364 A CN202110577364 A CN 202110577364A CN 113282349 A CN113282349 A CN 113282349A
Authority
CN
China
Prior art keywords
configuration
target
type
configuration object
processor
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
CN202110577364.6A
Other languages
Chinese (zh)
Inventor
张波清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Baiguoyuan Network Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baiguoyuan Network Technology Co Ltd filed Critical Guangzhou Baiguoyuan Network Technology Co Ltd
Priority to CN202110577364.6A priority Critical patent/CN113282349A/en
Publication of CN113282349A publication Critical patent/CN113282349A/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/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

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

Abstract

The disclosure provides a method and a device for processing a configuration object, an electronic device and a readable storage medium, wherein the method comprises the following steps: providing a configuration page for a user to create a target configuration object through the configuration page; responding to the operation of submitting the configuration object, and acquiring a target configuration object created by a user through the configuration page; acquiring a target type corresponding to the target configuration object; and storing the target configuration object to a specified position according to the target type. In this way, the configuration object can be dynamically updated or modified, and no application is required to stop the service during the updating or modifying of the configuration object.

Description

Configuration object processing method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a configuration object, an electronic device, and a readable storage medium.
Background
A configuration file is a computer file that may be configuration parameters and initial settings for some software applications.
In the existing software application development scenario, a user usually selects to store an application configuration file in a configuration center, and then dynamically add or modify the configuration file through the configuration center.
Specifically, in a scenario of modifying a configuration file, a user generally modifies the configuration file of a target application in a configuration center, and the configuration center sends a first notification that the configuration file is modified to an application server after the user completes modification; and the application server responds to the first notice, acquires the latest configuration file from the configuration center to replace the locally stored configuration file of the target application, and completes the modification of the configuration file of the target application in the application server.
In the new configuration file scene, a user adds a configuration file of a target application in a configuration center, and the configuration center sends a second notice of the new configuration file to the application server under the condition that the user adds the configuration file; and the application server responds to the second notice, acquires the configuration file of the target application from the configuration center, stores the configuration file locally and completes the addition of the configuration file of the target application in the application server.
However, when the configuration file is added or modified, the application server also needs the user to change and redeploy the code of the target application, which results in an increase in development cost. Moreover, in the process of changing or redeploying the code of the target application by the user, the application server also needs to stop the service, so that the target application cannot be normally used.
Disclosure of Invention
An object of the present disclosure is to provide a new technical solution for configuring processing of an object.
According to a first aspect of the present disclosure, there is provided a method for processing a configuration object, including:
providing a configuration page for a user to create a target configuration object through the configuration page; wherein, the configuration object is a configuration file or a configuration processor;
responding to the operation of submitting the configuration object, and acquiring a target configuration object created by a user through the configuration page;
acquiring a target type corresponding to the target configuration object;
and storing the target configuration object to a specified position according to the target type.
According to a second aspect of the present disclosure, there is provided a processing apparatus for configuring an object, comprising:
the page providing module is used for providing a configuration page so that a user can create a target configuration object through the configuration page; wherein, the configuration object is a configuration file or a configuration processor;
the object acquisition module is used for responding to the operation of submitting the configuration object and acquiring a target configuration object created by a user through the configuration page;
the type obtaining module is used for obtaining a target type corresponding to the target configuration object;
and the object storage module is used for storing the target configuration object to a specified position according to the target type.
According to a third aspect of the present disclosure, there is provided an electronic device comprising a processor and a memory for storing instructions for controlling the processor to perform the method according to the first aspect of the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to the first aspect of the present disclosure.
According to the embodiment of the disclosure, the configuration page for the user to create the target configuration object is provided in advance, the target configuration object created by the user through the configuration page and the target type corresponding to the target configuration object are obtained, and the target configuration object is stored to the specified position according to the target type, so that the configuration object can be dynamically updated or modified, and in the process of updating or modifying the configuration object, the application stop service is not needed.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 illustrates an overall architectural diagram of a processing system that configures objects of an embodiment of the present disclosure.
Fig. 2 shows a flowchart of a processing method of a configuration object of an embodiment of the present disclosure.
Fig. 3 shows a schematic diagram of a configuration file storage method of an embodiment of the present disclosure.
Fig. 4 shows a schematic diagram of a calling method of a configuration object according to an embodiment of the present disclosure.
Fig. 5 shows a block diagram of a processing device configuring an object of an embodiment of the present disclosure.
Fig. 6 shows a block diagram of an electronic device of an embodiment of the disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
< method examples >
In the present embodiment, a method for processing a configuration object is provided. The method is implemented by an electronic device. The electronic device may be an electronic product having a processor and a memory. For example, a desktop computer, a laptop computer, a mobile phone, a tablet computer, a computer cluster, etc.
FIG. 1 is a schematic diagram of the overall architecture of a processing system for configuring objects for performing the method of the present embodiment.
As shown in fig. 1, the processing system 1000 of the configuration object may include a presentation layer (web layer), a core layer (core layer), and a common layer (common layer), and an upper layer depends on a lower layer. I.e. the core layer depends on the generic layer and the presentation layer depends on the core layer.
The presentation layer is mainly used for interacting with a user for operation of the user, and can be provided with a configuration file controller, a configuration processor controller and an execution controller. The configuration file controller is used for managing a configuration file; the configuration processor controller is used for managing the configuration processor; the execution controller is used for triggering the execution of the configuration processor.
The core layer is mainly used for abstracting management and execution of configuration files and configuration processors, and the core layer can be provided with a loader and a configuration manager. The loader is used for providing the capability of performing addition, deletion, modification and check on the configuration file and the configuration processor, and specifically comprises a configuration file loader and a configuration processor loader; the configuration manager provides the ability to match and execute configuration files and configuration processors.
The generic layer mainly provides support of generic capabilities, and generic words can be provided with a Mapper (Mapper), a Spring environment context loading tool and a configuration processor class loading tool. The mapper is the core of Mybstis-plus and is used for providing a function of performing addition, deletion, modification and check on the general database; the Spring environment context loading tool encapsulates the Spring context, and can acquire the objects added into the Spring container through the type; the configuration processor class loading tool encapsulates the ability to load java classes and execute java methods.
The embodiment abstracts the core layer, and can be automatically expanded by a user according to an application scene or specific requirements. The loader relies on Mysql to manage the configuration files and the configuration processors, and the configuration manager relies on the loader to acquire all the configuration files and the configuration processors and then performs matching execution.
The data structure of the profile may be as shown in table 1 below, including ID, type, rule _ config, and description. Wherein the ID may be the only primary key of the configuration file; type may be the type of configuration file; rule _ config may be a json format configuration; the description may be a description of a configuration file.
TABLE 1
ID
type
rule_config
description
The data structure of the configuration processor may be as shown in Table 2 below, including ID, type, and source _ code. Wherein the ID may be the only primary key to configure the processor; type may be the type of the configuration processor; source _ code may be the source code that configures the processor.
TABLE 2
Figure BDA0003084811590000041
Figure BDA0003084811590000051
Methods that the loader is capable of executing may include get methods, add methods, remove methods, and find methods.
The acquisition method is used for acquiring the configuration object, the input of the method can be the type (type) of the configuration object, and the output can be the configuration character string of the configuration object.
The adding method is used for adding the configuration object, the input of the method can be the type (type) and/or the configuration value of the configuration object, and the output can be true or false indicating whether the adding is successful.
The delete method is used to delete a configuration object, and the input of the method may be the type (type) of the configuration object, and the output may be true or false indicating whether the deletion is successful.
The search method is used for searching configuration objects, the input of the method can have no parameters, and the output can represent Map objects of all configuration objects. The key of the Map object output by the lookup method may be a type (type) of the configuration object, and the value of the Map object may be a configuration value of the configuration object.
The methods involved by the configuration manager may include an invoke (invoke) method for invoking the configuration processor for execution. The input to the calling method may not include a specific parameter and the output may be a no-response result.
The processing logic of the calling method may include: obtaining Map objects representing all configuration files and configuration processors by a searching method of a loader; and acquiring a configuration file and a configuration processor matched with the target type from the Map object of the configuration processor through traversing the Map object, and triggering execution by reflecting the configuration file as a parameter of the configuration processor if the configuration file and the configuration processor are acquired.
The Spring environment context loading tool is used for acquiring the configuration object from the Spring container. The method involved in the Spring environment context loading tool includes a get software component model (getteam) method. The getPeeran method is used for acquiring other file objects from the Spring container through the names of the file objects, and further triggering other business logics. The input of the getPeeran method may be the name of the configuration object and the output may be the configuration object.
The configuration processor class loading tool is used to load java classes and execute java methods, as well as calling methods of the method classes for executing specific object methods. The methods involved in configuring the processor class loading tool include a class load (loadClass) method for loading objects. The input to the class loading method may be the code source code of the configuration processor and the output of the class loading method may be the bytecode object. The input of the calling method of the method class may include: the code source code of the processor is configured, and the configuration file, the output may be a result object.
The profile controller is the front-end controller of the rule profile. The method that the profile controller can perform may include a profile addition method (putConfig method). The input of the putConfig method may include a configuration request entity (including the type name, configuration value, and description of the configuration file), and the output may be true or false, indicating whether the configuration file addition is successful.
The configuration processor controller is a front-end controller of the rule configuration processor. The methods that the configuration handler controller may perform may include a configuration handler addition method (putConfigHandle method). The input of the putConfigHandle method may include a configuration request entity (including the type name and source code of the configuration processor), and the output may be true or false, indicating whether the addition of the configuration processor was successful.
The execution controller is used for manually triggering the rule execution. Methods that the execution controller may execute include calling methods (invoke methods). The input of the invoke method may not include specific parameters and the output may be a non-responsive result.
In one embodiment of the present disclosure, the system 1000 of the present embodiment may also rely on Spring, tool library and/or Mybatis-plus, etc. three-party library. For example, the WEB component of Spring may be used to provide interface access operations for the system 1000; the Fastjson component of the tool library may be used to provide parsing of json strings for the system 1000; the Groovy-all component of the tool library may be used to provide operations on bytecodes for the system 1000; in Mybatis-plus, a Mybatis-plus-generator component may be used to provide operations for the system 1000 to generate database access codes in reverse; the Mybatis-plus-boot-starter component may be used to provide support for database access for the system 1000.
The present disclosure provides a method for processing a configuration object, which may be performed by a processing system of the configuration object. In one example, the processing system for the configuration object may be the system 1000 shown in FIG. 1.
As shown in fig. 2, the processing method of the configuration object of the present embodiment may include the following steps S2100 to S2400.
In step S2100, a configuration page is provided for the user to create a target configuration object through the configuration page.
Wherein, the configuration object can be a configuration file of an application or a configuration processor. The configuration file may be a parameter value of a preset configuration parameter. The configuration processor is specifically logic code for parsing a configuration file.
In this embodiment, the configuration page may include a creation area of the configuration object, and the user may create the configuration file or configure the processor through the creation area.
Step S2200 is to obtain a target configuration object created by the user through the configuration page in response to the operation of submitting the configuration object.
In this embodiment, a submit button may be further provided in the configuration page, and the user may click the submit button to perform an operation of submitting the configuration object when the configuration object is created by the creation area.
The electronic device of this embodiment may acquire the configuration object created in the creation area as the target configuration object in response to the operation of submitting the configuration object.
Step S2300, acquiring a target type corresponding to the target configuration object.
In this embodiment, configuration objects of the same type may have a unique type, and configuration objects of different types may have the same type. The configuration objects with the same type and different types are associated with each other. That is, a type may correspond to an arbitrary type of configuration object, or a plurality of different types of configuration objects that are associated with each other.
For example, the configuration files and configuration processors of the same type may have an association relationship. And the configuration processor may be logic code for only parsing the configuration file having an association relationship therewith. That is, if the configuration file of the same type as the configuration processor is not stored in the designated location, the configuration processor will not execute, or execute with an error; correspondingly, if the configuration processor with the same type as the configuration file is not stored in the designated position, the configuration file cannot be executed or is executed with an error.
Specifically, the type in this embodiment may be composed of letters and/or numbers.
In an embodiment of the present disclosure, obtaining a target type corresponding to a target configuration object may include: providing the type of the configuration object stored at the specified position in the configuration page; and in response to the user selecting any type of operation, taking the selected type as the target type.
In this embodiment, the designated location may be a database of a relational database management system.
Specifically, a type selection box may be provided in the configuration page, the user clicks the type selection box, and the electronic device may pop up a type list in the configuration page, where the type list is provided with the type of the configuration object stored at the specified position.
In one example, the types in the type list may be in the same column, and the types may be in different rows for easy viewing by the user.
Further, the types in the type list may be sorted according to the storage time of the corresponding configuration object at the specified position, or may be sorted according to the specified order of the first number and/or letter of the type.
Still further, the user may click any type in the type list, that is, perform an operation of selecting the type, and the electronic device may set the type selected by the user as the target type.
By the method of this embodiment, the user selects an existing type as the type of the target configuration object, and the type may be used to subsequently update other configuration objects of the same type and the same type as the target configuration object stored at the designated location, or may be used to associate other configuration objects of the same type and the same type as the target configuration object stored at the designated location with the target configuration object.
In another embodiment of the present disclosure, obtaining the target type corresponding to the target configuration object may include: providing a type input box for inputting a type in a configuration page; and responding to the operation of setting the type for the target configuration object, and acquiring the type input by the user through the type input box as the target type corresponding to the target configuration object.
In this embodiment, the user may input the type of the target configuration object created by the configuration page in the type input box in advance before performing the operation of submitting the configuration object.
Further, the operation for setting the type for the target configuration object may be the same as the operation for submitting the configuration object, that is, may be the operation triggered by the user clicking a submit button in the configuration page.
By the method of the embodiment, the user sets the type of the target configuration object according to actual requirements, and the method can be used for adding the target configuration object at the specified position and subsequently creating other configuration objects which are different from and related to the type of the target configuration object based on the type.
And step S2400, storing the target configuration object to a specified position according to the target type.
In this embodiment, the designated location is a database of a relational database management system.
In one embodiment of the present disclosure, storing the target configuration object in the designated location according to the target type may include steps S2410 to S2430 as follows:
step S2410, detecting whether other configuration objects with the target type and the same type as the target configuration object are stored in the designated position, if so, executing step S2420; if not, step S2430 is executed.
For example, if the type of the target configuration object is a configuration file, it may be detected whether another configuration file having the target type is stored in the designated location. In the case where another configuration file having the target type is stored in the designated location, or in the case where another configuration file not having the target type is stored in the designated location, the configuration processor having the target type may be stored in the designated location, or the configuration processor having no target type may be stored in the designated location.
In the case where the type of the target configuration object is a configuration processor, it may be detected whether another configuration processor having the target type is stored in the designated location. In the case where another configuration processor having the target type is stored in the designated location, or in the case where another configuration processor not having the target type is stored in the designated location, the configuration file having the target type may be stored in the designated location, or the configuration file having the target type may not be stored in the designated location.
In step S2420, other configuration objects are updated according to the target configuration object.
Specifically, the other configuration objects are updated according to the target configuration object, and the other configuration objects at the designated position may be replaced with the target configuration object, that is, the other configuration objects at the designated position are deleted, and the target configuration object is stored at the designated position.
Step S2430, store the target configuration object in the designated location.
In the embodiment of the disclosure, a configuration page for a user to create a target configuration object is provided in advance, the target configuration object created by the user through the configuration page and a target type corresponding to the target configuration object are obtained, and the target configuration object is stored to a specified position according to the target type, so that the configuration object can be dynamically updated or modified, and in the process of updating or modifying the configuration object, service stopping of an application is not needed, and normal use of the application is not affected. In addition, the application development cost can be reduced.
In one example, the configuration object may be a configuration file, and as shown in fig. 3, may be a configuration page provided by a configuration file controller of the performance layer, and a configuration file created by a user through the configuration page is obtained. The configuration file controller may be a configuration file loader that provides the configuration file to the core layer, and the configuration file loader stores or updates the configuration file to a configuration file mapper of the common layer. Wherein the configuration file mapper may be a database for storing configuration files.
Specifically, the profile controller may be a profile loader that executes a profile addition method (putConfig method) to provide a profile to the core layer. The input of the putConfig method may include a configuration request entity (including a type name, a configuration value, and a description of a configuration file).
And under the condition that the configuration file is stored by the configuration file mapper of the general layer, returning a storage result to the configuration file loader of the core layer, and returning the storage result to the configuration file controller of the presentation layer by the configuration file loader of the core layer. The profile controller of the presentation layer may, upon receiving the stored result, present the stored result to the user for the user to know. The storage result may be a result indicating whether the storage of the configuration file is successful, for example, the storage result may be true if the storage of the configuration file is successful, or false if the storage of the configuration file is failed.
In one embodiment of the present disclosure, the method may further include:
and correspondingly displaying the target type and the target configuration object in the configuration page.
In particular, a presentation list may be provided in the configuration page, and the presentation list may have at least two columns, corresponding to the type and the configuration object of the type. Any configuration object may be the same row in the presentation list as its type.
For example, the presentation list may have three columns, corresponding to type, configuration file, and configuration processor, respectively. Configuration files and configuration processors having the same type, and the type being located on the same row of the presentation list.
After the target configuration object is stored to the designated location according to the target type, the target type and the target configuration object may be correspondingly displayed in the display list.
In one example, the configuration objects contain more contents, and if the configuration objects are completely displayed in the display list, other configuration objects may not be displayed, or the configuration objects may not be completely displayed in the display list, so that part of the contents, names, or brief descriptions of the configuration objects may be displayed in the display list, and a display button is provided at a corresponding position. Specifically, at least one configuration object (at least including the target configuration object) in the presentation list may have a corresponding presentation button at a presentation position.
And under the condition that the user needs to check the complete content of the target configuration object, clicking a display button corresponding to the target configuration object. And the electronic equipment responds to the operation of clicking the display button corresponding to the target configuration object, opens the display window and provides the complete content of the target configuration object through the display window.
Further, the method may further include:
responding to a call request aiming at a target configuration object corresponding to a target type, and acquiring the configuration object corresponding to the target type, wherein the configuration object corresponding to the target type can comprise a target configuration file and a target configuration processor; and executing the target configuration processor according to the target configuration file.
In one embodiment of the present disclosure, which may be a configuration page, a call button corresponding to each type is provided in the presentation list. And triggering a calling request aiming at the target configuration object corresponding to the target type by clicking the calling button corresponding to the target type by the user.
In another embodiment of the present disclosure, the user may click or double click on a row corresponding to the target type in the presentation list to trigger a call request for the target configuration object corresponding to the target type.
In yet another embodiment of the present disclosure, the user may right click on a row corresponding to the target type in the presentation list, and the electronic device provides a drop-down list including the call option in response to the right click operation. The user may click the call option to trigger a call request for the target configuration object corresponding to the target type.
The type of the configuration object may be included in the data structure of the configuration object, so that the corresponding target configuration object, including the target configuration file and the target configuration processor, may be found according to the target type.
In one example, the configuration file may include a preset parameter value of the configuration parameter, the target configuration processor includes the preset configuration parameter, and the target configuration processor is executed according to the target configuration file, or the target configuration processor may be executed by substituting the parameter value of the configuration parameter in the target configuration file into the target configuration processor.
As shown in fig. 4, the execution controller, which may be a presentation layer, executes a calling method (invoke method) in response to a call request for a target configuration object corresponding to a target type, calls a configuration manager of the core layer, executes a search method by the configuration manager for a configuration file loader of the core layer, searches for a target configuration file corresponding to the target type, and returns a configuration file search result to the configuration manager by the configuration file loader; and executing a search method by the configuration manager aiming at the core layer configuration processor loader, searching a target configuration processor corresponding to the target representation, and returning a configuration file search result to the configuration manager by the configuration processor loader. The configuration manager recalls the configuration processor class loading tool of the general layer, the configuration processor class loading tool executes the calling method of the method class, executes the class loading method, loads the java class of the target configuration processor, executes the calling method of the method class, executes the java method of the target configuration processor according to the target configuration file, returns the execution result to the configuration manager of the core layer after the execution is finished, and returns the execution result to the execution controller of the presentation layer. And the execution controller of the presentation layer shows the execution result to the user for the user to know. The execution result may be a result indicating whether the target configuration processor successfully executes based on the target configuration file, for example, the execution result may be true if the target configuration processor successfully executes based on the target configuration file, or false if the target configuration processor fails to execute based on the target configuration file.
< apparatus embodiment >
In the present embodiment, a processing apparatus 5000 that configures an object is provided, as shown in fig. 5, including a page providing module 5100, an object obtaining module 5200, a type obtaining module 5300, and an object storing module 5400.
The page providing module 5100 is configured to provide a configuration page for a user to create a target configuration object through the configuration page; the configuration object is a configuration file or a configuration processor.
The object obtaining module 5200 is configured to, in response to an operation of submitting a configuration object, obtain a target configuration object created by a user through a configuration page.
The type obtaining module 5300 is configured to obtain a target type corresponding to the target configuration object.
The object storage module 5400 is used to store the target configuration object to a designated location according to the target type.
It will be appreciated by those skilled in the art that the processing means 5000 for configuring the object may be implemented in various ways. The processing means 5000 to configure the object may be implemented, for example, by instructing a configuration processor. For example, the instructions may be stored in ROM and read from ROM into a programmable device to implement the processing means 5000 that configures the object when the device is started. For example, the processing means 5000 of the configuration object may be solidified into a dedicated device (e.g., ASIC). The processing means 5000 of the configuration object may be divided into units independent of each other or may be implemented by combining them together. The processing means 5000 to configure the object may be implemented by one of the various implementations described above, or may be implemented by a combination of two or more of the various implementations described above.
In this embodiment, the processing device 5000 of the configuration object may have various implementation forms, for example, the processing device 5000 of the configuration object may be any functional module running in a software product or an application program providing the processing service of the configuration object, or a peripheral insert, a plug-in, a patch, etc. of the software product or the application program, and may also be the software product or the application program itself.
< electronic apparatus >
In this embodiment, an electronic device 6000 is also provided.
In one example, as shown in fig. 6, the electronic device 6000 may include:
a memory 6100 and a processor 6200, the memory 6100 configured to store executable instructions; the instructions are used to control the processor 6200 to perform the processing method of the configuration object of the foregoing embodiment.
In this embodiment, the electronic device 6000 can be any electronic product having the memory 6100 and the processor 6200, such as a mobile phone, a tablet computer, a palmtop computer, a desktop computer, a notebook computer, a workstation, a game console, a computer cluster, and the like.
The embodiments of the present disclosure have been described above with reference to the drawings, and a configuration page for a user to create a target configuration object is provided in advance, the target configuration object created by the user through the configuration page and a target type corresponding to the target configuration object are obtained, and the target configuration object is stored in a specified position according to the target type, so that the configuration object can be dynamically updated or modified, and in the process of updating or modifying the configuration object, an application stop service is not required.
< readable storage Medium >
In this embodiment, there is also provided a readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing a method of processing a configuration object as in any of the embodiments of the present disclosure.

Claims (10)

1. A method for processing a configuration object, comprising:
providing a configuration page for a user to create a target configuration object through the configuration page; wherein, the configuration object is a configuration file or a configuration processor;
responding to the operation of submitting the configuration object, and acquiring a target configuration object created by a user through the configuration page;
acquiring a target type corresponding to the target configuration object;
and storing the target configuration object to a specified position according to the target type.
2. The method of claim 1, wherein storing the target configuration object in the specified location according to the target type comprises:
detecting whether other configuration objects which have the target type and are the same as the target configuration object in type are stored in the specified position;
when other configuration objects which have the target types and are the same as the target configuration objects in types are stored in the specified positions, updating the other configuration objects according to the target configuration objects;
and storing the target configuration object to the specified position when other configuration objects which have the target type and are the same as the target configuration object in type are not stored in the specified position.
3. The method according to claim 1, wherein the obtaining the target type corresponding to the target configuration object comprises:
providing the type of the configuration object stored at the specified position in the configuration page;
and in response to the operation of selecting any type by the user, taking the selected any type as the target type.
4. The method according to claim 1, wherein the obtaining the target type corresponding to the target configuration object comprises:
providing a type input box for inputting a type in the configuration page;
and responding to the operation of setting the type for the target configuration object, and acquiring the type input by the user through the type input box as the target type corresponding to the target configuration object.
5. The method of claim 1, further comprising:
and correspondingly displaying the target type and the target configuration object in the configuration page.
6. The method of claim 5, further comprising:
responding to a calling request aiming at a target configuration object corresponding to the target type, and acquiring the configuration object corresponding to the target type, wherein the configuration object corresponding to the target type comprises a target configuration file and a target configuration processor;
and executing the target configuration processor according to the target configuration file.
7. The method of claim 1, the specified location being a database of a relational database management system.
8. A processing apparatus for configuring an object, comprising:
the page providing module is used for providing a configuration page so that a user can create a target configuration object through the configuration page; wherein, the configuration object is a configuration file or a configuration processor;
the object acquisition module is used for responding to the operation of submitting the configuration object and acquiring a target configuration object created by a user through the configuration page;
the type obtaining module is used for obtaining a target type corresponding to the target configuration object;
and the object storage module is used for storing the target configuration object to a specified position according to the target type.
9. An electronic device comprising a processor and a memory, the memory to store instructions to control the processor to perform the method of any one of claims 1-7.
10. A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110577364.6A 2021-05-26 2021-05-26 Configuration object processing method and device, electronic equipment and readable storage medium Pending CN113282349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110577364.6A CN113282349A (en) 2021-05-26 2021-05-26 Configuration object processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110577364.6A CN113282349A (en) 2021-05-26 2021-05-26 Configuration object processing method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113282349A true CN113282349A (en) 2021-08-20

Family

ID=77281692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110577364.6A Pending CN113282349A (en) 2021-05-26 2021-05-26 Configuration object processing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113282349A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959135A (en) * 2016-04-28 2016-09-21 烽火通信科技股份有限公司 PTN equipment single-disk configuration system and method based on common business model
US20170163485A1 (en) * 2015-12-07 2017-06-08 Alcatel-Lucent Canada Inc. Full configuration management of multi-domain multi-vendor network equipments using golden configurations and snapshots
CN107967159A (en) * 2017-11-22 2018-04-27 腾讯科技(深圳)有限公司 The method and server of a kind of profileapplied
CN108132815A (en) * 2017-12-25 2018-06-08 郑州云海信息技术有限公司 A kind of method, apparatus and storage medium of configuration file dynamic load
CN109360092A (en) * 2018-08-31 2019-02-19 中国平安人寿保险股份有限公司 Transaction node configuration method, device and computer equipment
CN109408132A (en) * 2017-08-15 2019-03-01 腾讯科技(深圳)有限公司 A kind of configuration file processing method and server, user terminal, storage medium
CN110569085A (en) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 configuration file loading method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170163485A1 (en) * 2015-12-07 2017-06-08 Alcatel-Lucent Canada Inc. Full configuration management of multi-domain multi-vendor network equipments using golden configurations and snapshots
CN105959135A (en) * 2016-04-28 2016-09-21 烽火通信科技股份有限公司 PTN equipment single-disk configuration system and method based on common business model
CN109408132A (en) * 2017-08-15 2019-03-01 腾讯科技(深圳)有限公司 A kind of configuration file processing method and server, user terminal, storage medium
CN107967159A (en) * 2017-11-22 2018-04-27 腾讯科技(深圳)有限公司 The method and server of a kind of profileapplied
CN108132815A (en) * 2017-12-25 2018-06-08 郑州云海信息技术有限公司 A kind of method, apparatus and storage medium of configuration file dynamic load
CN109360092A (en) * 2018-08-31 2019-02-19 中国平安人寿保险股份有限公司 Transaction node configuration method, device and computer equipment
CN110569085A (en) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 configuration file loading method and system

Similar Documents

Publication Publication Date Title
CN110244984B (en) Application processing method, device, storage medium and computer equipment
US8214631B2 (en) Host build and rebuild system and method
US9652220B2 (en) Zero down-time deployment of new application versions
GB2503546A (en) Document suggestion by user action association and threshold comparison
CN106055368B (en) application updating method and device
CN107958365B (en) Material information changing method and device, storage medium and electronic equipment
US9372905B2 (en) Subroutines in a graphical query builder
US20170337560A1 (en) System for providing and employing recommended resolution paths
US20230130527A1 (en) Dynamic review of software updates after pull requests
JP2006048645A (en) Method and system for embedding context information in document
CN111274263A (en) Visual database change statement generation method and device and storage medium
US20220229638A1 (en) Content development device
CN111338689A (en) File calling method, device and equipment
CN110941779A (en) Page loading method and device, storage medium and electronic equipment
US20090044004A1 (en) Method for operating computer and operating system thereof
CN113282349A (en) Configuration object processing method and device, electronic equipment and readable storage medium
US8225328B2 (en) Access to a target object with desired functionality
CN113377458B (en) Plug-in management method and device, electronic equipment and storage medium
EP4030280A1 (en) Seamless lifecycle stability for extensible software features
US20130332411A1 (en) Business rules manager
KR20220095136A (en) Method for providing information based on expected result value and computing device using the same
CN113094367A (en) Data processing method and device and server
CN112463304A (en) Rollback method and apparatus for container mirror image, computer device, and storage medium
CN112433783A (en) Configuration method and related equipment
CN113138763A (en) Page construction method, device, equipment and computer readable storage medium

Legal Events

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