CN107908432A - Collocation method and device, the terminal device and readable storage medium storing program for executing of application program - Google Patents

Collocation method and device, the terminal device and readable storage medium storing program for executing of application program Download PDF

Info

Publication number
CN107908432A
CN107908432A CN201711142496.6A CN201711142496A CN107908432A CN 107908432 A CN107908432 A CN 107908432A CN 201711142496 A CN201711142496 A CN 201711142496A CN 107908432 A CN107908432 A CN 107908432A
Authority
CN
China
Prior art keywords
environment
configuration
subsystem
under
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711142496.6A
Other languages
Chinese (zh)
Inventor
邢尧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Spring Sports Management Co Ltd
Original Assignee
Shenzhen Spring Sports 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 Shenzhen Spring Sports Management Co Ltd filed Critical Shenzhen Spring Sports Management Co Ltd
Priority to CN201711142496.6A priority Critical patent/CN107908432A/en
Publication of CN107908432A publication Critical patent/CN107908432A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The invention discloses collocation method and device, the terminal device and readable storage medium storing program for executing of a kind of application program, this method includes:Determine the multiple subsystems included of application program, and build the tree structure of the configuration data of the plurality of subsystem, the leaf node of the tree structure is the address location of the multiple subsystem, the api interface being followed successively by under each environment of the plurality of subsystem configuration, the above-mentioned tree structure of depth-first traversal, if traversing address field, the api interface under the configured each environment of the corresponding subsystem in address location is added in the address location.The application program can be based on api interface of multiple subsystems under each environment in the tree structure, suitable for the access under each environment, without writing code independent under varying environment and compiling for application program, the effective workload for reducing developer is simultaneously saved the development time, and the scope of application of effective extension application, reduce limitation.

Description

