CN112748962A - Application loading method and device, electronic equipment and computer readable medium - Google Patents

Application loading method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112748962A
CN112748962A CN202110089994.9A CN202110089994A CN112748962A CN 112748962 A CN112748962 A CN 112748962A CN 202110089994 A CN202110089994 A CN 202110089994A CN 112748962 A CN112748962 A CN 112748962A
Authority
CN
China
Prior art keywords
application
sub
loading
matching condition
target sub
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.)
Granted
Application number
CN202110089994.9A
Other languages
Chinese (zh)
Other versions
CN112748962B (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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202110089994.9A priority Critical patent/CN112748962B/en
Publication of CN112748962A publication Critical patent/CN112748962A/en
Application granted granted Critical
Publication of CN112748962B publication Critical patent/CN112748962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

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

Abstract

The embodiment of the disclosure discloses an application loading method, an application loading device, electronic equipment and a computer readable medium. One embodiment of the method comprises: acquiring a sub-application configuration file from a server in response to the completion of the loading of the main application; creating a plurality of sub-applications corresponding to the sub-application configuration files according to the sub-application configuration files; determining whether a route matching condition corresponding to the address of the target sub-application exists or not by the target sub-application with the changed address; and responding to the existence of a route matching condition corresponding to the address of the target sub-application, and loading the target sub-application through a path corresponding to the route matching condition. The implementation mode realizes the splitting of different functional modules and improves the loading speed.

Description

Application loading method and device, electronic equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to an application loading method, an application loading device, electronic equipment and a computer readable medium.
Background
The data platform typically provides modules for data presentation, multidimensional analysis, data management, user analysis, and the like. These modules will continue to iterate and a number of modules will be added later. When the related technologies generally place each service module in the same project, the following technical problems often exist:
first, the iterative optimization of a project requires a full deployment and upgrade of a certain module, which has low fault tolerance and increases development cost.
Secondly, with the continuous increase of modules, the codes are more and more, the packaging is slower and slower, and the rapid deployment is not facilitated.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Some embodiments of the present disclosure propose application loading methods, apparatuses, electronic devices and computer readable media to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide an application loading method, including: acquiring a sub-application configuration file from a server in response to the completion of the loading of the main application; creating a plurality of sub-applications corresponding to the sub-application configuration files according to the sub-application configuration files; for the target sub-application with the changed address, determining whether a route matching condition corresponding to the address of the target sub-application exists; and in response to the existence of the route matching condition corresponding to the address of the target sub-application, loading the target sub-application.
In a second aspect, some embodiments of the present disclosure provide an application loading apparatus, the apparatus comprising: an obtaining unit configured to obtain a sub-application configuration file from a server in response to completion of loading of the main application; the creating unit is configured to create a plurality of sub-applications corresponding to the sub-application configuration files according to the sub-application configuration files; a determining unit configured to determine, for a target sub-application whose address is changed, whether a route matching condition corresponding to the address of the target sub-application exists; and the loading unit is configured to respond to the existence of the route matching condition corresponding to the address of the target sub-application and load the target sub-application through the path corresponding to the route matching condition.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: the splitting for different functional modules in the application is achieved. Thus, when a module needs to be upgraded, a full upgrade of the entire application is avoided. In addition, since the self-application can be independently developed and deployed, the rapid packaging and deployment of a new module are realized under the condition of adding the new module. In this process, in response to the completion of the loading of the main application, the sub-application configuration file may be acquired from the server, and a plurality of sub-applications corresponding to the sub-application configuration file may be created according to the sub-application configuration file. Thereby, a pre-loading of the sub-application is achieved. In this way, loading speed can be increased when it is really necessary to load these applications.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
FIG. 2 is a flow diagram of some embodiments of an application loading method according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of an application loading method according to the present disclosure;
FIG. 4 is a schematic block diagram of some embodiments of an application loading device according to the present disclosure;
FIG. 5 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture of an application loading method or application loading apparatus to which some embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture may include a main engineering base, underlying routing, message buses, module loaders, front-end applications, and the like. As shown, the front terminal applications include application 1, application 2, and so on. In addition, a base front end module (base) may also be included.
In practice, the master application can be changed to the master engineering base by: a child application container is created in the primary application for rendering the child application. As an example, the host application may be a browser. The sub-applications may be used to implement functions such as data presentation, user analysis, and the like. On this basis, sub-applications may be registered, including but not limited to: setting the activation condition of the sub-application, the address of the sub-application, and the like. In practice, data or methods of the main application may be delivered to the sub-applications via the tips. The underlying route can be used for matching and loading the corresponding sub-applications, so that management of the plurality of sub-applications is achieved. The message bus is used for transmitting data. The module loader may load the corresponding sub-application in the event that a URL change is detected. In this process, the sub-applications may be loaded according to their names, e.g., app1, app2, etc. The sub-applications can respectively realize different functions corresponding to different services, such as service1, service2, and the like.
It should be understood that the number of sub-applications in fig. 1 is merely illustrative. There may be any number of sub-applications, as desired for implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of an application loading method according to the present disclosure is shown. The application loading method comprises the following steps:
step 201, in response to the completion of the loading of the main application, acquiring the sub-application configuration file from the server.
In some embodiments, the sub-application profiles may be pre-stored in the server. The sub-application configuration file can be continuously updated according to actual needs. At this time, the execution subject of the application loading method may acquire the latest sub application configuration file from the server. The sub-application configuration file may include related information of the sub-application, including but not limited to: name of the sub-application, entry address, mounted element identification, etc. Wherein the mount element identifies a container ID for identifying the mount sub-application.
In practice, the sub-applications may be obtained by dividing the content included in the page according to a certain function, as required. That is, some functions in a page are implemented as separate sub-applications. On this basis, the sub-applications are created and loaded as needed to implement the corresponding functions.
In some optional implementations of some embodiments, obtaining the sub-application configuration file from the server in response to completion of the loading of the main application comprises: in response to completion of loading of the primary application, generating and sending an authentication request including an authentication token, the authentication token being generated based on the user login information; and acquiring the sub-application configuration file from the server in response to receiving the information for representing the successful verification of the verification request.
In these implementations, secure authentication of user information is achieved by generating and sending an authentication request that includes an authentication token.
Step 202, according to the sub-application configuration file, creating a plurality of sub-applications corresponding to the sub-application configuration file.
In some embodiments, the execution agent may create a plurality of sub-applications according to a sub-application profile.
As an example, a sub-application may be created by: first, a container is created in the master application for each sub-application. Then, the resource file corresponding to each sub-application is pulled. By way of example, the resource file may be a Javascript file, a css file, or the like. These resource files may be used to render the sub-application.
In some alternative implementations of some embodiments, a global variable may be set to store shared external resource files. On the basis, the resource file corresponding to each sub-application is pulled, and the method comprises the following steps: and determining whether the global variable has a prestored external resource file, and acquiring the external resource file from the global variable in response to the fact that the global variable has the prestored external resource file. Therefore, the acquisition speed of the resource file can be improved, and network resources can be saved.
Optionally, the execution subject may also bind a lifecycle to each sub-application. At the same time, the master application may communicate with the sub-applications for a corresponding lifecycle.
Wherein the life cycle may comprise different states. As an example, the following five states may be included: load, bootstrap, mount, unload, unmount. Where load indicates the decision of which application to load. Bootstrap indicates the acquisition of static resources. Mount represents the lifecycle of the delete application. Unload represents the lifecycle of the delete application. Unmount may represent an uninstall application, such as deleting a DOM node. Because a binding lifecycle is applied to each sub-application, sub-applications can be uniformly hosted by using a plurality of lifecycle management platforms (such as Single-SPA).
Step 203, for the target application with changed address, determine whether there is a route matching condition corresponding to the address of the target sub-application.
In some embodiments, when a user clicks a menu tab in a page or inputs a new URL (Uniform Resource Locator), the address of the corresponding sub-application may change. Therefore, for a target sub-application whose address changes, it can be determined whether a route matching condition corresponding to the address of the target sub-application exists. In practice, these condition sets may be pre-registered sub-application activation conditions.
Step 204, in response to the existence of the route matching condition corresponding to the address of the target sub-application, the target sub-application is loaded through the path corresponding to the route matching condition.
As an example, in response to there being a route matching condition corresponding to the address of the target sub-application, content data of the sub-application is obtained through a path corresponding to the route matching condition, and the obtained content data is presented.
According to the method provided by some embodiments of the disclosure, the sub-application is loaded in a configuration mode, and the split of different functional modules in the application is realized. Thus, when a module needs to be upgraded, a full upgrade of the entire application is avoided. In addition, since the self-application can be independently developed and deployed, the rapid packaging and deployment of a new module are realized under the condition of adding the new module. In addition, the developed sub-applications can be fully utilized to realize the required functions, and only the sub-applications need to be written into the configuration file, so that the multiplexing of the sub-applications is realized.
With further reference to FIG. 3, a flow 300 of further embodiments of an application loading method is illustrated. The process 300 of the application loading method includes the following steps:
step 301, in response to the completion of the loading of the main application, acquiring the sub-application configuration file from the server.
Step 302, according to the sub-application configuration file, a plurality of sub-applications corresponding to the sub-application configuration file are created.
Step 303, for the target sub-application with the changed address, determining whether a route matching condition corresponding to the address of the target sub-application exists.
And 304, in response to the existence of the route matching condition corresponding to the address of the target sub-application, loading the target sub-application through a path corresponding to the route matching condition.
In some embodiments, specific implementations of steps 301 and 304 and technical effects thereof can refer to those embodiments corresponding to fig. 2, and are not described herein again.
Step 305, in response to detecting the data acquisition request corresponding to the target sub-application, intercepting the data acquisition request.
In practice, the multiple sub-applications are independent of each other to some extent. When the sub-applications are loaded in the main application, if a request is sent to a server corresponding to the sub-application, the request may fail due to limitations of the main application (e.g., an application browser).
Thus, in some embodiments, a data acquisition request of a sub-application may be detected. In response to detecting the data fetch request of the sub-application, the data fetch request may be intercepted.
Step 306, the data acquisition request is forwarded to the server.
And 307, receiving data corresponding to the data acquisition request returned by the server.
Step 308, distribute the data to the target sub-application.
As can be seen from fig. 3, compared with the description of some embodiments corresponding to fig. 2, the flow 300 of the application loading method in some embodiments corresponding to fig. 3 implements acquisition of sub-application data by intercepting a request of a sub-application and forwarding the request. In the process, the forwarding is carried out through the proxy, so that the request failure of directly requesting data due to the limitation of the main application is avoided.
With further reference to fig. 4, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of an application loading apparatus, which correspond to those of the method embodiments shown in fig. 2, and which may be applied in various electronic devices.
As shown in fig. 4, the application loading apparatus 400 of some embodiments includes: an acquisition unit 401, a creation unit 402, a determination unit 403, and a loading unit 404. Wherein the obtaining unit 401 is configured to obtain the sub-application configuration file from the server in response to the completion of the loading of the main application. The creating unit 402 is configured to create a plurality of sub-applications corresponding to the sub-application configuration file according to the sub-application configuration file. The determination unit 403 is configured to determine whether a route matching condition corresponding to the address of the target sub-application exists, for the target sub-application whose address has changed. The loading unit 404 is configured to respond to the existence of the route matching condition corresponding to the address of the target sub-application, and load the target sub-application through the path corresponding to the route matching condition.
In some optional implementations of some embodiments, the creating unit 402 is further configured to create a container for each sub-application in the main application; and pulling the resource file corresponding to each sub-application, wherein the resource file is used for rendering the sub-applications.
In some optional implementations of some embodiments, the loading unit 404 is further configured to, in response to that there is a route matching condition corresponding to the address of the target sub-application, obtain the content data of the sub-application through a path corresponding to the route matching condition; and displaying the content data in the container corresponding to the target sub-application.
In some optional implementations of some embodiments, the obtaining unit 401 is further configured to generate and send, in response to completion of the loading of the primary application, an authentication request including an authentication token, the authentication token being generated based on the user login information; and acquiring the sub-application configuration file from the server in response to receiving the information for representing the successful verification of the verification request.
In some optional implementations of some embodiments, the creating unit 402 is further configured to determine whether a pre-stored external resource file exists in the global variable; and responding to the external resource file which is stored in advance in the global variable, and acquiring the external resource file from the global variable.
In some optional implementations of some embodiments, the apparatus 400 further comprises: the intercepting unit is configured to respond to the detection of the data acquisition request corresponding to the target sub application and intercept the data acquisition request; the forwarding unit is configured to forward the data acquisition request to the server; the receiving unit is configured to receive data corresponding to the data acquisition request returned by the server; a distribution unit configured to distribute the data to the target sub-application.
It will be understood that the elements described in the apparatus 400 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 400 and the units included therein, and will not be described herein again.
Referring now to FIG. 5, a block diagram of an electronic device 500 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 505 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a sub-application configuration file from a server in response to the completion of the loading of the main application; creating a plurality of sub-applications corresponding to the sub-application configuration files according to the sub-application configuration files; determining whether a route matching condition corresponding to the address of the target sub-application exists or not by the target sub-application with the changed address; and responding to the existence of a route matching condition corresponding to the address of the target sub-application, and loading the target sub-application through a path corresponding to the route matching condition.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor comprising: the device comprises an acquisition unit, a creation unit, a determination unit and a loading unit. The names of these units do not in some cases form a limitation on the unit itself, and for example, the acquiring unit may also be described as a "unit that acquires a sub-application profile from a server".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. An application loading method, comprising:
acquiring a sub-application configuration file from a server in response to the completion of the loading of the main application;
creating a plurality of sub-applications corresponding to the sub-application configuration file according to the sub-application configuration file;
determining whether a route matching condition corresponding to the address of a target sub-application with a changed address exists for the target sub-application;
and responding to the existence of a route matching condition corresponding to the address of the target sub-application, and loading the target sub-application through a path corresponding to the route matching condition.
2. The method of claim 1, wherein the creating a plurality of sub-applications corresponding to the sub-application profile comprises:
creating a container in the master application for each sub-application;
and pulling a resource file corresponding to each sub-application, wherein the resource file is used for rendering the sub-applications.
3. The method of claim 2, wherein the in response to a presence of a route matching condition corresponding to the address of the target sub-application, loading the target sub-application through a path corresponding to the route matching condition comprises:
responding to the existence of a route matching condition corresponding to the address of the target sub-application, and acquiring content data of the sub-application through a path corresponding to the route matching condition;
and displaying the content data in the container corresponding to the target sub-application.
4. The method of claim 1, wherein the obtaining a child application configuration file from a server in response to completion of the loading of the primary application comprises:
in response to completion of loading of the primary application, generating and sending an authentication request including an authentication token, the authentication token generated based on user login information;
and acquiring the sub-application configuration file from the server in response to receiving the information for representing the successful verification of the verification request.
5. The method of claim 2, wherein the pulling the resource file corresponding to each sub-application comprises:
determining whether a prestored external resource file exists in the global variable;
and responding to the external resource file stored in advance in the global variable, and acquiring the external resource file from the global variable.
6. The method of claim 4, wherein the method further comprises:
in response to detecting a data acquisition request corresponding to a target sub-application, intercepting the data acquisition request;
forwarding the data acquisition request to a server;
receiving data corresponding to the data acquisition request returned by the server;
distributing the data to the target sub-application.
7. An application loading device comprising:
an obtaining unit configured to obtain a sub-application configuration file from a server in response to completion of loading of the main application;
the creating unit is configured to create a plurality of sub-applications corresponding to the sub-application configuration files according to the sub-application configuration files;
a determining unit configured to determine, for a target sub-application whose address is changed, whether a route matching condition corresponding to the address of the target sub-application exists;
and the loading unit is configured to respond to the existence of the route matching condition corresponding to the address of the target sub-application and load the target sub-application through the path corresponding to the route matching condition.
8. The apparatus of claim 7, wherein the creating unit is further configured to: creating a container in the master application for each sub-application;
and pulling a resource file corresponding to each sub-application, wherein the resource file is used for rendering the sub-applications.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
CN202110089994.9A 2021-01-22 2021-01-22 Application loading method, device, electronic equipment and computer readable medium Active CN112748962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110089994.9A CN112748962B (en) 2021-01-22 2021-01-22 Application loading method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110089994.9A CN112748962B (en) 2021-01-22 2021-01-22 Application loading method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112748962A true CN112748962A (en) 2021-05-04
CN112748962B CN112748962B (en) 2023-10-20

Family

ID=75652916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110089994.9A Active CN112748962B (en) 2021-01-22 2021-01-22 Application loading method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112748962B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535160A (en) * 2021-07-13 2021-10-22 杭州安恒信息技术股份有限公司 Application module multiplexing method, device, system, electronic device and storage medium
CN113691455A (en) * 2021-10-27 2021-11-23 深圳市信润富联数字科技有限公司 Routing scheduling method, device, equipment and readable storage medium
CN114398098A (en) * 2021-12-27 2022-04-26 北京五八信息技术有限公司 Application script execution method and device, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035804A (en) * 2014-06-26 2014-09-10 北京中电普华信息技术有限公司 Application integrating method and application integrating device
WO2018072634A1 (en) * 2016-10-18 2018-04-26 腾讯科技(深圳)有限公司 Application processing method and device
WO2018095306A1 (en) * 2016-11-25 2018-05-31 腾讯科技(深圳)有限公司 Method and device for processing application program page, and storage medium
CN111767090A (en) * 2020-06-28 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for starting small program, electronic equipment and storage medium
CN112000353A (en) * 2020-08-18 2020-11-27 北京三快在线科技有限公司 Application running method and device and storage medium
CN112149169A (en) * 2020-10-12 2020-12-29 Oppo广东移动通信有限公司 Application access method and device and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035804A (en) * 2014-06-26 2014-09-10 北京中电普华信息技术有限公司 Application integrating method and application integrating device
WO2018072634A1 (en) * 2016-10-18 2018-04-26 腾讯科技(深圳)有限公司 Application processing method and device
WO2018095306A1 (en) * 2016-11-25 2018-05-31 腾讯科技(深圳)有限公司 Method and device for processing application program page, and storage medium
CN111767090A (en) * 2020-06-28 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for starting small program, electronic equipment and storage medium
CN112000353A (en) * 2020-08-18 2020-11-27 北京三快在线科技有限公司 Application running method and device and storage medium
CN112149169A (en) * 2020-10-12 2020-12-29 Oppo广东移动通信有限公司 Application access method and device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SPLENDOUR: "基于 qiankun 的微前端应用改造踩坑记", pages 1 - 12, Retrieved from the Internet <URL:https://juejin.cn/post/6854573220742463502> *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535160A (en) * 2021-07-13 2021-10-22 杭州安恒信息技术股份有限公司 Application module multiplexing method, device, system, electronic device and storage medium
CN113535160B (en) * 2021-07-13 2024-03-26 杭州安恒信息技术股份有限公司 Method, device, system, electronic device and storage medium for multiplexing application modules
CN113691455A (en) * 2021-10-27 2021-11-23 深圳市信润富联数字科技有限公司 Routing scheduling method, device, equipment and readable storage medium
CN113691455B (en) * 2021-10-27 2022-02-15 深圳市信润富联数字科技有限公司 Routing scheduling method, device, equipment and readable storage medium
CN114398098A (en) * 2021-12-27 2022-04-26 北京五八信息技术有限公司 Application script execution method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN112748962B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN112748962B (en) Application loading method, device, electronic equipment and computer readable medium
CN111475180A (en) Method and system for updating client cache
CN110377440B (en) Information processing method and device
CN111427701A (en) Workflow engine system and business processing method
CN112416632B (en) Event communication method and device, electronic equipment and computer readable medium
CN112269959A (en) Display content control method and device, readable medium and electronic equipment
CN113760536A (en) Data caching method and device, electronic equipment and computer readable medium
CN114595065A (en) Data acquisition method and device, storage medium and electronic equipment
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN112714042B (en) Pressure testing method and device, electronic equipment and storage medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111382953A (en) Dynamic process generation method and device
CN114398035A (en) Method, apparatus, device and computer readable medium for providing service using component
CN115167874A (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN114860213A (en) Application package generation method, device, equipment and medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN112783903B (en) Method and device for generating update log
CN113132447A (en) Reverse proxy method and system
CN114398098B (en) Application script execution method, device, electronic equipment and computer readable medium
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN114356788B (en) Application program detection method, device, equipment and medium based on user information
CN110929233B (en) Information processing method and device
CN110099122B (en) Method and apparatus for sending network request
CN114428805A (en) Page display method, device, equipment and computer readable medium
CN115826981A (en) Real-time operating system driver adaptation method and device, electronic equipment and readable medium

Legal Events

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