Configuration attribute checking method and device
By detecting and matching configuration properties in the system configuration file and using custom icons to mark mismatch configuration properties, the problem of time-consuming search for configuration properties by R&D personnel in different operating environments is solved, and R&D and maintenance efficiency is improved.
Patent Information
- Application Number
- CN202311415404.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-27
- Publication Date
- 2025-04-29
AI Technical Summary
R&D personnel need to process a large number of system configuration files in different operating environments, which makes it longer to find problematic configuration properties and low R&D and maintenance efficiency.
Provides a method and device for checking configuration properties, by detecting system configuration files, determining the configuration properties it contains, and matching with the referenced attribute configuration files. In the event of mismatch, mark the configuration properties in the system configuration file and quickly mark the verification results of the configuration properties using custom icons.
It realizes the matching results of configuration attributes quickly and accurately marks out, which facilitates the determination of configuration attributes that need to be adjusted and improves the R&D efficiency and maintenance efficiency of business processes.
Smart Images

Figure CN119902965A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a configuration attribute verification method and device. Background Art
[0002] Using system configuration files can more flexibly configure the configuration properties required during system operation. In order to facilitate system development, maintenance and operation, corresponding system configuration files are usually set in different operating environments. For example, three system configuration files are set to configure the configuration properties in the development environment, test environment, and production environment respectively. Usually, problems in system configuration files can only be discovered when the system is running, for example, configuration properties are repeatedly configured or a certain configuration property is missing. R&D personnel need to solve the problems in the system configuration files in a timely manner to ensure the normal operation of the system.
[0003] In the process of implementing the present invention, the inventors found that the prior art has at least the following problems:
[0004] R&D personnel need to spend a lot of time looking for problematic configuration properties, which results in low R&D and maintenance efficiency. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a configuration attribute verification method and device, which can quickly and accurately mark the configuration attribute verification result, thereby improving the research and development efficiency and maintenance efficiency of the business process.
[0006] To achieve the above object, according to a first aspect of an embodiment of the present invention, a method for checking configuration attributes is provided, comprising:
[0007] In response to detecting that the system configuration file is opened, determining configuration attributes included in the system configuration file;
[0008] Determine the attribute configuration file referenced by the system configuration file, and match the configuration attribute with the attribute configuration file;
[0009] In the event that the configuration attribute does not match the attribute configuration file, the configuration attribute in the system configuration file is marked.
[0010] Optionally, before matching the configuration attribute with the attribute configuration file, the method further comprises: in response to receiving the attribute configuration file, identifying a configuration attribute name and a configuration attribute value from the attribute configuration file; and storing the configuration attribute name, the configuration attribute value and the attribute configuration file in association;
[0011] Matching the configuration attribute with the attribute configuration file includes: matching the configuration attribute with a configuration attribute name and a configuration attribute value associated with the attribute configuration file.
[0012] Optionally, marking the configuration attributes in the system configuration file includes:
[0013] Determining a matching condition that the configuration attribute does not meet;
[0014] Determine a custom icon corresponding to the matching condition;
[0015] The custom icon is displayed in a mark area of the row where the configuration attribute included in the system configuration file is located to indicate that the configuration attribute does not meet the matching condition.
[0016] Optionally, the method further comprises:
[0017] In response to receiving a viewing request, determining a target custom icon corresponding to the viewing request;
[0018] Display the matching results of the configuration attributes corresponding to the target custom icon.
[0019] Optionally, the preset source code file references the configuration attribute in the system configuration file, and the method further includes:
[0020] In response to detecting that the source code file is opened, the custom icon is displayed in the mark area of the line where the configuration attribute included in the source code file is located.
[0021] Optionally, the method further comprises:
[0022] In response to detecting the first jump request, determining the system configuration file to which the configuration attribute referenced by the source code file belongs, and jumping from the interface where the source code file is located to the interface where the configuration attribute included in the system configuration file is located;
[0023] In response to detecting the second jump request, determining the property configuration file referenced by the system configuration file, and jumping from the interface where the system configuration file is located to the interface where the property configuration file is located.
[0024] Optionally, after marking the configuration attributes in the system configuration file, the method further includes:
[0025] In response to detecting that the system configuration file has been modified, matching the configuration attribute with an attribute configuration file referenced by the system configuration file;
[0026] In the case where the configuration attribute matches the attribute configuration file, the flag corresponding to the configuration attribute is cleared.
[0027] According to a second aspect of an embodiment of the present invention, there is provided a configuration attribute checking device, comprising:
[0028] a determination module, configured to determine configuration attributes included in the system configuration file in response to detecting that the system configuration file is opened;
[0029] A matching module, used to determine the attribute configuration file referenced by the system configuration file, and match the configuration attribute with the attribute configuration file;
[0030] The marking module is used to mark the configuration attribute in the system configuration file when the configuration attribute does not match the attribute configuration file.
[0031] Optionally, the device further comprises: an identification module, configured to identify a configuration attribute name and a configuration attribute value from the attribute configuration file in response to receiving the attribute configuration file; an association module, configured to associate and store the configuration attribute name, the configuration attribute value and the attribute configuration file;
[0032] Matching the configuration attribute with the attribute configuration file includes: matching the configuration attribute with a configuration attribute name and a configuration attribute value associated with the attribute configuration file.
[0033] Optionally, marking the configuration attributes in the system configuration file includes:
[0034] Determining a matching condition that the configuration attribute does not meet;
[0035] Determine a custom icon corresponding to the matching condition;
[0036] The custom icon is displayed in a mark area of the row where the configuration attribute included in the system configuration file is located to indicate that the configuration attribute does not meet the matching condition.
[0037] Optionally, the device further comprises:
[0038] An icon query module, configured to determine, in response to receiving a viewing request, a target custom icon corresponding to the viewing request;
[0039] The icon display module is used to display the matching results of the configuration attributes corresponding to the target custom icon.
[0040] Optionally, the preset source code file references the configuration attribute in the system configuration file, and the device further includes:
[0041] The display module is configured to display the custom icon in a marking area of a line where the configuration attribute included in the source code file is located in response to detecting that the source code file is opened.
[0042] Optionally, the device further comprises:
[0043] A first jump module, configured to, in response to detecting a first jump request, determine a system configuration file to which the configuration attribute referenced by the source code file belongs, and jump from an interface where the source code file is located to an interface where the configuration attribute included in the system configuration file is located;
[0044] The second jump module is used to determine the attribute configuration file referenced by the system configuration file in response to detecting the second jump request, and jump from the interface where the system configuration file is located to the interface where the attribute configuration file is located.
[0045] Optionally, the device further comprises:
[0046] a rematching module, configured to match the configuration attribute with an attribute configuration file referenced by the system configuration file in response to detecting that the system configuration file has been modified;
[0047] The tag clearing module is used to clear the tag corresponding to the configuration attribute when the configuration attribute matches the attribute configuration file.
[0048] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including:
[0049] one or more processors;
[0050] a storage device for storing one or more programs,
[0051] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.
[0052] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0053] One embodiment of the above invention has the following advantages or beneficial effects: automatically checking the configuration attributes included in the system configuration file, marking the configuration attributes according to the matching results, being able to quickly and accurately mark the matching results of the configuration attributes, facilitating the determination of the configuration attributes that need to be adjusted according to the markings, and improving the development efficiency and maintenance efficiency of the business process; identifying the attribute configuration name and the attribute configuration value from the system configuration file in advance and storing them in association, being able to improve the matching efficiency of the attribute configuration, saving the time required for the attribute configuration, and avoiding the temporary acquisition of the attribute configuration name and the attribute configuration value; determining the corresponding custom icon according to the matching conditions that the configuration attribute does not meet, and displaying the custom icon in the system configuration file, enabling users to quickly Understand the verification results of configuration properties, improve the efficiency of searching for configuration properties, and thus improve R&D and maintenance efficiency; display the matching results of the configuration properties corresponding to the target custom icon, and display the detailed matching results of the configuration properties, so that users can quickly identify problems with the configuration properties and optimize the user experience; jump from the system configuration file to the property configuration file, and from the source code file to the system configuration file, which can improve the efficiency of users finding files and allow users to focus on fixing problems with configuration properties; after the system configuration file is modified, re-match the configuration properties included in the system configuration file to obtain the latest matching results of the configuration properties, and clear or adjust the tags corresponding to the configuration properties in a timely manner.
[0054] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0056] Figure 1 is a schematic diagram of the main process of the configuration attribute verification method according to an embodiment of the present invention;
[0057] Figure 2 is a schematic diagram of an identification interface of a system configuration file according to a reference embodiment of the present invention;
[0058] Figure 3 is a schematic diagram of a custom icon display according to a reference embodiment of the present invention;
[0059] Figure 4 is a schematic diagram of a custom icon display according to another reference embodiment of the present invention;
[0060] Figure 5 is a schematic diagram of the overall process of a method for checking configuration attributes according to a reference embodiment of the present invention;
[0061] Figure 6is a schematic diagram of the main process of a method for checking configuration attributes according to a reference embodiment of the present invention;
[0062] Figure 7 is a schematic diagram of main modules of a configuration attribute checking device according to an embodiment of the present invention;
[0063] Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0064] Fig. 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0065] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0066] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.
[0067] Using system configuration files can more flexibly configure the configuration properties required during system operation. In order to facilitate system development, maintenance and operation, corresponding system configuration files are usually set in different operating environments. For example, three system configuration files are set to configure the configuration properties in the development environment, test environment, and production environment respectively. Usually, problems in system configuration files can only be discovered when the system is running, for example, configuration properties are repeatedly configured or a certain configuration property is missing. R&D personnel need to solve the problems in the system configuration files in a timely manner to ensure the normal operation of the system.
[0068] There are many system configuration files, and the configuration properties included in the system configuration files are also many. R&D personnel need to spend a lot of time to find the configuration properties with problems, and the R&D efficiency and maintenance efficiency are low. The problems with the configuration properties cannot be solved in time, which affects the high availability of system services, easily leading to system crashes, data loss, and reduced user experience.
[0069] In view of this, according to a first aspect of an embodiment of the present invention, a method for verifying configuration attributes is provided.
[0070] Figure 1 FIG. 1 is a schematic diagram of the main process of the configuration attribute verification method according to an embodiment of the present invention. Figure 1 As shown, the configuration attribute verification method according to the embodiment of the present invention mainly includes the following steps S101 to S103.
[0071] Step S101: in response to detecting that a system configuration file is opened, determining configuration attributes included in the system configuration file.
[0072] The system configuration file is a file used to configure the configuration properties required during the operation of the system. The system configuration file includes one or more configuration properties. The file type of the system configuration file can be XML (eXtensible Markup Language), properties, etc. For example, the system configuration file includes: configuration information for connecting to a database, and the configuration information includes: four configuration properties such as the database host name, connection port number, user name and password. For another example, the system configuration file includes: configuration information for executing a scheduled task, and the configuration information includes: multiple configuration properties such as the start time, execution cycle, and end time of the scheduled task.
[0073] The execution subject of the embodiment of the present invention detects the system configuration file, and when it is detected that the system configuration file is opened, the system configuration file is scanned to identify the configuration attributes from the system configuration file. Specifically, when the user writes the system configuration file, the configuration attributes included in the system configuration file are marked with special symbols, for example, the special symbols include: "${}", "#()", etc. When scanning the system configuration file, the corresponding configuration attributes are determined according to the pre-set special symbols. Exemplarily, the system configuration file is scanned to obtain the following content: "jdbc.url = ${jdbcUrl}; jdbc.port = ${jdbcPort}; jdbc.username = ${username}; jdbc.password = ${password};", wherein "jdbc.url" represents the host name of the database, "jdbc.port" represents the port number of the database, "jdbc.username" represents the user name of the database, and "jdbc.password" represents the password of the database; according to the pre-set special characters "${}", it is determined that the configuration attributes of the system configuration file include: "jdbcUrl", "jdbcPort", "username", and "password".
[0074] When the system configuration file is opened, the configuration attributes are determined accurately and quickly, providing a data basis for the subsequent matching process, so that users can understand the matching status of the configuration attributes as soon as they open the file.
[0075] Step S102: determining the attribute configuration file referenced by the system configuration file, and matching the configuration attribute with the attribute configuration file.
[0076] Configuration properties in the system configuration file are variables, not specific values. For example, in the previous example, "${jdbcUrl}" is used to represent the host name of the database, where "jdbcUrl" is a variable. Pre-set the property configuration file, which is used to define the specific values of the configuration properties. The file type of the property configuration file can be YML (YAML, YAML Ain't a Markup Language, a data-centric data serialization format).
[0077] The system configuration file references the property configuration file, that is, references the specific values of the configuration properties defined in the property configuration file. For example, the property configuration file includes: jdbcUrl = jdbc:mysql: / / localhost:3306 / aaa, which means that the specific value of the database host name is "jdbc:mysql: / / localhost:3306 / aaa". The configuration attributes included in the system configuration file are matched with the specific values included in the attribute configuration file, and multiple matching conditions are set, for example, determining whether the specific value corresponding to the configuration attribute exists in the attribute configuration file, determining whether there is configuration redundancy (i.e., repeated configuration) in the configuration attribute in the system configuration file, determining whether there is configuration redundancy (i.e., repeated configuration) in the specific value of the configuration attribute in the attribute configuration file, etc. When the specific value corresponding to the configuration attribute exists in the attribute configuration file, and the configuration attribute in the system configuration file is not repeatedly configured, and the specific value of the configuration attribute in the attribute configuration file is unique, it is determined that the configuration attribute matches the attribute configuration file, that is, the configuration attribute passes the verification; when the specific value corresponding to the configuration attribute does not exist in the attribute configuration file, or the system configuration file includes multiple repeatedly configured configuration attributes, or the specific value of the configuration attribute in the attribute configuration file is not unique, it is determined that the configuration attribute does not match the attribute configuration file, that is, the configuration attribute fails the verification and needs to be adjusted.
[0078] By matching the configuration attributes included in the system configuration file with the specific values of the configuration attributes included in the property configuration file, it is possible to quickly and accurately determine whether the configuration attributes are configured correctly and whether they need to be adjusted. By using the system configuration file to reference the property configuration file, it is possible to flexibly determine the specific values of the configuration attributes, facilitate development testing, and improve R&D efficiency.
[0079] According to a reference embodiment of the present invention, before matching the configuration attribute with the attribute configuration file, the method further includes: the user uploads the attribute configuration file to the execution subject of the embodiment of the present invention, and after receiving the attribute configuration file, the execution subject of the embodiment of the present invention identifies the configuration attribute name and the configuration attribute value from the attribute configuration file. Exemplarily, the file type of the attribute configuration file is YML, each line of the attribute configuration file has an indentation, the configuration attribute includes a configuration attribute name and a configuration attribute value, and a configuration attribute can occupy one or more lines. In the case where a configuration attribute occupies multiple lines, the indentation of each line is different. For example, the configuration attribute name of the configuration attribute is "A1.A2", and the configuration attribute value is "A3". In the attribute configuration file, "A1" occupies one line, and its indentation is one space, and "A2:A3" occupies one line, and its indentation is two spaces, wherein the configuration attribute name and the configuration attribute value are separated by a colon ":". In the case where the indentation gradually increases, the line with the largest indentation includes the specific value of the configuration attribute. The property configuration file is traversed to determine the configuration property name and the configuration property value according to the indentation of each line, the indentation relationship between each line and the upper and lower lines, and the separator between the configuration property name and the configuration property value.
[0080] The identified configuration attribute name, configuration attribute value and attribute configuration file are associated and stored. For example, the configuration attribute name and configuration attribute value included in the attribute configuration file can be determined based on the file name of the attribute configuration file. When matching the configuration attribute with the attribute configuration file, the configuration attribute is matched with the configuration attribute name and configuration attribute value associated with the attribute configuration file, and the configuration attribute file is not repeatedly identified.
[0081] Figure 2 is a schematic diagram of an identification interface of a system configuration file according to a reference embodiment of the present invention. Figure 2 As shown, page 201 represents the upload page of the attribute configuration file. In page 201, one or more attribute configuration files can be uploaded at one time. Each attribute configuration file has a different file name. Enter the file name of the attribute configuration file into the input box and click the "Start Recognition" button. The execution subject of the embodiment of the present invention will start to recognize the configuration attribute name and configuration attribute value included in the attribute configuration file. Page 202 is the recognition result page of the attribute configuration file, in which each attribute configuration file corresponds to a recognition result. The recognition result includes: the file name of the attribute configuration file, the attribute configuration name and attribute configuration value included in the attribute configuration file, and the above three are associated. The user can understand the recognition result of each attribute configuration file from page 202.
[0082] As another example, the property configuration file includes three lines, the first line is "[space]B1:C1", the second line is "[space]B2", and the third line is "[space][space]B3:C2"; the above property configuration file is identified, and it is found that the property configuration file includes two configuration attributes, wherein the configuration attribute name of the first configuration attribute is "B1" and the configuration attribute value is "C1", and the configuration attribute name of the second configuration attribute is "B2.B3" and the configuration attribute value is "C2".
[0083] Using indentation and separators to determine the configuration attribute name and configuration attribute value can improve the recognition efficiency and accuracy of the configuration attributes; recognizing the attribute configuration file after receiving it and putting the recognition process in front can improve the matching efficiency of the configuration attributes and avoid wasting a lot of time on recognizing the attribute configuration file.
[0084] Step S103: if the configuration attribute does not match the attribute configuration file, mark the configuration attribute in the system configuration file.
[0085] There are situations where multiple pre-set configuration properties do not match the property configuration file. For example, there is no configuration property name matching the configuration property in the property configuration file (that is, the corresponding configuration property is not set), or there is no configuration property value matching the configuration property in the property configuration file, or multiple configuration property names or configuration property values matching the configuration property are repeatedly set in the property configuration file. In all of the above situations, it is determined that the configuration property does not match the property configuration file.
[0086] When the configuration attribute does not match the attribute configuration file, it indicates that there is a problem with the configuration attribute and adjustment is required. Therefore, the mismatched configuration attribute in the system configuration file is located and the configuration attribute is marked. For example, the coding color of the configuration attribute in the system configuration file is changed, the background color of the configuration attribute in the system configuration file is changed, the font of the configuration attribute in the system configuration file is changed (for example, bold, underline, italic), etc., so as to distinguish the configuration attribute from other contents in the system configuration file.
[0087] Marking the configuration attributes in the system configuration file that do not match the property configuration file, that is, the configuration attributes that have problems and need to be adjusted, allows users to intuitively find the marked configuration attributes when opening the system configuration file, allowing users to quickly know the configuration attributes that need to be adjusted in the system configuration file, saving users time in troubleshooting and finding problematic configuration attributes, allowing users to focus more on the development and maintenance of business processes, and improving user experience.
[0088] According to a reference embodiment of the present invention, when marking the configuration attributes in the system configuration file, the matching conditions that the configuration attributes do not meet are first determined. For example, the matching conditions include: the existence of the configuration attribute name, the existence of the configuration attribute value, the non-repetition of the configuration attribute, the absence of garbled characters in the configuration attribute, etc. Each matching condition corresponds to a custom icon, and the custom icons are pre-set, such as a triangular icon, a rectangular icon, a circular icon, etc. The user can set the association between the matching condition and the custom icon. Users are also allowed to upload custom icons. The execution body of the embodiment of the present invention receives the custom icons uploaded by the user, and associates the custom icons uploaded by the user with the matching conditions according to the user's request. The execution body of the embodiment of the present invention adds or deletes the custom icon according to the user's request.
[0089] Determine a custom icon corresponding to the matching condition that the configuration attribute does not meet. Display a custom icon in the mark area of the row where the configuration attribute included in the system configuration file is located to indicate that the configuration attribute does not meet the matching condition. For example, the mark area of the row where the configuration attribute is located is at the leftmost or rightmost side of the row where the configuration attribute is located, and the size of the mark area is adapted to the size of the custom icon. It should be noted that, when the configuration attribute meets the matching condition, the corresponding custom icon can also be displayed based on the user's request. For example, for the same matching condition, when the configuration attribute meets the matching condition, the corresponding custom icon is rendered in a light color, and when the configuration attribute does not meet the matching condition, the corresponding custom icon is rendered in a dark color. This allows the user to intuitively know whether the configuration attribute is matched with the attribute configuration file, and what the matching result is.
[0090] Figure 3 FIG. 1 is a schematic diagram of a custom icon display according to a reference embodiment of the present invention. Figure 3 As shown, code block 301 is a part of the system configuration file. In code block 301, line 7 includes the configuration attribute "jsf.token.xyz". The marking area of the configuration attribute is at the leftmost side of line 7. The word "fire" is used in the leftmost marking area as a custom mark for the matching result of the configuration attribute. For example, the custom mark indicates that the configuration attribute matches the attribute configuration file, there is no problem, and no adjustment is required.
[0091] Determine the corresponding custom icon based on the matching conditions that the configuration attribute does not meet, and display the custom icon in the system configuration file, so that users can quickly understand the verification results of the configuration attributes and intuitively see the row where the configuration attribute with problems is located, thereby improving the search efficiency of the configuration attributes, thereby improving the R&D efficiency and maintenance efficiency.
[0092] According to another reference embodiment of the present invention, the method further includes: in response to receiving a viewing request, determining a target custom icon corresponding to the viewing request. For example, hovering the mouse over the custom icon, or clicking, dragging, or checking the custom icon, generates a viewing request for the custom icon. Each custom icon in the system configuration file has an icon code, and the execution subject of the embodiment of the present invention parses the received viewing request, determines the icon code carried by the viewing request, and determines the target custom icon according to the icon code.
[0093] Determine the configuration attribute corresponding to the target custom icon, obtain the matching result of the configuration attribute, and the matching result includes: whether the configuration attribute meets the matching condition, which matching conditions it meets or does not meet, etc. Display the matching result of the configuration attribute corresponding to the target custom icon on the front-end page, specifically, on the left, right, above or below the target custom icon, etc.
[0094] Figure 4 FIG. 1 is a schematic diagram of a custom icon display according to another reference embodiment of the present invention. Figure 4 As shown, click the custom icon "fire" in the interface 401 of the system configuration file to obtain the interface 402 of the system configuration file. In the interface 402, there is a prompt message suspended at the lower right corner of the custom icon "fire", and the prompt message indicates that the configuration attributes included in the row where the custom icon is located do not match the attribute configuration file. Specifically, the attribute configuration file is missing the corresponding configuration attribute, that is, there is a problem with the configuration attribute, and the user needs to check and adjust it. Click the "folder" icon at the end of the prompt message to jump from the system configuration file to the corresponding attribute configuration file, so that the user does not spend a lot of time looking for the attribute configuration file where the configuration attribute is located.
[0095] Displays the matching results of the configuration attributes corresponding to the target custom icon, and can display the matching conditions that the configuration attributes meet or do not meet, allowing users to quickly identify problems with the configuration attributes, improve R&D efficiency and maintenance efficiency, and optimize user experience.
[0096] According to another referenceable embodiment of the present invention, the pre-set source code file references the configuration attributes in the system configuration file. The source code file is a file including business code and a file with business logic. The business code needs to use the configuration attributes in the system configuration file. The source code file improves the business code by referencing the configuration attributes in the system configuration file so that the business logic is accurately executed. The method also includes: the execution subject of the embodiment of the present invention detects the source code file, and when it is detected that the source code file is opened, the corresponding custom icon is displayed in the mark area of the line where the configuration attributes included in the source code file are located. Specifically, after detecting that the source code file is opened, the source code file is identified, the configuration attributes included in the source code file are identified, the matching result of the configuration attributes is queried, the custom icon corresponding to the matching result is determined, and the custom icon is displayed in the mark area of the line where the configuration attributes included in the source code file are located. For example, the mark area of the line where the configuration attributes are located is on the leftmost or rightmost side of the line where the configuration attributes are located, and the size of the mark area is adapted to the size of the custom icon.
[0097] Preferably, when the mouse is placed over the custom icon of the source code file, or the custom icon of the source code file is clicked, dragged, or checked, a view request for the custom icon is generated, and the execution subject of the embodiment of the present invention parses the received view request, determines the icon code carried in the view request, determines the target custom icon according to the icon code, determines the configuration attributes corresponding to the target custom icon, obtains the matching result of the configuration attributes, and displays the matching result of the configuration attributes corresponding to the target custom icon on the front-end page, specifically, on the left, right, above or below, etc., of the target custom icon included in the source code file.
[0098] Exemplarily, the source code file uses annotations to reference configuration properties in the system configuration file, and assigns values to object properties included in the database connection object (for example, the database host name, port number, user name, password, etc.); wherein configuration property D1 and configuration property D2 match the property configuration file, and configuration property D3 does not match the property configuration file; then in the source code file, a circular icon is displayed in the marking area of the row where configuration property D1 and configuration property D2 are located, and a triangular icon is displayed in the marking area of the row where configuration property D3 is located.
[0099] Displaying the target custom icon corresponding to the configuration attribute in the source code file can enable the user to intuitively understand the matching results of the configuration attributes. It can also display the detailed matching results of the configuration attributes, allowing the user to quickly identify the problems with the configuration attributes and optimize the user experience.
[0100] According to another reference embodiment of the present invention, the method further includes: in response to detecting a first jump request, determining the system configuration file to which the configuration attribute referenced by the source code file belongs. Exemplarily, a user is browsing a source code file, and the user double-clicks a custom icon included in the source code file to generate a first jump request. The execution subject of the embodiment of the present invention parses the first jump request, determines the corresponding icon code, determines the corresponding target configuration attribute according to the icon code, and determines the target system configuration file to which the target configuration attribute belongs. After determining the system configuration file to which the configuration attribute belongs, jump from the interface where the source code file is located to the interface where the configuration attribute included in the system configuration file is located. For example, the interface to which the jump is made includes multiple lines of content in the system configuration file, wherein the line where the configuration attribute is located is in the middle of the interface.
[0101] In response to detecting the second jump request, the attribute configuration file referenced by the system configuration file is determined, and the interface where the system configuration file is located is jumped from the interface where the system configuration file is located to the interface where the attribute configuration file is located. Exemplarily, the user is browsing the system configuration file, and the user double-clicks the custom icon included in the system configuration file, generating a second jump request. The execution subject of the embodiment of the present invention parses the second jump request, determines the corresponding icon code, determines the corresponding target configuration attribute according to the icon code, and determines the target attribute configuration file to which the target configuration attribute belongs. After determining the attribute configuration file to which the configuration attribute belongs, jump from the interface where the system configuration file is located to the interface where the configuration attribute included in the attribute configuration file is located. For example, the interface to which the jump is made includes multiple lines of content of the attribute configuration file, wherein the line where the configuration attribute value of the configuration attribute is located is in the middle of the interface.
[0102] Jumping from the system configuration file to the property configuration file, and from the source code file to the system configuration file can improve the efficiency of users in finding files, and help users locate the location of configuration properties in the system configuration file and the property configuration file, so that users can focus on fixing problems with configuration properties and improve R&D and maintenance efficiency.
[0103] According to another reference embodiment of the present invention, after marking the configuration attributes in the system configuration file, the method further includes: in response to detecting that the system configuration file has been modified, matching the configuration attributes with the attribute configuration file referenced by the system configuration file. Exemplarily, the execution subject of the embodiment of the present invention detects the content of the system configuration file, periodically compares the content included in the system configuration file, and in the case where the user modifies the system configuration file, the execution subject of the embodiment of the present invention re-identifies the system configuration file, obtains the real-time configuration attributes included in the system configuration file, and matches the real-time configuration attributes with the attribute configuration file. In the case where the configuration attribute matches the attribute configuration file, if the mark of the configuration attribute indicates a mismatch, the mark of the configuration attribute is modified to a mark indicating a match, and in the case where the mark of the matching configuration attribute is not displayed, the mark corresponding to the configuration attribute is cleared.
[0104] Preferably, the execution subject of the embodiment of the present invention detects the content of the attribute configuration file, periodically compares the content included in the attribute configuration file, and in the case where the user modifies the attribute configuration file, the execution subject of the embodiment of the present invention re-identifies the system configuration file, obtains the configuration attributes included in the system configuration file, and matches the configuration attributes with the modified attribute configuration file. In the case where the configuration attribute matches the modified attribute configuration file, if the mark of the configuration attribute indicates a mismatch, the mark of the configuration attribute is modified to a mark indicating a match, and in the case where the mark of the matching configuration attribute is not displayed, the mark corresponding to the configuration attribute is cleared.
[0105] After the system configuration file is modified, the configuration attributes included in the system configuration file are matched again to obtain the latest matching results of the configuration attributes, and to clear or adjust the marks corresponding to the configuration attributes in time.
[0106] Figure 5 FIG. 1 is a schematic diagram of the overall process of a configuration attribute verification method according to a reference embodiment of the present invention. Figure 5As shown, the user first opens the code editing software, clicks the plug-in button associated with the execution subject of the embodiment of the present invention, sends an identification request to the execution subject of the embodiment of the present invention, and the execution subject of the embodiment of the present invention displays the attribute configuration file identification page to the user. The user enters the attribute configuration file on the attribute configuration file identification page, and the execution subject of the embodiment of the present invention identifies the received attribute configuration file, associates the identified attribute configuration name and attribute configuration value with the attribute configuration file, and displays the identification result to the user; then the user opens the system configuration file, and the execution subject of the embodiment of the present invention detects that the system configuration file is opened, identifies the system configuration file, matches the identified configuration attribute with the attribute configuration file, and determines whether the configuration attribute is configured with the configuration attribute name and configuration attribute value, whether there is repeated configuration, whether there is configuration garbled code, etc.; in the case of the lack of the corresponding configuration attribute name or configuration attribute value, the custom icon 1 is displayed in the system configuration file; in the case of the configuration attribute name or configuration attribute value being repeatedly configured, the custom icon 2 is displayed in the system configuration file. Since the matching process of the configuration attribute is very fast, the user's intuitive feeling is that the matching result (for example, custom icon) of the configuration attribute can be seen by opening the system configuration file.
[0107] Figure 6 FIG. 1 is a schematic diagram of the main process of a configuration attribute verification method according to a reference embodiment of the present invention. Figure 6 As shown, the configuration attribute verification method may include:
[0108] Step S601, in response to receiving the attribute configuration file, identifying the configuration attribute name and the configuration attribute value from the attribute configuration file;
[0109] Step S602, associating and storing the configuration attribute name, the configuration attribute value and the attribute configuration file;
[0110] Step S603, in response to detecting that the system configuration file is opened, determining configuration attributes included in the system configuration file;
[0111] Step S604, determining the attribute configuration file referenced by the system configuration file, and matching the configuration attribute with the configuration attribute name and configuration attribute value associated with the attribute configuration file;
[0112] Step S605, determine whether the configuration attribute matches the attribute configuration file, if so, jump to step S606, otherwise, jump to step S603;
[0113] Step S606, determining the matching condition that the configuration attribute does not meet, and determining the custom icon corresponding to the matching condition;
[0114] Step S607, displaying a custom icon in the marking area of the row where the configuration attribute included in the system configuration file is located;
[0115] Step S608, in response to receiving the viewing request, determining a target custom icon corresponding to the viewing request;
[0116] Step S609, displaying the matching result of the configuration attributes corresponding to the target custom icon;
[0117] Step S610, in response to detecting the second jump request, determining the attribute configuration file referenced by the system configuration file;
[0118] Step S611, jumping from the interface where the system configuration file is located to the interface where the property configuration file is located;
[0119] Step S612, in response to detecting that the system configuration file is modified, matching the configuration attribute with the attribute configuration file referenced by the system configuration file;
[0120] Step S613, determine whether the configuration attribute matches the attribute configuration file, if so, jump to step S614, otherwise, jump to step S612;
[0121] Step S614, clearing the custom icon corresponding to the configuration attribute.
[0122] The specific implementation content of the configuration attribute verification method of the above-mentioned reference embodiment of the present invention has been described in detail in the configuration attribute verification method described above, so the repeated content will not be described again here.
[0123] Figure 7 is a schematic diagram of the main modules of the configuration attribute checking device according to an embodiment of the present invention, such as Figure 7 As shown, the configuration attribute checking device 700 mainly includes:
[0124] A determination module 701, configured to determine configuration attributes included in the system configuration file in response to detecting that the system configuration file is opened;
[0125] A matching module 702, configured to determine an attribute configuration file referenced by the system configuration file, and match the configuration attribute with the attribute configuration file;
[0126] The marking module 703 is used to mark the configuration attribute in the system configuration file when the configuration attribute does not match the attribute configuration file.
[0127] According to a reference embodiment of the present invention, the configuration attribute verification device 700 further includes: an identification module, for identifying a configuration attribute name and a configuration attribute value from the attribute configuration file in response to receiving the attribute configuration file; an association module, for associating and storing the configuration attribute name, the configuration attribute value and the attribute configuration file;
[0128] Matching the configuration attribute with the attribute configuration file includes: matching the configuration attribute with a configuration attribute name and a configuration attribute value associated with the attribute configuration file.
[0129] According to another reference embodiment of the present invention, marking the configuration attributes in the system configuration file includes:
[0130] Determining a matching condition that the configuration attribute does not meet;
[0131] Determine a custom icon corresponding to the matching condition;
[0132] The custom icon is displayed in a mark area of the row where the configuration attribute included in the system configuration file is located to indicate that the configuration attribute does not meet the matching condition.
[0133] According to another reference embodiment of the present invention, the configuration attribute checking device 700 further includes:
[0134] An icon query module, configured to determine, in response to receiving a viewing request, a target custom icon corresponding to the viewing request;
[0135] The icon display module is used to display the matching results of the configuration attributes corresponding to the target custom icon.
[0136] According to another reference embodiment of the present invention, the preset source code file references the configuration attribute in the system configuration file, and the configuration attribute checking device 700 further includes:
[0137] The display module is configured to display the custom icon in a marking area of a line where the configuration attribute included in the source code file is located in response to detecting that the source code file is opened.
[0138] According to another reference embodiment of the present invention, the configuration attribute checking device 700 further includes:
[0139] A first jump module, configured to, in response to detecting a first jump request, determine a system configuration file to which the configuration attribute referenced by the source code file belongs, and jump from an interface where the source code file is located to an interface where the configuration attribute included in the system configuration file is located;
[0140] The second jump module is used to determine the attribute configuration file referenced by the system configuration file in response to detecting the second jump request, and jump from the interface where the system configuration file is located to the interface where the attribute configuration file is located.
[0141] According to a reference embodiment of the present invention, the configuration attribute checking device 700 further includes:
[0142] a rematching module, configured to match the configuration attribute with an attribute configuration file referenced by the system configuration file in response to detecting that the system configuration file has been modified;
[0143] The tag clearing module is used to clear the tag corresponding to the configuration attribute when the configuration attribute matches the attribute configuration file.
[0144] It should be noted that the specific implementation content of the configuration attribute verification device in the embodiment of the present invention has been described in detail in the configuration attribute verification method described above, so the repeated content will not be described again here.
[0145] According to the technical solution of the embodiment of the present invention, the configuration attributes included in the system configuration file are automatically checked, and the configuration attributes are marked according to the matching results, so that the matching results of the configuration attributes can be quickly and accurately marked, which is convenient for determining the configuration attributes that need to be adjusted according to the marks, thereby improving the development efficiency and maintenance efficiency of the business process; identifying the attribute configuration name and the attribute configuration value from the system configuration file in advance and storing them in association, which can improve the matching efficiency of the attribute configuration, save the time required for the attribute configuration, and avoid temporarily obtaining the attribute configuration name and the attribute configuration value; determining the corresponding custom icon according to the matching condition that the configuration attribute does not meet, and displaying the custom icon in the system configuration file, so that users can quickly understand the configuration. The verification results of properties can improve the search efficiency of configuration properties, thereby improving R&D efficiency and maintenance efficiency; displaying the matching results of the configuration properties corresponding to the target custom icon can display the detailed matching results of the configuration properties, allowing users to quickly identify problems with the configuration properties and optimize the user experience; jumping from the system configuration file to the property configuration file, and from the source code file to the system configuration file can improve the efficiency of users finding files and allow users to focus on fixing problems with configuration properties; after the system configuration file is modified, re-matching the configuration properties included in the system configuration file can obtain the latest matching results of the configuration properties, and timely clear or adjust the tags corresponding to the configuration properties.
[0146] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present invention.
[0147] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0148] Figure 8 An exemplary system architecture 800 is shown to which the configuration attribute verification method or configuration attribute verification device according to the embodiment of the present invention can be applied.
[0149] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0150] The user can use the terminal devices 801, 802, 803 to interact with the server 805 through the network 804 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 801, 802, 803, such as attribute checking applications, attribute matching applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0151] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0152] The server 805 may be a server that provides various services, such as a background management server (only as an example) that provides support for configuration attribute verification requests sent by the upstream terminal devices 801, 802, and 803. In response to detecting that the system configuration file is opened, the background management server may determine the configuration attributes included in the system configuration file; determine the attribute configuration file referenced by the system configuration file, and match the configuration attributes with the attribute configuration file; if the configuration attributes do not match the attribute configuration file, mark the configuration attributes in the system configuration file; and feed back the verification status of the configuration attributes (only as an example) to the terminal device.
[0153] It should be noted that the configuration attribute verification method provided in the embodiment of the present invention is generally executed by the server 805, and accordingly, the configuration attribute verification device is generally set in the server 805. The configuration attribute verification method provided in the embodiment of the present invention can also be executed by the terminal devices 801, 802, and 803, and accordingly, the configuration attribute verification device can be set in the terminal devices 801, 802, and 803.
[0154] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0155] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 of a terminal device suitable for implementing an embodiment of the present invention. Fig. 9 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0156] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0157] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.
[0158] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the embodiment of the present invention are executed.
[0159] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In an embodiment of the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0160] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0161] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a determination module, a matching module, and a marking module, wherein the names of these modules do not constitute a limitation on the modules themselves under certain circumstances, for example, the determination module may also be described as a "module for determining configuration attributes included in a system configuration file".
[0162] As another aspect, an embodiment of the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements the following method: in response to detecting that a system configuration file is opened, determining the configuration attributes included in the system configuration file; determining the attribute configuration file referenced by the system configuration file, matching the configuration attributes with the attribute configuration file; and marking the configuration attributes in the system configuration file when the configuration attributes do not match the attribute configuration file.
[0163] According to the technical solution of the embodiment of the present invention, the configuration attributes included in the system configuration file are automatically checked, and the configuration attributes are marked according to the matching results, so that the matching results of the configuration attributes can be quickly and accurately marked, which is convenient for determining the configuration attributes that need to be adjusted according to the marks, thereby improving the development efficiency and maintenance efficiency of the business process; identifying the attribute configuration name and the attribute configuration value from the system configuration file in advance and storing them in association, which can improve the matching efficiency of the attribute configuration, save the time required for the attribute configuration, and avoid temporarily obtaining the attribute configuration name and the attribute configuration value; determining the corresponding custom icon according to the matching condition that the configuration attribute does not meet, and displaying the custom icon in the system configuration file, so that users can quickly understand the configuration. The verification results of properties can improve the search efficiency of configuration properties, thereby improving R&D efficiency and maintenance efficiency; displaying the matching results of the configuration properties corresponding to the target custom icon can display the detailed matching results of the configuration properties, allowing users to quickly identify problems with the configuration properties and optimize the user experience; jumping from the system configuration file to the property configuration file, and from the source code file to the system configuration file can improve the efficiency of users finding files and allow users to focus on fixing problems with configuration properties; after the system configuration file is modified, re-matching the configuration properties included in the system configuration file can obtain the latest matching results of the configuration properties, and timely clear or adjust the tags corresponding to the configuration properties.
[0164] The above specific implementations do not constitute a limitation on the protection scope of the embodiments of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for checking configuration attributes, characterized in that: include: In response to detecting that the system configuration file is opened, determining configuration attributes included in the system configuration file; Determine the attribute configuration file referenced by the system configuration file, and match the configuration attribute with the attribute configuration file; In the event that the configuration attribute does not match the attribute configuration file, the configuration attribute in the system configuration file is marked.
2. The method according to claim 1, characterized in that Before matching the configuration attribute with the attribute configuration file, the method further includes: in response to receiving the attribute configuration file, identifying a configuration attribute name and a configuration attribute value from the attribute configuration file; and associating and storing the configuration attribute name, the configuration attribute value and the attribute configuration file; Matching the configuration attribute with the attribute configuration file includes: matching the configuration attribute with a configuration attribute name and a configuration attribute value associated with the attribute configuration file.
3. The method according to claim 1, characterized in that: Marking the configuration attributes in the system configuration file includes: Determining a matching condition that the configuration attribute does not meet; Determine a custom icon corresponding to the matching condition; The custom icon is displayed in a mark area of the row where the configuration attribute included in the system configuration file is located to indicate that the configuration attribute does not meet the matching condition.
4. The method according to claim 3, characterized in that The method further comprises: In response to receiving a viewing request, determining a target custom icon corresponding to the viewing request; Display the matching results of the configuration attributes corresponding to the target custom icon.
5. The method according to claim 3, characterized in that: The preset source code file references the configuration attribute in the system configuration file, and the method further includes: In response to detecting that the source code file is opened, the custom icon is displayed in the mark area of the line where the configuration attribute included in the source code file is located.
6. The method according to claim 5, characterized in that The method further comprises: In response to detecting the first jump request, determining the system configuration file to which the configuration attribute referenced by the source code file belongs, and jumping from the interface where the source code file is located to the interface where the configuration attribute included in the system configuration file is located; In response to detecting the second jump request, determining the property configuration file referenced by the system configuration file, and jumping from the interface where the system configuration file is located to the interface where the property configuration file is located.
7. The method according to claim 1, characterized in that After marking the configuration attributes in the system configuration file, the method further includes: In response to detecting that the system configuration file has been modified, matching the configuration attribute with an attribute configuration file referenced by the system configuration file; In the case where the configuration attribute matches the attribute configuration file, the flag corresponding to the configuration attribute is cleared.
8. A configuration attribute checking device, characterized in that: include: a determination module, configured to determine configuration attributes included in the system configuration file in response to detecting that the system configuration file is opened; A matching module, used to determine the attribute configuration file referenced by the system configuration file, and match the configuration attribute with the attribute configuration file; The marking module is used to mark the configuration attribute in the system configuration file when the configuration attribute does not match the attribute configuration file.
9. An electronic device, characterized in that: include: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.