Collocation method and device, the terminal device and readable storage medium storing program for executing of application program
Technical field
The present invention relates to field of communication technology, more particularly to a kind of collocation method of application program and device, terminal device And readable storage medium storing program for executing.
Background technology
Software development environment(Software Development Enironment, SDE)Refer in basic hardware and host On the basis of software, to support the engineering development of system software and application software and safeguarding the one group of software used.It by Software tool and environment integrated mechanism are formed, and, to support the correlated process of software development, activity and task, the latter is work for the former Tool is integrated and the exploitation of software, maintenance and management provide unified support.
Usual software development environment includes production environment, test environment, development environment and pre- issue environment etc..It is above-mentioned to open Hair ring border could also say that several stages of application development, and wherein production environment is the real environment usually said, finally Give the environment of user.
At present, developer is during development and application program, the domain name disposed in different environments by application program Difference, and each environment is mutually independent, and therefore, developer needs to write a set of code for each environment, and And be compiled, the workload of developer is larger, and the time of consumption is more, and whether application program can transport in different environments Whether row is compatible depending on the ecological environment of language used in application program, has certain limitation.
The content of the invention
It is a primary object of the present invention to provide a kind of collocation method of application program and device, terminal device and readable deposit Storage media, it is intended to solve in the prior art in development and application program, it is necessary to write a set of code for every kind of environment and carry out Editor, heavy workload, time-consuming, and the application program developed has limited technical problem.
To achieve the above object, first aspect present invention provides a kind of collocation method of application program, the described method includes:
Determine multiple subsystems that application program includes, and build the tree structure of the configuration data of the multiple subsystem, institute The leaf node for stating tree structure is the address field of the multiple subsystem;
The application programming interface API interfaces being followed successively by under each environment of the multiple subsystem configuration;
Tree structure described in depth-first traversal, if traversing described address field, by the corresponding subsystem in described address location The api interface united under configured each environment is added in described address field.
To achieve the above object, second aspect of the present invention provides a kind of configuration device of application program, and described device includes:
Determine structure module, the multiple subsystems included for determining application program, and build the configuration of the multiple subsystem The tree structure of data, the leaf node of the tree structure are the address field of the multiple subsystem;
Configuration module, for the application programming interface API interfaces being followed successively by under each environment of the multiple subsystem configuration;
Add module is traveled through, for tree structure described in depth-first traversal, if traversing described address field, by described Api interface under the configured each environment of the corresponding subsystem in location location is added in described address field.
To achieve the above object, third aspect present invention provides a kind of terminal device, including memory, processor and storage The computer program run on the memory and on the processor, the processor perform the computer program When, realize each step in the collocation method of application program as described in relation to the first aspect.
To achieve the above object, fourth aspect present invention provides a kind of readable storage medium storing program for executing, is stored thereon with computer journey Sequence, when the computer program is executed by processor, realize application program as described in relation to the first aspect collocation method it is each Step.
The present invention provides a kind of collocation method of application program, and this method includes:Determine that including for application program is multiple Subsystem, and the tree structure of the configuration data of the plurality of subsystem is built, the leaf node of the tree structure is the multiple son The address location of system, the API interfaces being followed successively by under each environment of the plurality of subsystem configuration, depth-first traversal are above-mentioned tree-like Structure, if traversing address field, the API interfaces under the configured each environment of the corresponding subsystem in address location are added Add in the address location.Relative to the prior art, the tree structure of multiple subsystems by building application program, and will be more API interfaces under a each environment of subsystem are added in the tree structure in the address field of corresponding subsystem, enabling Obtain API interface of the multiple subsystems of the application program under each environment so that it is tree-like that the application program can be based on this API interface of multiple subsystems under each environment in structure, suitable for the access under each environment, without for application program Code independent under varying environment and compiling are write, the effective workload for reducing developer is simultaneously saved the development time, and by In can adapt to various environment, the scope of application of the application program can be effectively extended, reducing limitation.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing skill Attached drawing is briefly described needed in art description, it should be apparent that, drawings in the following description are only the present invention Some embodiments, for those skilled in the art, without creative efforts, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the flow diagram of the collocation method of application program in the embodiment of the present invention;
Fig. 2 is another flow diagram of the collocation method of application program in the embodiment of the present invention;
Fig. 3 is the structure diagram of the program module of the configuration device of application program in the embodiment of the present invention;
Fig. 4 is the structure diagram of the program module of the configuration device of application program in the embodiment of the present invention.
Embodiment
Goal of the invention, feature, advantage to enable the present invention is more obvious and understandable, below in conjunction with the present invention Attached drawing in embodiment, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described reality It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, people in the art Member's all other embodiments obtained without making creative work, belong to the scope of protection of the invention.
Due in the prior art in development and application program, it is necessary to write code for every kind of environment and be compiled, depositing In heavy workload, time-consuming, and the application program developed has limited technical problem.
In order to solve the above-mentioned technical problem, the present invention proposes a kind of collocation method and device, terminal device of application program And readable storage medium storing program for executing, the tree structure of multiple subsystems by building application program, and by under each environment of multiple subsystems API interfaces be added in the tree structure in the address field of corresponding subsystem, enabling obtain the application program API interface of multiple subsystems under each environment so that the application program can be based on multiple subsystems in the tree structure API interfaces under each environment, suitable for the access under each environment, without being write for application program under varying environment solely Vertical code and compiling, the effective workload for reducing developer are simultaneously saved the development time, and due to can adapt to various rings Border, can effectively extend the scope of application of the application program, reduce limitation.
Referring to Fig. 1, for the flow diagram of the collocation method of application program in the embodiment of the present invention, this method includes:
Step 101, determine multiple subsystems that application program includes, and builds the tree-like of the configuration data of the multiple subsystem Structure, the leaf node of the tree structure are the address field of the multiple subsystem;
In embodiments of the present invention, the collocation method of above application program can be by the configuration device of application program(Hereinafter referred to as For:Configuration device)Realize, which is program module, and is stored in the readable storage medium storing program for executing of terminal device, Ke Yiyou Processor in terminal device is called and performed.
In embodiments of the present invention, for application program leaved for development, it is necessary to which writing a set of this by developer applies journey The code of sequence, and configure the API interfaces of multiple subsystems that the application program includes under each environment so that application program exists When being run under certain environment, the corresponding API interfaces of the environment can be called, and from the simultaneous of language used in application program Capacitive limits.Above-mentioned configuration process is then by above-mentioned configuration device realization.
Wherein, above-mentioned a variety of environment include production environment, test environment, development environment and pre- issue environment etc..
Wherein, configuration device will first determine multiple subsystems for including of application program, wherein, determining for subsystem can be with base Divided to obtain in the function that application program includes, for example, for a social networking application program, which can include Account registration subsystem, log in subsystem, password modification subsystem, have focused on good friend's subsystem, the subsystem that given out information etc. Deng.It is understood that multiple systems that application program includes can be determined based on actual conditions, and can be divided by multilayer Mode obtain the subsystem of least unit.It is understood that the subsystem in the embodiment of the present invention each means division most The subsystem of subsection, does not have other subsystems below these subsystems.
In embodiments of the present invention, configuration device, should by structure after multiple subsystems that definite application program includes The tree structure of the configuration data of multiple subsystems, wherein, configuration data includes the address of access sub-system.The tree structure Root node is application program, and leaf node is the address field of multiple subsystems of the application program, and the last layer of the leaf node Node is subsystem node, it is to be understood that in the tree structure of the structure, the address field as leaf node is sky, is used Its even higher level of node is accessed in addition(Subsystem)API interfaces.
Step 102, the API interfaces being followed successively by under each environment of the multiple subsystem configuration;
Tree structure described in step 103, depth-first traversal, if traversing described address field, by described address location pair Api interface under the configured each environment of the subsystem answered is added in described address field.
In embodiments of the present invention, the multiple subsystems for being followed successively by application program are configured to the API interfaces under each environment, wherein, API interfaces are access interfaces, can be by calling the api interface of the subsystem when needing to access some subsystem Mode, has access to the subsystem, it is to be understood that in order to adapt to a variety of different environment, each subsystem has each ring Corresponding API interfaces under border, for example, for logging in subsystem, it has accesses the login subsystem in a production environment API interfaces, access API interfaces of the login subsystem etc. under the test environment.
Wherein, configuration device is by the tree structure of the above-mentioned structure of depth-first traversal, should if traversing address field API interfaces under the configured each environment of the corresponding subsystem of address field are added to the address field, for example, for account Registration subsystem, if traversing the address field of the account registration subsystem, by under each environment of the account registration subsystem API interfaces be added to the address field in.
Wherein, depth-first traversal refers to the node along the extreme saturation tree of tree, searches the branch of tree as far as possible.
In embodiments of the present invention, by the tree structure for the multiple subsystems for building application program, and by multiple subsystems The API interfaces united under each environment are added in the tree structure in the address field of corresponding subsystem, enabling are somebody's turn to do API interface of the multiple subsystems of application program under each environment so that the application program can be based in the tree structure API interface of multiple subsystems under each environment, suitable for the access under each environment, without being write not for application program With code independent under environment and compiling, the effective workload for reducing developer is simultaneously saved the development time, and due to can Various environment are adapted to, can effectively extend the scope of application of the application program, reduce limitation.
Referring to Fig. 2, the flow diagram of the collocation method for the application program in the embodiment of the present invention, this method bag Include:
Step 201, determine multiple subsystems that application program includes, and builds the tree-like of the configuration data of the multiple subsystem Structure, the leaf node of the tree structure are the address field of the multiple subsystem;
It is understood that step 201 is similar to the content that step 101 in embodiment illustrated in fig. 1 describes, do not repeat herein.
Further, after the tree structure of the multiple word system constructings for the program that is applied, configuration device will be to this The configuration file of multiple subsystems carries out the access configuration under each environment, and according to the configuration text of configured multiple subsystems Part, obtains the readable configuration object instance under each environment of the plurality of subsystem.Concrete implementation process see step 202 and step Rapid 203.
Step 202, in the configuration file of the multiple subsystem, be followed successively by the multiple subsystem and configure under each environment Access address;
Step 203, by Command Line Parsing device by the configuration file of the multiple subsystem comprising configured access address, parsing Into the readable configuration object instance under each environment of the multiple subsystem;
Step 204, determine corresponding API interfaces of readable configuration object instance under each environment of the multiple subsystem;
Tree structure described in step 205, depth-first traversal, if traversing described address field, by described address location pair Api interface under the configured each environment of the subsystem answered is added in described address field.
In embodiments of the present invention, configuration device is followed successively by the configuration file of multiple subsystems of application program The plurality of subsystem configures the access address under each environment.
Wherein, access address can be universal resource locator(Uniform Resource Locator, URL)Address, Alternatively, the access address can be the relative path of the file access based on URL agreements.It is URL addresses in access address When, demonstrate the need for access and access from server, load the corresponding page.It is the text based on URL agreements in access address During the relative path that part accesses, show the relative path as the path in this end system, i.e., the relative path is Local Data Access address, enabling directly access to Local Data.And it is further, access address is URL addresses, usually should Under production environment and pre- issue environment, access address is the relative path of the file access based on URL agreements, usually should Under development environment and test environment.It is understood that it is based on URL by being used under development environment and test environment The relative path of the file access of agreement, it is possible to achieve the false data baffle of lightweight API interfaces, to be more easily to open Hair and test process set data, and due to that need not use server, can further facilitate the exploitation of developer.
In embodiments of the present invention, configuration device by by Command Line Parsing device by more height comprising configured access address The configuration file of system, the readable configuration object instance being parsed under each environment of the plurality of subsystem, wherein, which can To be the file of JSON data formats, the file of ini data formats, the file of YAML data formats and XML data lattice Any one in formula file.Wherein, an application program can have a configuration file, and can be stored in the configuration file The access address that multiple type families of the application program are united under each environment, or application program multiple subsystems have respectively it is corresponding Configuration file.Wherein, after being parsed to configuration file, readable configuration object parsing obtained under each environment of multiple subsystems is real Example.
Further, in order to effectively realizing the visit to the readable configuration object instance under each environment of multiple subsystems Ask, will determine the corresponding API interfaces of readable configuration object instance under the plurality of each environment of subsystem.
In embodiments of the present invention, determine multiple type families system that application program includes, and build matching somebody with somebody for the plurality of subsystem The tree structure of data is put, in the configuration file of the plurality of subsystem, the plurality of subsystem is followed successively by and configures under each environment Access address, by Command Line Parsing device by the configuration file of the plurality of subsystem comprising access address, is parsed into the plurality of son Readable configuration object instance under each environment of system, and determine the readable configuration object instance pair under the plurality of each environment of subsystem The API interfaces answered, depth-first traversal tree structure, if traversing address field, by the corresponding subsystem of address field API interfaces under configured each environment are added in the address location, due to that may finally obtain each ring of multiple subsystems API interfaces under border so that the access of application program under varying environment is adaptable to using the configured tree structure, Without writing different codes for varying environment, the workload of developer can be effectively reduced, is saved the time, and by In can adapt to various environment, it is capable of the scope of application of effective extension application, reduces limitation.
It is understood that through the above way configuration obtain include each environment of the multiple subsystems of application program under The tree structure of API interfaces, enabling support the API under multiple subsystem varying environments to access, and due to being configured with State tree structure so that application program can identify that either deployed environment accesses and the running environment or deployment running environment The corresponding API interfaces of environment access, and the operation of application program is no longer limited by environment, have cross-platform advantage. Access address when further, due to configuration can be the relative path of the access file based on URL agreements so that without Server can support the false data of API interfaces to simulate and access.
Referring to Fig. 3, be the structure diagram of the program module of the configuration device of application program in the embodiment of the present invention, bag Include:
Determine structure module 301, the multiple subsystems included for determining application program, and build matching somebody with somebody for the multiple subsystem The tree structure of data is put, the leaf node of the tree structure is the address field of the multiple subsystem;
In embodiments of the present invention, for application program leaved for development, it is necessary to write a set of application program by developer Code, and configure the API interfaces of multiple subsystems that the application program includes under each environment so that application program is at certain When being run under environment, the corresponding API interfaces of the environment can be called, and from the compatibility of language used in application program Limitation.Above-mentioned configuration process is then by above-mentioned configuration device realization.
Wherein, above-mentioned a variety of environment include production environment, test environment, development environment and pre- issue environment etc..
Wherein it is determined that module 301 is built by multiple subsystems that first definite application program includes, wherein, subsystem is really Surely can be divided to obtain based on the function that application program includes, for example, for a social networking application program, the application program Account registration subsystem can be included, subsystem, password modification subsystem is logged in, has focused on good friend's subsystem, has been given out information Subsystem etc..It is understood that multiple systems that application program includes can be determined based on actual conditions, and can pass through The mode of multilayer division obtains the subsystem of least unit.It is understood that the subsystem in the embodiment of the present invention is each meant The subsystem of the least unit of division, does not have other subsystems below these subsystems.
In embodiments of the present invention, determine that structure module 301, will after multiple subsystems that definite application program includes The tree structure of the configuration data of the plurality of subsystem is built, wherein, configuration data includes the address of access sub-system.This is tree-like The root node of structure is application program, and leaf node is the address field of multiple subsystems of the application program, and the leaf node Last layer node is subsystem node, it is to be understood that in the tree structure of the structure, the address field as leaf node is Sky, its even higher level of node is accessed for adding(Subsystem)API interfaces.
Configuration module 302, for the application programming interface being followed successively by under each environment of the multiple subsystem configuration API interfaces;
Add module 303 is traveled through, for tree structure described in depth-first traversal, if traversing described address field, by institute The api interface stated under the configured each environment of the corresponding subsystem in address location is added in described address field.
In embodiments of the present invention, configuration module 302 configures the multiple subsystems for being followed successively by application program under each environment API interfaces, wherein, API interfaces are access interfaces, can be by calling the son when needing to access some subsystem The mode of the api interface of system, has access to the subsystem, it is to be understood that each in order to adapt to a variety of different environment A subsystem has corresponding API interfaces under each environment, for example, for logging in subsystem, it has accesses in a production environment The API interfaces of the login subsystem, access API interfaces of the login subsystem etc. under the test environment.
Add module 303 is wherein traveled through by the tree structure of the above-mentioned structure of depth-first traversal, if traversing address field, The API interfaces under the configured each environment of the corresponding subsystem of the address field are then added to the address field, for example, right In account registration subsystem, if traversing the address field of the account registration subsystem, by each of the account registration subsystem API interfaces under environment are added in the address field.
Wherein, depth-first traversal refers to the node along the extreme saturation tree of tree, searches the branch of tree as far as possible.
In embodiments of the present invention, by the tree structure for the multiple subsystems for building application program, and by multiple subsystems The API interfaces united under each environment are added in the tree structure in the address field of corresponding subsystem, enabling are somebody's turn to do API interface of the multiple subsystems of application program under each environment so that the application program can be based in the tree structure API interface of multiple subsystems under each environment, suitable for the access under each environment, without being write not for application program With code independent under environment and compiling, the effective workload for reducing developer is simultaneously saved the development time, and due to can Various environment are adapted to, can effectively extend the scope of application of the application program, reduce limitation.
Referring to Fig. 4, be the structure diagram of the program module of the configuration device of application program in the embodiment of the present invention, bag Include:Definite structure module 301, configuration module 302 and traversal add module 303 in embodiment as shown in Figure 3, and with Fig. 3 institutes Show that the content described in embodiment is similar, do not repeat herein.
In embodiments of the present invention, configuration module 302 includes:
Example module 401, configures for carrying out the access under each environment to the configuration file of the multiple subsystem, and according to The configuration file of the multiple subsystem of configuration, obtains the readable configuration object instance under each environment of the multiple subsystem;
Determining module 402, the corresponding API of readable configuration object instance for determining under each environment of the multiple subsystem connect Mouthful.
Further, example module 401 includes:
Address configuration module 403, in the configuration file of the multiple subsystem, being followed successively by the multiple subsystem configuration Access address under each environment;
Parsing module 404, for by Command Line Parsing device by the configuration of the multiple subsystem comprising configured access address File, the readable configuration object instance being parsed under each environment of the multiple subsystem
Wherein, access address is uniform resource position mark URL address, alternatively, the access address is based on URL agreements The relative path of file access.
In embodiments of the present invention, address configuration module 403 is by the configuration file of multiple subsystems of application program, The access address being followed successively by under each environment of the plurality of subsystem configuration.
Wherein, access address can be universal resource locator(Uniform Resource Locator, URL)Address, Alternatively, the access address can be the relative path of the file access based on URL agreements.It is URL addresses in access address When, demonstrate the need for access and access from server, load the corresponding page.It is the text based on URL agreements in access address During the relative path that part accesses, show the relative path as the path in this end system, i.e., the relative path is Local Data Access address, enabling directly access to Local Data.And it is further, access address is URL addresses, usually should Under production environment and pre- issue environment, access address is the relative path of the file access based on URL agreements, usually should Under development environment and test environment.It is understood that it is based on URL by being used under development environment and test environment The relative path of the file access of agreement, it is possible to achieve the false data baffle of lightweight API interfaces, to be more easily to open Hair and test process set data, and due to that need not use server, can further facilitate the exploitation of developer.
In embodiments of the present invention, parsing module 404 will will include the more of configured access address by Command Line Parsing device The configuration file of a subsystem, the readable configuration object instance being parsed under each environment of the plurality of subsystem, wherein, configuration text Part can be the file of JSON data formats, the file of ini data formats, the file of YAML data formats and XML numbers According to any one in formatted file.Wherein, an application program can have a configuration file, and can be with the configuration file Store the access address that multiple type families of the application program are united under each environment, or multiple subsystems of application program have pair respectively The configuration file answered.Wherein, after being parsed to configuration file, parsing is obtained into the readable configuration pair under each environment of multiple subsystems As example.
Further, in order to effectively realizing the visit to the readable configuration object instance under each environment of multiple subsystems Ask, will determine the corresponding API interfaces of readable configuration object instance under the plurality of each environment of subsystem.
In embodiments of the present invention, determine multiple type families system that application program includes, and build matching somebody with somebody for the plurality of subsystem The tree structure of data is put, in the configuration file of the plurality of subsystem, the plurality of subsystem is followed successively by and configures under each environment Access address, by Command Line Parsing device by the configuration file of the plurality of subsystem comprising access address, is parsed into the plurality of son Readable configuration object instance under each environment of system, and determine the readable configuration object instance pair under the plurality of each environment of subsystem The API interfaces answered, depth-first traversal tree structure, if traversing address field, by the corresponding subsystem of address field API interfaces under configured each environment are added in the address location, due to that may finally obtain each ring of multiple subsystems API interfaces under border so that the access of application program under varying environment is adaptable to using the configured tree structure, Without writing different codes for varying environment, the workload of developer can be effectively reduced, is saved the time, and by In can adapt to various environment, it is capable of the scope of application of effective extension application, reduces limitation.
It is understood that through the above way configuration obtain include each environment of the multiple subsystems of application program under The tree structure of API interfaces, enabling support the API under multiple subsystem varying environments to access, and due to being configured with State tree structure so that application program can identify that either deployed environment accesses and the running environment or deployment running environment The corresponding API interfaces of environment access, and the operation of application program is no longer limited by environment, have cross-platform advantage. Access address when further, due to configuration can be the relative path of the access file based on URL agreements so that without Server can support the false data of API interfaces to simulate and access.
It is understood that in embodiments of the present invention, the embodiment of the configuration device of above application program can be based on It is specific to need to be combined, to obtain more feasible embodiments, do not repeat herein.
The present invention also provides a kind of terminal device, including memory, processor and it is stored on the memory and in institute State the computer program run on processor, it is characterised in that when the processor performs the computer program, realize Fig. 1 Or each step in the collocation method of the application program in embodiment illustrated in fig. 2.
The present invention also provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, and the computer program is located When managing device and performing, each step of the collocation method of application program in Fig. 1 or embodiment illustrated in fig. 2 is realized.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can pass through it Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the module, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or module Letter connection, can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separate, be shown as module The component shown may or may not be physical module, you can with positioned at a place, or can also be distributed to multiple On mixed-media network modules mixed-media.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, can also That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products Embody, which is stored in a storage medium, including some instructions are used so that a computer Equipment(Can be personal computer, server, or network equipment etc.)Perform the complete of each embodiment the method for the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It should be noted that for foregoing each method embodiment, describe, therefore it is all expressed as a series of for simplicity Combination of actions, but those skilled in the art should know, the present invention and from the limitation of described sequence of movement because According to the present invention, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs Necessary to bright.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is above the collocation method and device to a kind of application program provided by the present invention, terminal device and readable storage The description of medium, for those skilled in the art, according to the thought of the embodiment of the present invention, in embodiment and using model There will be changes are placed, to sum up, this specification content should not be construed as limiting the invention.

