CN113286014B - Dynamic configuration method and device of basic domain name and related equipment - Google Patents

Dynamic configuration method and device of basic domain name and related equipment Download PDF

Info

Publication number
CN113286014B
CN113286014B CN202110567667.XA CN202110567667A CN113286014B CN 113286014 B CN113286014 B CN 113286014B CN 202110567667 A CN202110567667 A CN 202110567667A CN 113286014 B CN113286014 B CN 113286014B
Authority
CN
China
Prior art keywords
domain name
target
preset
basic domain
end server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110567667.XA
Other languages
Chinese (zh)
Other versions
CN113286014A (en
Inventor
蔡荣辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110567667.XA priority Critical patent/CN113286014B/en
Publication of CN113286014A publication Critical patent/CN113286014A/en
Application granted granted Critical
Publication of CN113286014B publication Critical patent/CN113286014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • H04L61/3025Domain name generation or assignment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The application relates to a data processing technology, and provides a dynamic configuration method, a device, computer equipment and a storage medium of a basic domain name, which comprises the following steps: when a target network request is received, detecting whether an initial basic domain name in a configuration file corresponding to a front-end server is in a hard coding state; when the detection result is negative, analyzing the target network request to obtain a target relative path of the initial basic domain name; determining a target network environment of a back-end server, calling a preset public function to acquire a target domain name splicing processing target relative path and a target domain name of the target network environment, acquiring a new basic domain name and storing the new basic domain name in a preset database; and when the restart of the front-end server is monitored, calling a new basic domain name stored in a preset database to start a page of the front-end server. This application can improve configuration efficiency and flexibility, promotes the rapid development in wisdom city.

Description

Dynamic configuration method and device of basic domain name and related equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for dynamically configuring a base domain name, a computer device, and a computer-readable storage medium.
Background
The domain name is an important condition for website access, which can enable a browser to correctly access the website content which is required by the browser after inputting the domain name, wherein one-time domain name configuration needs to firstly determine the environment for the domain name, then login the front-end server of the corresponding environment to configure a target domain name configuration file of the corresponding domain name, and the domain name configuration file needs to specify a service domain name and an IP address of the back-end server of the service place.
In the process of implementing the invention, the inventor finds that the prior art has the following technical problems: when a plurality of environments exist in the back-end server, the front-end server needs to specify a domain name when constructing the configuration file, and if the plurality of environments exist, the domain names corresponding to the plurality of environments need to be created in the configuration file. When a plurality of environments exist, the method has large configuration workload and is easy to make mistakes, so that the configuration accuracy is low; and if the application packages of other environments are uploaded to another environment in the using process, the domain name in the application package is not matched with the environment, so that the problem that the domain name cannot be used and the domain name needs to be reconstructed and uploaded is caused, and the configuration flexibility is poor.
Therefore, it is necessary to provide a dynamic configuration method for basic domain names, which can improve the accuracy and flexibility of domain name configuration.
Disclosure of Invention
In view of the above, it is desirable to provide a dynamic configuration method of a basic domain name, a dynamic configuration device of a basic domain name, a computer device and a computer readable storage medium, which can improve the accuracy and flexibility of domain name configuration.
A first aspect of an embodiment of the present application provides a dynamic configuration method for a base domain name, where the dynamic configuration method for a base domain name includes:
when a target network request output by a front-end server is received, acquiring and detecting whether an initial basic domain name in a configuration file corresponding to the front-end server is in a hard coding state;
when the detection result is that the initial basic domain name in the configuration file corresponding to the front-end server is not in a hard coding state, analyzing the target network request to obtain a target relative path of the initial basic domain name;
determining a target network environment of a back-end server, and calling a preset public function to obtain a target domain name corresponding to the target network environment;
splicing the target relative path and the target domain name to obtain a new base domain name and storing the new base domain name in a preset database;
and when the condition that the front-end server is restarted is monitored, calling a new basic domain name stored in the preset database to open a page of the front-end server.
Further, in the dynamic configuration method for the basic domain name provided in the embodiment of the present application, the acquiring and detecting whether the initial basic domain name in the configuration file corresponding to the front-end server is in a hard-coded state includes:
acquiring an initial basic domain name in a configuration file corresponding to the front-end server;
determining a domain name structure of the initial base domain name;
detecting whether the domain name structure meets the requirement of a preset domain name structure;
when the detection result is that the domain name structure meets the requirement of a preset domain name structure, determining that the initial basic domain name is in a hard coding state;
and when the detection result indicates that the domain name structure does not meet the requirement of a preset domain name structure, determining that the initial basic domain name is not in a hard coding state.
Further, in the above method for dynamically configuring a base domain name provided in an embodiment of the present application, the method further includes:
when the detection result is that the initial basic domain name in the configuration file corresponding to the front-end server is in a hard coding state, acquiring the initial basic domain name in the configuration file corresponding to the front-end server;
detecting whether the initial basic domain name contains a preset transmission protocol or not;
and when the detection result shows that the initial basic domain name contains a preset transmission protocol, splicing the initial basic domain name into the target network request, and calling the initial basic domain name to open a page of the front-end server when the front-end server is monitored to be restarted.
Further, in the dynamic configuration method for the base domain name provided in the embodiment of the present application, the analyzing the target network request to obtain the target relative path of the initial base domain name includes:
analyzing the target network request, and detecting whether the target network request carries a preset keyword or not;
when the detection result is that the target network request carries a preset keyword, determining a target code corresponding to the preset keyword;
and acquiring data in a preset data format in the target code, and taking the data in the preset data format as a target relative path.
Further, in the method for dynamically configuring a base domain name provided in an embodiment of the present application, the invoking a preset public function to obtain a target domain name corresponding to the target network environment includes:
acquiring a loading page corresponding to the target network environment;
determining website information of the loaded page;
and calling a preset public function to extract target data in the website information as a target domain name of the target network environment.
Further, in the dynamic configuration method for a base domain name provided in the embodiment of the present application, the splicing and processing the target relative path and the target domain name to obtain a new base domain name includes:
acquiring a splicing rule corresponding to the target relative path and the target domain name;
and splicing and processing the target relative path and the target domain name according to the splicing rule to obtain a new basic domain name.
Further, in the method for dynamically configuring a base domain name provided in this embodiment of the present application, before the calling a new base domain name stored in the preset database to open a page of the front-end server, the method further includes:
acquiring page information corresponding to the re-opening of the front-end server;
determining a local basic domain name corresponding to the page information and a target basic domain name in the preset database;
detecting whether the local basic domain name is consistent with the target basic domain name;
when the detection result is that the local basic domain name is consistent with the target basic domain name, calling the local basic domain name to open a page of the front-end server;
and when the detection result is that the local basic domain name is inconsistent with the target basic domain name, calling the target basic domain name stored in the preset database to open the page of the front-end server.
A second aspect of the embodiments of the present application further provides a device for dynamically configuring a base domain name, where the device for dynamically configuring a base domain name includes:
the state detection module is used for acquiring and detecting whether an initial basic domain name in a configuration file corresponding to a front-end server is in a hard coding state or not when a target network request output by the front-end server is received;
the request analysis module is used for analyzing the target network request to obtain a target relative path of the initial basic domain name when the detection result indicates that the initial basic domain name in the configuration file corresponding to the front-end server is not in a hard coding state;
the function calling module is used for determining a target network environment of the back-end server and calling a preset public function to acquire a target domain name of the target network environment;
the domain name splicing module is used for splicing and processing the target relative path and the target domain name to obtain a new base domain name and storing the new base domain name into a preset database;
and the page restarting module is used for calling the new basic domain name stored in the preset database to start the page of the front-end server when the situation that the front-end server is restarted is monitored.
The third aspect of the embodiments of the present application further provides a computer device, where the computer device includes a processor, and the processor is configured to implement any one of the above methods for dynamically configuring a base domain name when executing a computer program stored in a memory.
The fourth aspect of the embodiments of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the dynamic configuration method for the basic domain name described in any one of the above.
According to the dynamic configuration method of the basic domain name, the dynamic configuration device of the basic domain name, the computer device and the computer readable storage medium provided by the embodiment of the application, the target relative path of the initial basic domain name is obtained, the preset public function is called to obtain the target domain name corresponding to the target network environment, and the target relative path and the target domain name are spliced to obtain the new basic domain name. Because different network environments all have corresponding domain name information, the method for acquiring the domain name corresponding to the network environment by calling the preset public function replaces the method for configuring the corresponding relation between the different network environments and the domain name in advance, and the problems of large configuration amount and low configuration accuracy caused by more network environments can be avoided; in addition, the method saves the new base domain name into the preset database, and replaces the method of filling the new base domain name into the configuration file corresponding to the front-end server by storing the spliced new base domain name into the preset database, so that the problem that the configuration file cannot be used due to filling errors in the process of filling the new base domain name into the configuration file is avoided; and because the configuration file corresponding to the front-end server is not filled with the new basic domain name, the problem that the domain name in the configuration file is not matched with the environment does not exist, the configuration file can be executed in different environments without manually modifying the configuration file, the multi-environment operation of the configuration file is realized, and the configuration flexibility is improved. The method and the device can be applied to various functional modules of smart cities such as smart government affairs and smart traffic, for example, a dynamic configuration module of a basic domain name of the smart government affairs can promote the rapid development of the smart cities.
Drawings
Fig. 1 is a flowchart of a method for dynamically configuring a base domain name according to an embodiment of the present application.
Fig. 2 is a structural diagram of a dynamic configuration apparatus for a base domain name according to a second embodiment of the present application.
Fig. 3 is a schematic structural diagram of a computer device provided in the third embodiment of the present application.
The following detailed description will further illustrate the present application in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present application can be more clearly understood, a detailed description of the present application will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present application, and the described embodiments are a part, but not all, of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
The dynamic configuration method of the basic domain name provided by the embodiment of the invention is executed by the computer equipment, and correspondingly, the dynamic configuration device of the basic domain name operates in the computer equipment.
Fig. 1 is a flowchart of a method for dynamically configuring a base domain name according to an embodiment of the present application. As shown in fig. 1, the dynamic configuration method for the base domain name may include the following steps, and the order of the steps in the flowchart may be changed and some may be omitted according to different requirements:
s11, when receiving the target network request output by the front end server, obtaining and detecting whether the initial basic domain name in the configuration file corresponding to the front end server is in the hard coding state, and when the detection result is that the initial basic domain name in the configuration file corresponding to the front end server is not in the hard coding state, executing the step S12.
In at least one embodiment of the present application, the configuration file refers to a file used for constructing an application program in a front-end server and/or a back-end server, the configuration file corresponding to the front-end server and the configuration file corresponding to the back-end server are both deployed in a server with the same domain name, for example, the same domain name is used for accessing an H5 page and accessing a back-end interface, http:// xxx/index.html is used for accessing an H5 page, and http:// xxx/login. The application may refer to a Java application, and is not limited herein. And constructing an executable jar package under the build/libs folder by an application program in the front-end server and/or the back-end server through a gradlebuild command. Deployment refers to uploading all files and folders under a dist folder constructed by a front-end application through an npm run build command to a server, wherein the npm run build is a shortcut of a string of scripts and is defined in package. And after the npm run built command is executed, generating a dist folder, wherein the dist folder can store packaged files for online.
In one embodiment, the target network request may be an axios network request. axios is a Promise-based method that can send requests for get, post, etc., and a library that can be used by both front and back end servers. The axios network request refers to a request which is output by a front-end server and used for acquiring a basic domain name and correspondingly setting the basic domain name, and the axios network request may be a get request, a post request, and the like, and is not limited herein. The front-end server comprises a plurality of pages, each page corresponds to a basic domain name, and the basic domain name corresponding to each page can be arranged in a configuration file corresponding to the front-end server. The axios network request carries target relative paths of the basic domain names corresponding to different pages in the front-end server, and the number of the target relative paths can be 1 or multiple.
Optionally, the obtaining and detecting whether the initial base domain name in the configuration file corresponding to the front-end server is in a hard-coded state includes:
acquiring an initial basic domain name in a configuration file corresponding to the front-end server;
determining a domain name structure of the initial base domain name;
detecting whether the domain name structure meets the requirement of a preset domain name structure;
when the detection result shows that the domain name structure meets the requirement of a preset domain name structure, determining that the initial basic domain name is in a hard coding state;
and when the detection result indicates that the domain name structure does not meet the requirement of a preset domain name structure, determining that the initial basic domain name is not in a hard coding state.
The initial basic domain name is stored in a preset position of the configuration file, the preset position is identified through a mark, the mark can be a digital mark, a color mark or a letter mark, and the preset position is a preset position for storing the initial basic domain names corresponding to different pages of the front-end server. By inquiring the position of the mark in the configuration file, the position of the initial basic domain name of the front-end server can be obtained, and the initial basic domain name corresponding to the front-end server is obtained.
In general, the domain name structure of an initial base domain name may include at least one of a transport protocol, a domain name, and a host type. For example, the domain name structure of an initial base domain name may be transport protocol + domain name + host type, transport protocol + domain name, domain name + host type, or domain name. And for each domain name structure, setting a corresponding domain name structure template, and matching the domain name structure of the initial basic domain name with the domain name structure template to determine a target domain name structure template consistent with the domain name structure of the initial basic domain name as the domain name structure of the initial basic domain name.
The preset domain name structure requirement refers to a preset domain name structure in a complete state, the preset domain name structure can comprise a transmission protocol, a domain name and a host type, and when the detection result shows that the domain name structure is in the complete state, the initial basic domain name is determined to be in a hard coding state; and when the detection result is that the domain name structure is not in a complete state, determining that the initial base domain name is not in a hard coding state. It can be understood that when the initial base domain name in the configuration file corresponding to the front-end server is in a hard coding state, the initial base domain name at this time belongs to a scene that needs special setting; and when the initial basic domain name in the configuration file corresponding to the front-end server is not in a hard coding state, the initial basic domain name at the moment belongs to a dynamically set scene. In an embodiment, the initial basic domain name can be configured in a configuration file only when the initial basic domain name belongs to a scene needing special setting, and the initial basic domain name is a domain name meeting the structural requirement of a preset domain name; for other scenes in which the basic domain name can be dynamically set, the basic domain name does not need to be configured in a configuration file.
In one embodiment, when the front-end server outputs the target network request, the method further comprises:
when the initial basic domain name in the configuration file corresponding to the front-end server is in hard coding, acquiring the initial basic domain name in the configuration file corresponding to the front-end server;
detecting whether the initial basic domain name contains a preset transmission protocol or not;
and when the detection result shows that the initial basic domain name contains a preset transmission protocol, splicing the initial basic domain name into the target network request, and calling the initial basic domain name to open a page of the front-end server when the front-end server is monitored to be restarted.
The preset transmission protocol refers to a preset transmission protocol, and the preset transmission protocol may be an http transmission protocol. And when the detection result is that the initial basic domain name does not contain the preset transmission protocol, the step of analyzing the target network request to obtain the target relative path of the initial basic domain name can be executed.
The method and the device can judge whether a set basic domain name (baseURL) exists in the configuration file or not, and if the set basic domain name (baseURL) exists, whether the basic domain name starts with an http protocol or not can be judged. If the basic domain name starts with an http protocol, splicing a basic domain name (baseURL) on a specific target network request, and calling the initial basic domain name to open a page of the front-end server when the front-end server is monitored to be restarted. If the base domain name (baseURL) does not start with the http protocol or the base domain name (baseURL) is not set, the step of analyzing the target network request to obtain the target relative path of the initial base domain name may be performed, and the current domain name of the window.
S12, the target network request is analyzed to obtain the target relative path of the initial basic domain name.
In at least one embodiment of the present application, the target network request carries a target relative path of a base domain name, and the target relative path is displayed in a preset data format. The target relative path corresponds to a specific page of the front-end server, and the target relative path is preset according to each page of the front-end server. The target relative path means that a path exists relatively, for example, an a website (×) and a B website (baidu.com) exist, and if a web page 404.html exists under the root directories of the two websites, the same link, that is, "/404. html", is set for the two websites, that is, the target relative path.
Optionally, the analyzing the target network request to obtain the target relative path of the initial base domain name includes:
analyzing the target network request, and detecting whether the target network request carries a preset keyword or not;
when the detection result is that the target network request carries a preset keyword, determining a target code corresponding to the preset keyword;
and acquiring data in a preset data format in the target code, and taking the data in the preset data format as a target relative path.
The preset keywords are preset keywords, and the preset keywords can be keywords in a word form of 'baseURL'. And when the target network request is detected to carry the keyword of the word form of the baseURL, acquiring a code corresponding to the keyword of the word form of the baseURL as a target code. Since the target relative path is displayed in a preset data format, data in the preset data format is acquired as the target relative path.
Illustratively, taking the target network request as an axios network request as an example, the structure of the axios network request may be as follows:
Figure BDA0003081479350000091
obtaining a preset keyword of a baseURL word pattern by traversing the structure of the axios network request, and obtaining a code corresponding to the keyword of the baseURL word pattern: baseURL process. env. base _ API? process, env, base _ API, '/admin' as target code. The preset data format refers to a format preset by system personnel, and in an embodiment, the preset data format may be a data format of/admin. By querying/admin formatted data, a target relative path can be obtained.
S13, determining a target network environment of the back-end server, and calling a preset public function to obtain a target domain name corresponding to the target network environment.
In at least one embodiment of the present application, the network environment of the backend server may include a test environment, a development environment, and a production environment, and for each environment, there may also be several sub-environments. For example, for the test environment stg, a plurality of test sub-environments stg1, stg2 … stgn, and the like may be further included. If the environment information is a test environment, domain name information corresponding to the test environment; if the environment information is a development environment, the domain name information corresponds to the development environment, and if the environment information is a production environment, the domain name information corresponds to the production environment.
Optionally, the invoking a preset public function to obtain the target domain name corresponding to the target network environment includes:
acquiring a loading page corresponding to the target network environment;
determining website information of the loaded page;
and calling a preset public function to extract target data in the website information as a target domain name of the target network environment.
The preset public function refers to a preset function for acquiring a domain name, and in an embodiment, the public function may be a window. The window location host function returns the host portion + port number of the URL of the currently loaded page. For example: html, if the website information of the loaded page is http:// www.abc.com/index, then the target data www.abc.com is obtained.
Because different network environments all have corresponding domain name information, the method for acquiring the domain name corresponding to the network environment by calling the preset public function replaces the method for pre-configuring the corresponding relation between the different network environments and the domain name, and the problems of large configuration amount and low configuration efficiency caused by more network environments can be solved.
And S14, splicing the target relative path and the target domain name to obtain a new basic domain name and storing the new basic domain name in a preset database.
In at least one embodiment of the present application, when the baseURL carried in the target network request is set to the relative path format of "/xxx", axios may automatically concatenate the target domain name obtained by the preset public function window.
Optionally, the splicing processing the target relative path and the target domain name to obtain a new base domain name includes:
acquiring a splicing rule corresponding to the target relative path and the target domain name;
and splicing and processing the target relative path and the target domain name according to the splicing rule to obtain a new basic domain name.
Illustratively, when the target relative path is "/404. html", the target domain name is www.abc.com, and the splicing rule is to place the target domain name before the target relative path, so that the new base domain name is www.abc.com/404. html.
The preset database is a preset database, and the preset database can be a target node of the block chain in consideration of privacy and confidentiality of data. Illustratively, a plurality of preset functions are newly built in the preset database, and the preset functions are used for storing one or more new basic domain names. When the preset function is used for storing a plurality of the new basic domain names, the new basic domain names with the same target domain name but different target relative paths can be stored in the same preset function.
According to the method and the device, the mode that the new base domain name obtained through splicing is stored in the preset database is used for replacing the mode that the new base domain name is filled into the configuration file corresponding to the front-end server, so that the problem that the configuration file cannot be used due to filling errors in the process of filling the new base domain name into the configuration file is solved; and because the configuration file corresponding to the front-end server is not filled with the new basic domain name, the problem that the domain name in the configuration file is not matched with the environment does not exist, the configuration file can be executed in different environments without manually modifying the configuration file, the multi-environment operation of the configuration file is realized, and the configuration flexibility is improved.
In addition, by means of splicing the target relative path and the target domain name, unified construction commands can be configured without configuring corresponding construction commands for multiple sets of environments, the construction commands can be instructions for constructing a basic domain name, and the efficiency of configuration of the construction commands can be improved.
And S15, when the restart of the front-end server is monitored, calling the new basic domain name stored in the preset database to open the page of the front-end server.
In at least one embodiment of the present application, a default basic domain name is used when the front-end server is started for the first time, and a downloaded new basic domain name is used when the front-end server is restarted, so that any new basic domain name can be used after an application program is released, thereby implementing dynamic switching of the basic domain name.
When the application program is restarted, before the new base domain name saved in the preset database is called to open the page of the front-end server, the method further includes:
acquiring page information corresponding to the restart of the front-end server;
determining a local basic domain name corresponding to the page information and a target basic domain name in the preset database;
detecting whether the local basic domain name is consistent with the target basic domain name;
when the detection result is that the local basic domain name is consistent with the target basic domain name, calling the local basic domain name to open a page of the front-end server;
and when the detection result is that the local basic domain name is inconsistent with the target basic domain name, calling the target basic domain name stored in the preset database to open the page of the front-end server.
The local basic domain name refers to a default basic domain name which is downloaded to the local in advance. When the detection result is that the local basic domain name is consistent with the target basic domain name, indicating that the basic domain name corresponding to the page information in the preset database is not updated; and when the detection result shows that the local basic domain name is inconsistent with the target basic domain name, indicating that the basic domain name corresponding to the page information in the preset database is updated.
According to the dynamic configuration method for the basic domain name, the target relative path of the initial basic domain name is obtained, the preset public function is called to obtain the target domain name corresponding to the target network environment, and the target relative path and the target domain name are spliced to obtain the new basic domain name. Because different network environments all have corresponding domain name information, the method for acquiring the domain name corresponding to the network environment by calling the preset public function replaces the method for pre-configuring the corresponding relation between the different network environments and the domain name, and the problems of large configuration amount and low configuration efficiency caused by more network environments can be solved; in addition, the new base domain name is stored in the preset database, and the mode of filling the new base domain name into the configuration file corresponding to the front-end server is replaced by the mode of storing the spliced new base domain name into the preset database, so that the problem that the configuration file cannot be used due to a filling error in the process of filling the new base domain name into the configuration file is avoided; and because the configuration file corresponding to the front-end server is not filled with the new basic domain name, the problem that the domain name in the configuration file is not matched with the environment does not exist, the configuration file can be executed in different environments without manually modifying the configuration file, the multi-environment operation of the configuration file is realized, and the configuration flexibility is improved. The method and the device can be applied to various functional modules of the smart cities such as the smart government affairs and the smart traffic, for example, a dynamic configuration module of a basic domain name of the smart government affairs can promote the rapid development of the smart cities.
Fig. 2 is a structural diagram of a dynamic configuration apparatus for a base domain name according to a second embodiment of the present application.
In some embodiments, the dynamic configuration apparatus 20 of the base domain name may include a plurality of functional modules composed of computer program segments. The computer program of each program segment in the dynamic configuration apparatus 20 of the base domain name can be stored in a memory of a computer device and executed by at least one processor to perform (see fig. 1 for details) the function of dynamic configuration of the base domain name.
In this embodiment, the dynamic configuration apparatus 20 for the base domain name may be divided into a plurality of functional modules according to the functions performed by the apparatus. The functional module may include: a state detection module 201, a request resolution module 202, a function call module 203, a domain name stitching module 204, and a page restart module 205. A module as referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in a memory. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The state detection module 201 is configured to, when receiving a target network request output by a front-end server, obtain and detect whether an initial base domain name in a configuration file corresponding to the front-end server is in a hard-coded state.
In at least one embodiment of the present application, the configuration file refers to a file used for constructing an application program in a front-end server and/or a back-end server, and both the configuration file corresponding to the front-end server and the configuration file corresponding to the back-end server are deployed in a server with the same domain name, where the application program may refer to a Java application program, which is not limited herein. And constructing an executable jar package under the build/libs folder by an application program in the front-end server and/or the back-end server through a gradlebuild command. Illustratively, the access H5 page and the access backend interface use the same domain name, the access H5 page uses http:// xxx/index. html, and the access backend interface uses http:// xxx/login. Deployment refers to uploading all files and folders under a dist folder constructed by a front-end application through an npm run build command to a server, wherein the npm run build is a shortcut of a string of scripts and is defined in package. And after the npm run built command is executed, generating a dist folder, wherein the dist folder can store packaged files for online.
In one embodiment, the target network request may be an axios network request, axios is a Promise-based method, and a request of get, post, etc. may be sent, and both front-end and back-end servers may use the library. The axios network request refers to a request for acquiring a basic domain name output by a front-end server, and the axios network request may be a get request, a post request, and the like, which is not limited herein. The front-end server comprises a plurality of pages, each page corresponds to a basic domain name, and the basic domain name corresponding to each page can be arranged in a configuration file corresponding to the front-end server. The axios network request carries target relative paths of base domain names corresponding to different pages in a front-end server, and the number of the target relative paths can be 1 or more.
Optionally, the obtaining and detecting whether the initial base domain name in the configuration file corresponding to the front-end server is in a hard-coded state includes:
acquiring an initial basic domain name in a configuration file corresponding to the front-end server;
determining a domain name structure of the initial base domain name;
detecting whether the domain name structure meets the requirement of a preset domain name structure;
when the detection result shows that the domain name structure meets the requirement of a preset domain name structure, determining that the initial basic domain name is in a hard coding state;
and when the detection result indicates that the domain name structure does not meet the requirement of a preset domain name structure, determining that the initial basic domain name is not in a hard coding state.
The initial basic domain name is stored in a preset position of the configuration file, the preset position is identified through a mark, the mark can be a digital mark, a color mark or a letter mark, and the preset position is a preset position for storing the initial basic domain name corresponding to different pages of the front-end server. By inquiring the position of the mark in the configuration file, the position of the initial basic domain name of the front-end server can be obtained, and the initial basic domain name corresponding to the front-end server is obtained.
In general, the domain name structure of an initial base domain name may include at least one of a transport protocol, a domain name, and a host type. For example, the domain name structure of an initial base domain name may be transport protocol + domain name + host type, transport protocol + domain name, domain name + host type, or domain name. And for each domain name structure, setting a corresponding domain name structure template, and matching the domain name structure of the initial basic domain name with the domain name structure template to determine a target domain name structure template consistent with the domain name structure of the initial basic domain name as the domain name structure of the initial basic domain name.
The preset domain name structure requirement refers to a preset domain name structure in a complete state, the preset domain name structure can comprise a transmission protocol, a domain name and a host type, and when the detection result shows that the domain name structure is in the complete state, the initial basic domain name is determined to be in a hard coding state; and when the detection result is that the domain name structure is not in a complete state, determining that the initial base domain name is not in a hard coding state. It can be understood that when the initial base domain name in the configuration file corresponding to the front-end server is in a hard coding state, the initial base domain name at this time belongs to a scene that needs special setting; and when the initial basic domain name in the configuration file corresponding to the front-end server is not in a hard coding state, the initial basic domain name at the moment belongs to a dynamically set scene. In an embodiment, the initial basic domain name can be configured in a configuration file only when the initial basic domain name belongs to a scene needing special setting, and the initial basic domain name is a domain name meeting the structural requirement of a preset domain name; for other scenes in which the basic domain name can be dynamically set, the basic domain name does not need to be configured in a configuration file.
In an embodiment, when the front-end server outputs the target network request, the status detection module 201 is further configured to:
when the initial basic domain name in the configuration file corresponding to the front-end server is in hard coding, acquiring the initial basic domain name in the configuration file corresponding to the front-end server;
detecting whether the initial basic domain name contains a preset transmission protocol or not;
and when the detection result shows that the initial basic domain name contains a preset transmission protocol, splicing the initial basic domain name into the target network request, and calling the initial basic domain name to open a page of the front-end server when the front-end server is monitored to be restarted.
The preset transmission protocol refers to a preset transmission protocol, and the preset transmission protocol may be an http transmission protocol. And when the detection result is that the initial basic domain name does not contain the preset transmission protocol, the step of analyzing the target network request to obtain the target relative path of the initial basic domain name can be executed.
The method and the device can judge whether a set basic domain name (baseURL) exists in the configuration file or not, and if the set basic domain name (baseURL) exists, whether the basic domain name starts with an http protocol or not can be judged. If the basic domain name starts with an http protocol, splicing a basic domain name (baseURL) on a specific target network request, and calling the initial basic domain name to open a page of the front-end server when the front-end server is monitored to be restarted. If the base domain name (baseURL) does not start with the http protocol or the base domain name (baseURL) is not set, the step of analyzing the target network request to obtain the target relative path of the initial base domain name may be performed, and the current domain name of the window.
The request analyzing module 202 is configured to analyze the target network request to obtain a target relative path of the initial base domain name when the detection result indicates that the initial base domain name in the configuration file corresponding to the front-end server is not in a hard-coded state.
In at least one embodiment of the present application, the target network request carries a target relative path of a base domain name, and the target relative path is displayed in a preset data format. The target relative path corresponds to a specific page of the front-end server, and the target relative path is preset according to each page of the front-end server. The target relative path means that a path exists relatively, for example, an a website (×) and a B website (baidu.com) exist, and if a web page 404.html exists under the root directories of the two websites, the same link, that is, "/404. html", is set for the two websites, that is, the target relative path.
Optionally, the analyzing the target network request to obtain the target relative path of the initial base domain name includes:
analyzing the target network request, and detecting whether the target network request carries a preset keyword or not;
when the detection result is that the target network request carries a preset keyword, determining a target code corresponding to the preset keyword;
and acquiring data in a preset data format in the target code, and taking the data in the preset data format as a target relative path.
The preset keywords are preset keywords, and the preset keywords can be keywords in a word form of 'baseURL'. And when the target network request is detected to carry the keyword of the word form of the baseURL, acquiring a code corresponding to the keyword of the word form of the baseURL as a target code. Since the target relative path is displayed in a preset data format, data in the preset data format is acquired as the target relative path.
Illustratively, taking the target network request as an axios network request as an example, the structure of the axios network request may be as follows:
Figure BDA0003081479350000161
obtaining a preset keyword of a baseURL word pattern by traversing the structure of the axios network request, and obtaining a code corresponding to the keyword of the baseURL word pattern: baseURL process. env. base _ API? process, env, BASE _ API'/admin' as object code. The preset data format refers to a format preset by system personnel, and in an embodiment, the preset data format may be a data format of/admin. By querying/admin formatted data, a target relative path can be obtained.
The function calling module 203 is configured to determine a target network environment of the backend server, and call a preset public function to obtain a target domain name of the target network environment.
In at least one embodiment of the present application, the network environment of the backend server may include a test environment, a development environment, and a production environment, and for each environment, there may also be several sub-environments. For example, for the test environment stg, a plurality of test sub-environments stg1, stg2 … stgn, and the like may be further included. If the environment information is a test environment, domain name information corresponding to the test environment; if the environment information is a development environment, the domain name information corresponds to the development environment, and if the environment information is a production environment, the domain name information corresponds to the production environment.
Optionally, the invoking a preset public function to obtain the target domain name corresponding to the target network environment includes:
acquiring a loading page corresponding to the target network environment;
determining website information of the loaded page;
and calling a preset public function to extract target data in the website information as a target domain name of the target network environment.
The preset public function refers to a preset function for acquiring a domain name, and in an embodiment, the public function may be a window. The window location host function returns the host portion + port number of the URL of the currently loaded page. For example: html, http:// www.abc.com/index, then www.abc.com would be obtained.
Because different network environments all have corresponding domain name information, the method for acquiring the domain name corresponding to the network environment by calling the preset public function replaces the method for pre-configuring the corresponding relation between the different network environments and the domain name, and the problems of large configuration amount and low configuration efficiency caused by more network environments can be solved.
The domain name splicing module 204 is configured to splice the target relative path and the target domain name to obtain a new base domain name, and store the new base domain name in a preset database.
In at least one embodiment of the present application, when the baseURL carried in the target network request is set to the relative path format of "/xxx", axios may automatically concatenate the target domain name obtained by the preset public function window.
Optionally, the splicing processing the target relative path and the target domain name to obtain a new base domain name includes:
acquiring a splicing rule corresponding to the target relative path and the target domain name;
and splicing and processing the target relative path and the target domain name according to the splicing rule to obtain a new basic domain name.
Illustratively, when the target relative path is "/404. html", the target domain name is www.abc.com, and the splicing rule is to place the target domain name before the target relative path, so that the new base domain name is www.abc.com/404. html.
The preset database is a preset database, and the preset database can be a target node of the block chain in consideration of privacy and confidentiality of data. Illustratively, a plurality of preset functions are newly built in the preset database, and the preset functions are used for storing one or more new basic domain names. When the preset function is used for storing a plurality of the new basic domain names, the new basic domain names with the same target domain name but different target relative paths can be stored in the same preset function.
According to the method and the device, the mode that the new base domain name obtained through splicing is stored in the preset database is used for replacing the mode that the new base domain name is filled into the configuration file corresponding to the front-end server, so that the problem that the configuration file cannot be used due to filling errors in the process of filling the new base domain name into the configuration file is solved; and because the configuration file corresponding to the front-end server is not filled with the new basic domain name, the problem that the domain name in the configuration file is not matched with the environment does not exist, the configuration file can be executed in different environments without manually modifying the configuration file, the multi-environment operation of the configuration file is realized, and the configuration flexibility is improved.
The page restart module 205 is configured to, when it is monitored that the front-end server is restarted, call a new base domain name stored in the preset database to start a page of the front-end server.
In at least one embodiment of the present application, a default basic domain name is used when the front-end server is started for the first time, and a downloaded new basic domain name is used when the front-end server is restarted, so that any new basic domain name can be used after an application program is released, thereby implementing dynamic switching of the basic domain name.
When the application is restarted, before the page of the front-end server is opened by calling the new base domain name stored in the preset database, the page restart module 205 is further configured to:
acquiring page information corresponding to the restart of the front-end server;
determining a local basic domain name corresponding to the page information and a target basic domain name in the preset database;
detecting whether the local basic domain name is consistent with the target basic domain name;
when the detection result is that the local basic domain name is consistent with the target basic domain name, calling the local basic domain name to open a page of the front-end server;
and when the detection result is that the local basic domain name is inconsistent with the target basic domain name, calling the target basic domain name stored in the preset database to open the page of the front-end server.
The local basic domain name refers to a default basic domain name which is downloaded to the local in advance. When the detection result is that the local basic domain name is consistent with the target basic domain name, indicating that the basic domain name corresponding to the page information in the preset database is not updated; and when the detection result shows that the local basic domain name is inconsistent with the target basic domain name, indicating that the basic domain name corresponding to the page information in the preset database is updated.
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present application. In the preferred embodiment of the present application, the computer device 3 includes a memory 31, at least one processor 32, at least one communication bus 33, and a transceiver 34.
It will be appreciated by those skilled in the art that the configuration of the computer device shown in fig. 3 is not a limitation of the embodiments of the present application, and may be a bus-type configuration or a star-type configuration, and that the computer device 3 may include more or less hardware or software than those shown, or a different arrangement of components.
In some embodiments, the computer device 3 is a device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and the hardware includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The computer device 3 may also include a client device, which includes, but is not limited to, any electronic product capable of interacting with a client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, etc.
It should be noted that the computer device 3 is only an example, and other existing or future electronic products, such as those that may be adapted to the present application, are also included in the scope of the present application and are incorporated herein by reference.
In some embodiments, the memory 31 has stored therein a computer program which, when executed by the at least one processor 32, implements all or part of the steps of the method for dynamic configuration of an underlying domain name as described. The Memory 31 includes a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (Electrically-Erasable Programmable Read-Only Memory (EEPROM)), an optical Read-Only disk (CD-ROM) or other optical disk Memory, a magnetic disk Memory, a tape Memory, or any other medium readable by a computer capable of carrying or storing data.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In some embodiments, the at least one processor 32 is a Control Unit (Control Unit) of the computer device 3, connects various components of the entire computer device 3 by using various interfaces and lines, and executes various functions and processes data of the computer device 3 by running or executing programs or modules stored in the memory 31 and calling data stored in the memory 31. For example, the at least one processor 32, when executing the computer program stored in the memory, implements all or part of the steps of the method for dynamically configuring the base domain name described in the embodiments of the present application; or implement all or part of the functionality of the dynamically configurable device for the base domain name. The at least one processor 32 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips.
In some embodiments, the at least one communication bus 33 is arranged to enable connection communication between the memory 31 and the at least one processor 32 or the like.
Although not shown, the computer device 3 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to implement functions of managing charging, discharging, and power consumption through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The computer device 3 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a computer device, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the specification may also be implemented by one unit or means through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present application and not for limiting, and although the present application is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present application without departing from the spirit and scope of the technical solutions of the present application.

Claims (10)

1. A dynamic configuration method for a basic domain name is characterized in that the dynamic configuration method for the basic domain name comprises the following steps:
when a target network request output by a front-end server is received, acquiring and detecting whether an initial basic domain name in a configuration file corresponding to the front-end server is in a hard coding state;
when the detection result is that the initial basic domain name in the configuration file corresponding to the front-end server is not in a hard coding state, analyzing the target network request to obtain a target relative path of the initial basic domain name;
determining a target network environment of a back-end server, and calling a preset public function to obtain a target domain name corresponding to the target network environment;
splicing the target relative path and the target domain name to obtain a new basic domain name, and storing the new basic domain name into a preset database, wherein the preset database is provided with a plurality of preset functions, the preset functions are used for storing the new basic domain name, and the new basic domain names which are the same in target domain name but different in target relative path are stored in the same preset function;
and when the condition that the front-end server is restarted is monitored, calling a new basic domain name stored in the preset database to open a page of the front-end server.
2. The method according to claim 1, wherein the obtaining and detecting whether the initial base domain name in the configuration file corresponding to the front-end server is in a hard-coded state comprises:
acquiring an initial basic domain name in a configuration file corresponding to the front-end server;
determining a domain name structure of the initial base domain name;
detecting whether the domain name structure meets the requirement of a preset domain name structure;
when the detection result shows that the domain name structure meets the requirement of a preset domain name structure, determining that the initial basic domain name is in a hard coding state;
and when the detection result indicates that the domain name structure does not meet the requirement of a preset domain name structure, determining that the initial basic domain name is not in a hard coding state.
3. The method of dynamically configuring an underlying domain name according to claim 1, further comprising:
when the detection result is that the initial basic domain name in the configuration file corresponding to the front-end server is in a hard coding state, acquiring the initial basic domain name in the configuration file corresponding to the front-end server;
detecting whether the initial basic domain name contains a preset transmission protocol or not;
and when the detection result shows that the initial basic domain name contains a preset transmission protocol, splicing the initial basic domain name into the target network request, and calling the initial basic domain name to open a page of the front-end server when the front-end server is monitored to be restarted.
4. The method of claim 1, wherein the parsing the target network request to obtain the target relative path of the initial base domain name comprises:
analyzing the target network request, and detecting whether the target network request carries a preset keyword or not;
when the detection result is that the target network request carries a preset keyword, determining a target code corresponding to the preset keyword;
and acquiring data in a preset data format in the target code, and taking the data in the preset data format as a target relative path.
5. The dynamic configuration method of the base domain name according to claim 1, wherein the calling the preset common function to obtain the target domain name corresponding to the target network environment comprises:
acquiring a loading page corresponding to the target network environment;
determining website information of the loaded page;
and calling a preset public function to extract target data in the website information as a target domain name of the target network environment.
6. The method according to claim 1, wherein the splicing processing the target relative path and the target domain name to obtain a new base domain name comprises:
acquiring a splicing rule corresponding to the target relative path and the target domain name;
and splicing and processing the target relative path and the target domain name according to the splicing rule to obtain a new basic domain name.
7. The method according to claim 1, wherein before the invoking of the new base domain name stored in the preset database opens the page of the front-end server, the method further comprises:
acquiring page information corresponding to the restart of the front-end server;
determining a local basic domain name corresponding to the page information and a target basic domain name in the preset database;
detecting whether the local basic domain name is consistent with the target basic domain name;
when the detection result is that the local basic domain name is consistent with the target basic domain name, calling the local basic domain name to open a page of the front-end server;
and when the detection result is that the local basic domain name is inconsistent with the target basic domain name, calling the target basic domain name stored in the preset database to open the page of the front-end server.
8. An apparatus for dynamically configuring a base domain name, the apparatus comprising:
the state detection module is used for acquiring and detecting whether an initial basic domain name in a configuration file corresponding to a front-end server is in a hard coding state or not when a target network request output by the front-end server is received;
the request analysis module is used for analyzing the target network request to obtain a target relative path of the initial basic domain name when the detection result indicates that the initial basic domain name in the configuration file corresponding to the front-end server is not in a hard coding state;
the function calling module is used for determining a target network environment of the back-end server and calling a preset public function to acquire a target domain name of the target network environment;
the domain name splicing module is used for splicing and processing the target relative path and the target domain name to obtain a new basic domain name and storing the new basic domain name into a preset database, the preset database is provided with a plurality of preset functions, the preset functions are used for storing the new basic domain name, and the new basic domain names which are the same in target domain name but different in target relative path are stored in the same preset function;
and the page restarting module is used for calling the new basic domain name stored in the preset database to start the page of the front-end server when the situation that the front-end server is restarted is monitored.
9. A computer device, characterized in that the computer device comprises a processor for implementing a method for dynamic configuration of a base domain name according to any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a method for dynamic configuration of a base domain name according to any one of claims 1 to 7.
CN202110567667.XA 2021-05-24 2021-05-24 Dynamic configuration method and device of basic domain name and related equipment Active CN113286014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110567667.XA CN113286014B (en) 2021-05-24 2021-05-24 Dynamic configuration method and device of basic domain name and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110567667.XA CN113286014B (en) 2021-05-24 2021-05-24 Dynamic configuration method and device of basic domain name and related equipment

Publications (2)

Publication Number Publication Date
CN113286014A CN113286014A (en) 2021-08-20
CN113286014B true CN113286014B (en) 2022-07-08

Family

ID=77281289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110567667.XA Active CN113286014B (en) 2021-05-24 2021-05-24 Dynamic configuration method and device of basic domain name and related equipment

Country Status (1)

Country Link
CN (1) CN113286014B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938396A (en) * 2022-05-09 2022-08-23 阿里巴巴(中国)有限公司 Routing method of service call request, method and device for creating service

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478985A (en) * 2020-04-15 2020-07-31 北京首汽智行科技有限公司 Service domain name basic information dynamic configuration method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030208472A1 (en) * 2000-04-11 2003-11-06 Pham Peter Manh Method and apparatus for transparent keyword-based hyperlink
US7134076B2 (en) * 2001-10-04 2006-11-07 International Business Machines Corporation Method and apparatus for portable universal resource locator and coding across runtime environments
US10171301B2 (en) * 2015-07-27 2019-01-01 International Business Machines Corporation Identifying hardcoded IP addresses
CN109714449B (en) * 2019-01-17 2022-05-17 平安科技(深圳)有限公司 Dynamic configuration method, device, equipment and storage medium for service domain name
CN112153095A (en) * 2019-06-28 2020-12-29 北京金山云网络技术有限公司 CDN function module operation method, operation device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478985A (en) * 2020-04-15 2020-07-31 北京首汽智行科技有限公司 Service domain name basic information dynamic configuration method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
vue——动态获取当前url,配置axios的baseURL;前端-xyq;《博客园》;20200612;第1页 *

Also Published As

Publication number Publication date
CN113286014A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
US10833955B2 (en) Dynamic delivery of software functions
CN109672722B (en) Data deployment method and device, computer storage medium and electronic equipment
US20130204918A1 (en) Computing environment configuration and initialization
WO2019085290A1 (en) Test preparation method and apparatus, terminal device, and storage medium
CN103077034B (en) hybrid virtualization platform JAVA application migration method and system
CN111600760B (en) Quality detection system, method and equipment of power grid operation monitoring system
CN111680104B (en) Data synchronization method, device, computer equipment and readable storage medium
CN110647739A (en) Software installation detection method, device, terminal and storage medium
CN113286014B (en) Dynamic configuration method and device of basic domain name and related equipment
CN112948275A (en) Test data generation method, device, equipment and storage medium
US11288170B1 (en) Log analysis debugging without running on real production environment
CN112256989A (en) Page loading method and device based on offline package, terminal equipment and storage medium
CN114281352A (en) Service deployment method and related equipment
CN110333964A (en) Abnormal log processing method and processing device, electronic equipment, storage medium
CN112416875B (en) Log management method, device, computer equipment and storage medium
CN113704120A (en) Data transmission method, device, equipment and storage medium
CN114374727B (en) Data calling method and device based on artificial intelligence, electronic equipment and medium
CN114385759B (en) Configuration file synchronization method and device, computer equipment and storage medium
CN116991331B (en) Log file storage method and device, storage medium and electronic device
CN113157645B (en) Cluster data migration method, device, equipment and storage medium
US20230409568A1 (en) Monitoring metadata synchronization and aggregation
CN116192784B (en) Message notification method, device and equipment based on broadcast robot
CN114860314B (en) Deployment upgrading method, device, equipment and medium based on database compatibility
TWI699657B (en) Cloud migration system
US20230064638A1 (en) Capturing referenced information in a report to resolve a computer problem

Legal Events

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