Web route dynamic processing method and device, equipment and storage medium
Through the dynamic processing method of web routing, dynamic matching and processing routing groups of interface tools solve the problem of low security of application service data interfaces, and limit the duration and number of interface tools, improving security.
Patent Information
- Application Number
- CN202411220558.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-11-12
AI Technical Summary
The prior art has low security when accessing the application service data interface, private data interfaces are easily exposed, and the risk of resigning developers leaking keys is higher.
Through the dynamic processing method of web routing, match the web routing group of the interface tool, judge the configuration information changes by preset frequency, analyze the target parameter values, and dynamically process the routing group, so that the interface tool can be launched or offline, limit the access time and number of times, and improve security .
It effectively improves the security of accessing application service data interfaces, limits the access time and number of private interfaces, and prevents the intranet from being compromised or resigned developers from abuse of interface tools.
Smart Images

Figure CN118944964A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Web services, and in particular to a method, device, equipment and storage medium for dynamic processing of Web routing. Background Art
[0002] Developers sometimes need to access some data interfaces of application services in order to obtain data and analyze performance bottlenecks of application services. Data interfaces include data refresh interfaces and performance bottleneck analysis interfaces.
[0003] At present, in order to prevent some private data interfaces of application services from being exposed, thereby improving the security of application services, private data interfaces can generally be restricted to intranet access only for developers through gateway configuration, or keys known only to developers can be set on private data interfaces.
[0004] However, if the intranet is breached, the private data interface will be directly exposed. In addition, if the developer resigns, there is a risk of the resigned developer leaking the key. It can be seen that the security of accessing the application service data interface through existing technology is low. Summary of the invention
[0005] In order to improve the security of accessing application service data interfaces, the present application provides a Web routing dynamic processing method, apparatus, device and storage medium.
[0006] In a first aspect, the present application provides a method for dynamic processing of Web routing, comprising:
[0007] Match the corresponding Web route for the interface tool to obtain the target route group;
[0008] Determining at a preset frequency whether configuration information established based on the target routing group has changed;
[0009] If so, analyzing the configuration information to obtain a target parameter value;
[0010] The target routing group is dynamically processed based on the target parameter value.
[0011] In a second aspect, the present application provides a Web routing dynamic processing device, comprising:
[0012] The matching module is used to match the corresponding Web route for the interface tool to obtain the target route group;
[0013] A determination module, used for determining at a preset frequency whether the configuration information established based on the target routing group has changed;
[0014] An analysis module, configured to analyze the configuration information to obtain a target parameter value;
[0015] A processing module is used to dynamically process the target routing group based on the target parameter value.
[0016] In a third aspect, the present application provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps in the above method when executing the computer program.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above method when executed by a processor.
[0018] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0019] The above-mentioned Web route dynamic processing method, device, equipment and storage medium obtain a target route group by matching the corresponding Web route for the interface tool; determine whether the configuration information established based on the target route group has changed at a preset frequency; if so, analyze the configuration information to obtain the target parameter value; and dynamically process the target route group based on the target parameter value. Through the above implementation, when it is necessary to call certain private interfaces of the application service through the interface tool, the target router corresponding to the interface tool can be dynamically processed through the configuration information, so that the interface tool is online, so as to call certain private interfaces of the application service through the interface tool; when it is not necessary to call certain private interfaces of the application service through the interface tool, the target router corresponding to the interface tool can be dynamically processed through the configuration information, so that the interface tool is offline, so as to make the private interface corresponding to the interface tool inaccessible; in this way, it is convenient to improve the security of accessing the application service data interface.
[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0022] Figure 1This is an application environment diagram of a method for dynamic processing of Web routing in one embodiment of the present application;
[0023] Figure 2 A flow chart of a method for dynamic processing of Web routing provided in one embodiment of the present application;
[0024] Figure 3 A schematic diagram of the structure of a Web routing dynamic processing device provided in one embodiment of the present application;
[0025] Figure 4 A schematic diagram of the structure of a computer device provided in one embodiment of the present application;
[0026] Figure 5 An internal structure diagram of a computer-readable storage medium provided in one embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0029] In this article, the term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the related objects before and after are in an "or" relationship.
[0030] To solve the above problems, the present disclosure provides a method for dynamically processing Web routes, which can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0031] Embodiment 1
[0032] Figure 2 A flow chart of a method for dynamic processing of Web routing provided in Example 1 of the present application, refer to Figure 2 The method may be performed by a device for performing the method, and the device may be implemented by software and / or hardware. The method includes:
[0033] S110, matching the corresponding Web routes for the interface tool to obtain a target route group.
[0034] Among them, there are a large number of application services on the market, such as various data monitoring platforms, etc., and the application service is embedded with an interface tool, which provides a set of data interfaces for external access to the application service, and facilitates external access to the data inside the application service through the data interface; for example, the application service is embedded with the interface tool pprof, which can provide a set of http api interfaces, and access the various indicator data of the application service through the set of http api interfaces provided by pprof. The application service is matched with a series of Web routes, which are used to map the user's http request to the corresponding processing code, so that the user can obtain the correct page or function by accessing different URLs (Uniform Resource Locator, Uniform Resource Locator); the http request is to implement a certain function based on the application service, so the Web route corresponding to the http request also corresponds to the function, and if the interface tool is related to the implementation of the function, the interface tool corresponds to one or more Web routes that implement the function; for example, the interface tool pprof is related to accessing the various indicator data of the application service, and the one or more Web routes matched by the application service that are related to accessing the various indicator data of the application service correspond to the interface tool pprof. The target route group is one or more Web routes that functionally correspond to an interface tool.
[0035] Specifically, one or more functionally corresponding Web routes are matched for the interface tool, thereby obtaining a target route group corresponding to the interface tool.
[0036] S120: Determine at a preset frequency whether configuration information established based on the target routing group has changed.
[0037] Among them, the preset frequency is a preset value. For example, the preset frequency is every n seconds, and the specific value of n is not limited; the configuration information corresponds to the target routing group one by one, and the configuration information is established based on the corresponding target routing group; it should be noted that the developer of the application service can configure certain configuration information to the application service to control the online and offline of the interface tools in the application service; when the developer uses a specific interface tool in the application service, the corresponding configuration information is configured to make the corresponding interface tool online to provide the developer with an accessible data interface; when the development does not need to use the specific interface tool in the application service, the corresponding configuration information is configured to make the corresponding interface tool offline, so that the corresponding data interface cannot be accessed. In this way, the configuration information is similar to the switch of the data interface, which controls the opening and closing of the data interface according to the needs of the developer, thereby improving the security of accessing the application service data interface; after the application service is started, it will determine whether the configuration information has changed at the preset frequency, so as to determine whether the developer has currently configured new configuration information.
[0038] It should be noted that the above configuration information is provided with an effective time for the interface tool and / or a limit on the number of calls to the interface tool; the effective time for the interface tool and / or the limit on the number of calls to the interface tool in the configuration information can effectively limit the duration and / or the number of visits for personnel to access the application service data interface through the interface tool. In this way, even if the intranet is hacked by others, the duration and / or the number of visits for others to access the private data interface are limited, and even for developers who have resigned, the duration and / or the number of visits for them to access the private data interface after resignation are also limited. It can be seen that setting the effective time for the interface tool and / or the limit on the number of calls to the interface tool in the configuration information can effectively improve the security of access to the application service data interface.
[0039] Specifically, the configuration information established based on the target routing group is obtained at a preset frequency, and it is determined whether the configuration information has changed.
[0040] S130: If yes, analyze the configuration information to obtain the target parameter value.
[0041] Among them, if it is determined that the configuration information has changed, it means that the developer has currently configured new configuration information. The configuration information corresponds to the interface tool controlled by it; the configuration information includes the target parameter value, and the target parameter value is used to control the interface tool corresponding to the configuration information to go online and offline; exemplarily, the configuration information is RouterConfig, and RouterConfig includes {"Action":"Load","Router":" / debug / pprof"}, where "Action":"Load" is the target parameter, and "Load" is the parameter value of the target parameter, which is recorded as the target parameter value. Load means loading, which means that the interface tool corresponding to the control and configuration information is online; in addition, the target parameter value can also be "Unload", which means unloading, which means that the interface tool corresponding to the control and configuration information is offline. The target parameter value can be obtained by analyzing the acquired configuration information.
[0042] Specifically, if it is determined that the configuration information has changed, the configuration information is obtained, and the configuration information is analyzed and processed to obtain the target parameter value in the configuration information.
[0043] S140: Dynamically process the target routing group based on the target parameter value.
[0044] The target parameter value is used to determine what kind of dynamic processing is performed on the target routing group corresponding to the interface tool. The dynamic processing is loading the target routing group or unloading the target routing group. The interface tool corresponding to the target routing group can be brought online by loading the target routing group, and the interface tool corresponding to the target routing group can be taken offline by unloading the target routing group.
[0045] Specifically, a corresponding type of dynamic processing is performed on the target routing group according to the obtained specific target parameter value.
[0046] It should be noted that, in this embodiment, a target routing group is obtained by matching the corresponding Web routing for the interface tool; whether the configuration information established based on the target routing group has changed is determined at a preset frequency; if so, the configuration information is analyzed to obtain a target parameter value; and the target routing group is dynamically processed based on the target parameter value. Through the above implementation, when it is necessary to call certain private interfaces of the application service through the interface tool, the target router corresponding to the interface tool can be dynamically processed through the configuration information, so that the interface tool is online, so that certain private interfaces of the application service are called through the interface tool; when it is not necessary to call certain private interfaces of the application service through the interface tool, the target router corresponding to the interface tool can be dynamically processed through the configuration information, so that the interface tool is offline, so that the private interface corresponding to the interface tool cannot be accessed; in addition, by setting the interface tool effective time and / or the interface tool call limit number in the configuration information, even if the internal network is hacked by others, the time and / or the number of visits for others to access the private data interface are limited, and even if it is a developer who has resigned, the time and / or the number of visits for him to access the private data interface after leaving the company are limited; in this way, it is convenient to improve the security of access to the application service data interface.
[0047] Embodiment 2
[0048] Embodiment 2 of the present application provides a method for dynamically processing a Web route, which optimizes the "matching the corresponding Web route for the interface tool to obtain a target route group" in Embodiment 1; it should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments, and the method includes:
[0049] S211 . Grouping Web routes based on functions corresponding to the Web routes to obtain Web route groups.
[0050] Among them, each Web route corresponds to a specific function. For example, the processing code mapped by the Web route is used to access various indicator data of the application service, and the function corresponding to the Web route is to access various indicator data of the application service; different Web routes may correspond to different functions, and the Web routes corresponding to the same function can be grouped into the same group to obtain a Web route group.
[0051] Specifically, Web routes corresponding to the same function are grouped into the same group to obtain a Web route group.
[0052] S212: Match the corresponding Web routing group to the preset interface tool to obtain a target routing group.
[0053] Among them, the interface tool is a tool pre-embedded in the application service, which is used to provide a data interface; illustratively, the preset interface tool is such as the above-mentioned pprof, which is used to provide a set of data interfaces for accessing various indicator data of the application service; the function corresponding to the Web routing group matched with pprof must also be to access various indicator data of the application service; the target routing group is also the Web routing group that matches the preset interface tool.
[0054] Specifically, a functionally corresponding Web routing group is matched to a preset interface tool to obtain a target routing group corresponding to the preset interface tool.
[0055] S220: Determine at a preset frequency whether configuration information established based on the target routing group has changed.
[0056] S230: If yes, analyze the configuration information to obtain the target parameter value.
[0057] S240: Dynamically process the target routing group based on the target parameter value.
[0058] Embodiment 3
[0059] Embodiment 3 of the present application provides a method for dynamically processing a Web route, which optimizes the "step of establishing configuration information based on the target route group" in Embodiment 1; it should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments, and the method includes:
[0060] S310, matching the corresponding Web routes for the interface tool to obtain a target route group.
[0061] S320: Determine at a preset frequency whether configuration information established based on the target routing group has changed.
[0062] The step of establishing configuration information based on the target routing group includes:
[0063] A1. Establishing a first parameter based on the online and offline requirements of the interface tool.
[0064] Among them, the online and offline requirements of the interface tool are the requirements of developers to put the interface tool online or offline. The first parameter is used to establish configuration information and is part of the configuration information. Exemplarily, the first parameter can be "Action": "Load", indicating that the developer needs the corresponding interface tool to go online, and the first parameter can also be "Action": "Unload", indicating that the developer needs the corresponding interface tool to go offline.
[0065] Specifically, the first parameter "Action": "Load" or "Action": "Unload" is established according to the developer's requirements for the online and offline operation of the interface tool.
[0066] A2. Establish a second parameter based on the target routing group corresponding to the interface tool.
[0067] The second parameter is used to establish configuration information and is a part of the configuration information; illustratively, it is "Router": " / debug / pprof", where / debug / pprof is the target routing group corresponding to the interface tool.
[0068] Specifically, the second parameter is established according to the target routing group corresponding to the interface tool.
[0069] A3. Establish configuration information based on the first parameter and the second parameter.
[0070] The configuration information includes a first parameter and a second parameter; illustratively, the name of the configuration information is RouterConfig, and RouterConfig includes {"Action":"Load","Router":" / debug / pprof"}.
[0071] Specifically, the configuration information is obtained by combining the first parameter and the second parameter.
[0072] S330: If yes, analyze the configuration information to obtain the target parameter value.
[0073] S340: Dynamically process the target routing group based on the target parameter value.
[0074] Embodiment 4
[0075] Embodiment 4 of the present application provides a method for dynamically processing a Web route, which optimizes the "determining whether the configuration information established based on the target route group has changed at a preset frequency" in Embodiment 1; it should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments, and the method includes:
[0076] S410: Match the corresponding Web route for the interface tool to obtain a target route group.
[0077] S421. Acquire configuration information established based on the target routing group at a preset frequency.
[0078] The preset frequency is a preset value. For example, the preset frequency is every n seconds, and the value of n is not limited. The configuration information is established based on the target routing group, and the application service can obtain the configuration information at the preset frequency.
[0079] Specifically, the application service obtains the configuration information established based on the target routing group at a preset frequency; illustratively, the application service obtains the configuration information established based on the target routing group every n seconds.
[0080] S422: Determine whether the configuration information has changed relative to the corresponding local configuration.
[0081] Among them, the entity configuration corresponding to the configuration information is the configuration information stored locally by the application service before obtaining the current configuration information; by comparing whether the currently obtained configuration information is consistent with the corresponding local configuration, it can be determined whether the configuration information has changed relative to the local configuration.
[0082] Specifically, by comparing whether the currently acquired configuration information is consistent with the corresponding local configuration, it is determined whether the configuration information has changed relative to the local configuration.
[0083] It should be noted that if the configuration information has changed relative to the local configuration, it means that the developer has currently issued new configuration information to the application service; otherwise, the developer has not currently issued new configuration information to the application service.
[0084] S430: If yes, analyze the configuration information to obtain the target parameter value.
[0085] S440: Dynamically process the target routing group based on the target parameter value.
[0086] Embodiment 5
[0087] Embodiment 5 of the present application provides a method for dynamically processing Web routes, which optimizes the "dynamically processing the target route group based on the target parameter value" in Embodiment 1; it should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments, and the method includes:
[0088] S510: Match the corresponding Web route for the interface tool to obtain a target route group.
[0089] S520: Determine at a preset frequency whether configuration information established based on the target routing group has changed.
[0090] S530: If yes, analyze the configuration information to obtain the target parameter value.
[0091] S540: If the target parameter value is a first preset value, load the target routing group into a preset memory routing table.
[0092] Among them, the first preset value represents that the target routing group is loaded into the preset memory routing table. Exemplarily, the configuration information is {"Action":"Load","Router":" / debug / pprof"}, wherein Load is the first preset value, and Load represents that the target routing group is loaded into the preset memory routing table; the memory routing table is a routing table preset in the memory of the application service, which is used to write or delete the target routing group; by loading the target routing group into the memory routing table, the application server can control the interface tool corresponding to the target routing group to go online, so that subsequent developers can access the application service through the interface tool.
[0093] Specifically, it is determined whether the target parameter value is a first preset value, and if so, the obtained target routing group is loaded into a preset memory routing table in the memory.
[0094] Embodiment 6
[0095] Embodiment 3 of the present application provides a method for dynamically processing Web routes, which optimizes the "dynamically processing the target route group based on the target parameter value" in Embodiment 1; it should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments, and the method includes:
[0096] S610: Match the corresponding Web route for the interface tool to obtain a target route group.
[0097] S620: Determine at a preset frequency whether configuration information established based on the target routing group has changed.
[0098] S630: If yes, analyze the configuration information to obtain the target parameter value.
[0099] S640: If the target parameter value is a second preset value, the target routing group is deleted from a preset memory routing table.
[0100] Among them, the second preset value represents deleting the target routing group from the preset memory routing table. Exemplarily, the configuration information is {"Action":"Unload","Router":" / debug / pprof"}, wherein Unload is the second preset value, and Unload represents deleting the target routing group from the preset memory routing table; by deleting the target routing group from the preset memory routing table, the application server can control the interface tool corresponding to the target routing group to go offline, so that the data interface corresponding to the interface tool stops being accessed, thereby preventing the risk of exposure of the data interface.
[0101] Specifically, it is determined whether the target parameter value is a second preset value, and if so, the obtained target routing group is deleted from the preset memory routing table.
[0102] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0103] Embodiment 7
[0104] Based on the same inventive concept, the embodiment of the present disclosure also provides a Web route dynamic processing device for implementing the Web route dynamic processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more Web route dynamic processing device embodiments provided below can refer to the limitations of the Web route dynamic processing method above, and will not be repeated here.
[0105] In this embodiment, Figure 4 As shown, a Web routing dynamic processing device is provided, comprising:
[0106] The matching module is used to match the corresponding Web route for the interface tool to obtain the target route group;
[0107] A determination module, used for determining at a preset frequency whether the configuration information established based on the target routing group has changed;
[0108] An analysis module, configured to analyze the configuration information to obtain a target parameter value;
[0109] A processing module is used to dynamically process the target routing group based on the target parameter value.
[0110] Each module in the above-mentioned Web routing dynamic processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0111] It should be noted that, in this embodiment, a target routing group is obtained by matching the corresponding Web routing for the interface tool; whether the configuration information established based on the target routing group has changed is determined at a preset frequency; if so, the configuration information is analyzed to obtain a target parameter value; and the target routing group is dynamically processed based on the target parameter value. Through the above implementation, when it is necessary to call certain private interfaces of the application service through the interface tool, the target router corresponding to the interface tool can be dynamically processed through the configuration information, so that the interface tool is online, so that certain private interfaces of the application service are called through the interface tool; when it is not necessary to call certain private interfaces of the application service through the interface tool, the target router corresponding to the interface tool can be dynamically processed through the configuration information, so that the interface tool is offline, so that the private interface corresponding to the interface tool cannot be accessed; in addition, by setting the interface tool effective time and / or the interface tool call limit number in the configuration information, even if the internal network is hacked by others, the time and / or the number of visits for others to access the private data interface are limited, and even if it is a developer who has resigned, the time and / or the number of visits for him to access the private data interface after leaving the company are limited; in this way, it is convenient to improve the security of access to the application service data interface.
[0112] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for dynamic processing of Web routing is implemented.
[0113] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0114] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0115] In one embodiment, a computer readable storage medium is provided. Figure 5 As shown, a computer program is stored thereon, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0116] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0117] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0118] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.
[0119] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0120] The above-described embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.
Claims
1. A method for dynamic processing of Web routing, characterized in that: include: Match the corresponding Web route for the interface tool to obtain the target route group; Determining at a preset frequency whether configuration information established based on the target routing group has changed; If so, analyzing the configuration information to obtain a target parameter value; The target routing group is dynamically processed based on the target parameter value.
2. The method according to claim 1, characterized in that: The interface tool matches the corresponding Web route to obtain the target route group, including: The Web routes are grouped based on the functions corresponding to the Web routes to obtain the Web route groups; The target routing group is obtained by matching the corresponding Web routing group to the preset interface tool.
3. The method according to claim 1, characterized in that The step of establishing configuration information based on the target routing group includes: Establishing a first parameter based on the online and offline requirements of the interface tool; Establishing a second parameter based on the target routing group corresponding to the interface tool; Configuration information is established based on the first parameter and the second parameter.
4. The method according to claim 1, characterized in that The determining, at a preset frequency, whether the configuration information established based on the target routing group has changed includes: Acquiring configuration information established based on the target routing group at a preset frequency; Determine whether the configuration information has changed relative to the corresponding local configuration.
5. The method according to claim 1, characterized in that: The dynamically processing the target routing group based on the target parameter value includes: If the target parameter value is a first preset value, the target routing group is loaded into a preset memory routing table.
6. The method according to claim 1, characterized in that The dynamically processing the target routing group based on the target parameter value includes: If the target parameter value is a second preset value, the target routing group is deleted from the preset memory routing table.
7. A Web routing dynamic processing device, characterized in that: The device comprises: The matching module is used to match the corresponding Web route for the interface tool to obtain the target route group; A determination module, used for determining at a preset frequency whether the configuration information established based on the target routing group has changed; An analysis module, configured to analyze the configuration information to obtain a target parameter value; A processing module is used to dynamically process the target routing group based on the target parameter value.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