Claims (10)

  1. A kind of 1. collocation method of application program, it is characterised in that the described method includes:
    Determine multiple subsystems that application program includes, and build the tree structure of the configuration data of the multiple subsystem, institute The leaf node for stating tree structure is the address field of the multiple subsystem;
    The application programming interface API interfaces being followed successively by under each environment of the multiple subsystem configuration;
    Tree structure described in depth-first traversal, if traversing described address field, by the corresponding subsystem in described address location The api interface united under configured each environment is added in described address field.
  2. 2. collocation method according to claim 1, it is characterised in that described to be followed successively by each ring of the multiple subsystem configuration API interfaces under border, including:
    The access under each environment of configuration file progress to the multiple subsystem configures, and according to configured the multiple son The configuration file of system, obtains the readable configuration object instance under each environment of the multiple subsystem;
    Determine the corresponding API interfaces of readable configuration object instance under each environment of the multiple subsystem.
  3. 3. collocation method according to claim 2, it is characterised in that carried out respectively to the configuration file of the multiple subsystem Access configuration under environment, and according to the configuration file of configured the multiple subsystem, it is each to obtain the multiple subsystem Readable configuration object instance under environment, including:
    In the configuration file of the multiple subsystem, it is followed successively by the multiple subsystem and configures access address under each environment;
    By Command Line Parsing device by the configuration file of the multiple subsystem comprising configured access address, it is parsed into described more Readable configuration object instance under a each environment of subsystem.
  4. 4. collocation method according to claim 3, it is characterised in that the access address is uniform resource position mark URL Address, alternatively, the access address is the relative path of the file access based on URL agreements.
  5. 5. a kind of configuration device of application program, it is characterised in that described device includes:
    Determine structure module, the multiple subsystems included for determining application program, and build the configuration of the multiple subsystem The tree structure of data, the leaf node of the tree structure are the address field of the multiple subsystem;
    Configuration module, for the application programming interface API interfaces being followed successively by under each environment of the multiple subsystem configuration;
    Add module is traveled through, for tree structure described in depth-first traversal, if traversing described address field, by described Api interface under the configured each environment of the corresponding subsystem in location location is added in described address field.
  6. 6. configuration device according to claim 5, it is characterised in that the configuration module includes:
    Example module, the access for being carried out to the configuration file of the multiple subsystem under each environment configure, and according to having matched somebody with somebody The configuration file for the multiple subsystem put, obtains the readable configuration object instance under each environment of the multiple subsystem;
    Determining module, for determining the corresponding API interfaces of readable configuration object instance under each environment of the multiple subsystem.
  7. 7. configuration device according to claim 6, it is characterised in that the example module includes:
    Address configuration module, it is each in the configuration file of the multiple subsystem, being followed successively by the multiple subsystem configuration Access address under environment;
    Parsing module, for by Command Line Parsing device that the configuration of the multiple subsystem comprising configured access address is literary Part, the readable configuration object instance being parsed under each environment of the multiple subsystem.
  8. 8. configuration device according to claim 7, it is characterised in that the access address is uniform resource position mark URL Address, alternatively, the access address is the relative path of the file access based on URL agreements.
  9. 9. a kind of terminal device, including memory, processor and it is stored on the memory and runs on the processor Computer program, it is characterised in that when the processor performs the computer program, realize as Claims 1-4 is any Each step in the collocation method of application program described in one.
  10. 10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, it is characterised in that the computer program is processed When device performs, each step of the collocation method of application program of the realization as described in Claims 1-4 any one.
CN201711142496.6A 2017-11-17 2017-11-17 Collocation method and device, the terminal device and readable storage medium storing program for executing of application program Pending CN107908432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711142496.6A CN107908432A (en) 2017-11-17 2017-11-17 Collocation method and device, the terminal device and readable storage medium storing program for executing of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711142496.6A CN107908432A (en) 2017-11-17 2017-11-17 Collocation method and device, the terminal device and readable storage medium storing program for executing of application program

Publications (1)

Publication Number Publication Date
CN107908432A true CN107908432A (en) 2018-04-13

Family

ID=61846124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711142496.6A Pending CN107908432A (en) 2017-11-17 2017-11-17 Collocation method and device, the terminal device and readable storage medium storing program for executing of application program

Country Status (1)

Country Link
CN (1) CN107908432A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536489A (en) * 2018-04-23 2018-09-14 腾讯科技(深圳)有限公司 Match the method, apparatus and computer readable storage medium of resource environment
CN109828870A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Interface testing environmental management technique, device, electronic equipment and storage medium
CN109947407A (en) * 2019-03-07 2019-06-28 腾讯科技(北京)有限公司 A kind of data capture method and device
WO2019233293A1 (en) * 2018-06-07 2019-12-12 阿里巴巴集团控股有限公司 Method and apparatus for developing application program
CN111538542A (en) * 2020-03-24 2020-08-14 中国平安人寿保险股份有限公司 System configuration method and related device
CN111782330A (en) * 2020-07-07 2020-10-16 赞同科技股份有限公司 Web application-based page data acquisition method, device and equipment
CN112214238A (en) * 2020-10-15 2021-01-12 上海顺舟智能科技股份有限公司 Internet of things service system configuration method based on intelligent application scene
CN113656025A (en) * 2021-08-05 2021-11-16 北京趣拿软件科技有限公司 API processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677302A (en) * 2014-11-17 2016-06-15 阿里巴巴集团控股有限公司 Application program modularization developing method and device
US9544327B1 (en) * 2015-11-20 2017-01-10 International Business Machines Corporation Prioritizing security findings in a SAST tool based on historical security analysis
CN106776285A (en) * 2016-11-25 2017-05-31 北京小米移动软件有限公司 Webpage front-end adjustment method and device
CN107092491A (en) * 2017-04-21 2017-08-25 网宿科技股份有限公司 A kind of configuring load application method and system
CN107239678A (en) * 2017-05-10 2017-10-10 东南大学 Packet inspection method is beaten again in a kind of Android applications based on Java document directory structures

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677302A (en) * 2014-11-17 2016-06-15 阿里巴巴集团控股有限公司 Application program modularization developing method and device
US9544327B1 (en) * 2015-11-20 2017-01-10 International Business Machines Corporation Prioritizing security findings in a SAST tool based on historical security analysis
CN106776285A (en) * 2016-11-25 2017-05-31 北京小米移动软件有限公司 Webpage front-end adjustment method and device
CN107092491A (en) * 2017-04-21 2017-08-25 网宿科技股份有限公司 A kind of configuring load application method and system
CN107239678A (en) * 2017-05-10 2017-10-10 东南大学 Packet inspection method is beaten again in a kind of Android applications based on Java document directory structures

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536489B (en) * 2018-04-23 2022-03-25 腾讯科技(深圳)有限公司 Method, apparatus, and computer-readable storage medium for matching resource environments
CN108536489A (en) * 2018-04-23 2018-09-14 腾讯科技(深圳)有限公司 Match the method, apparatus and computer readable storage medium of resource environment
WO2019233293A1 (en) * 2018-06-07 2019-12-12 阿里巴巴集团控股有限公司 Method and apparatus for developing application program
CN110580147A (en) * 2018-06-07 2019-12-17 阿里巴巴集团控股有限公司 application program development method and device
CN109828870A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Interface testing environmental management technique, device, electronic equipment and storage medium
CN109947407A (en) * 2019-03-07 2019-06-28 腾讯科技(北京)有限公司 A kind of data capture method and device
CN109947407B (en) * 2019-03-07 2022-07-26 腾讯科技(北京)有限公司 Data acquisition method and device
CN111538542A (en) * 2020-03-24 2020-08-14 中国平安人寿保险股份有限公司 System configuration method and related device
CN111538542B (en) * 2020-03-24 2023-10-24 中国平安人寿保险股份有限公司 System configuration method and related device
CN111782330A (en) * 2020-07-07 2020-10-16 赞同科技股份有限公司 Web application-based page data acquisition method, device and equipment
CN111782330B (en) * 2020-07-07 2024-01-26 赞同科技股份有限公司 Page data acquisition method, device and equipment based on Web application
CN112214238B (en) * 2020-10-15 2022-02-22 上海顺舟智能科技股份有限公司 Internet of things service system configuration method based on intelligent application scene
CN112214238A (en) * 2020-10-15 2021-01-12 上海顺舟智能科技股份有限公司 Internet of things service system configuration method based on intelligent application scene
CN113656025A (en) * 2021-08-05 2021-11-16 北京趣拿软件科技有限公司 API processing method and device

Similar Documents

Publication Publication Date Title
CN107908432A (en) Collocation method and device, the terminal device and readable storage medium storing program for executing of application program
CN108156022A (en) A kind of service calling method, device and electronic equipment
CN105243159A (en) Visual script editor-based distributed web crawler system
CN104360951B (en) A kind of script method of testing and device
CN108170612A (en) A kind of automated testing method, device and server
EP3471344B1 (en) System and method for selecting proxy computer
CN103327080B (en) Create the method and device of Internet of Things control system
CN103020207B (en) Browser label page grouping management method and device
CN104168250B (en) Business Process Control method and device based on CGI frames
US20230409648A1 (en) Composite index on hierarchical nodes in the hierarchical data model within case model
US20220391179A1 (en) Accelerating application modernization
US10203943B2 (en) Static analysis and reconstruction of deep link handling in compiled applications
CN108427731A (en) Processing method, device, terminal device and the medium of page code
CN107729228A (en) Interface test method, device, storage medium and processor
CN105260388A (en) Optimization method of distributed vertical crawler service system
CN108008936A (en) A kind of data processing method, device and electronic equipment
CN110196729A (en) Application program update method, equipment and device and storage medium
CN107807937A (en) A kind of website SEO processing methods, apparatus and system
CN107480205A (en) A kind of method and apparatus for carrying out data partition
CN106354843A (en) Web crawler system and method
CN106294128B (en) A kind of automated testing method and device exporting report data
CN106021566A (en) Method, device and system for improving concurrent processing capacity of single database
CN107948052A (en) Information crawler method, apparatus, electronic equipment and system
US10691764B2 (en) Search engine optimization techniques
CN106843899A (en) A kind of web development methods and device based on Node.js platforms

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180413