CN114546436A - Micro front-end service updating method and device, electronic equipment and storage medium - Google Patents
Micro front-end service updating method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114546436A CN114546436A CN202111563732.8A CN202111563732A CN114546436A CN 114546436 A CN114546436 A CN 114546436A CN 202111563732 A CN202111563732 A CN 202111563732A CN 114546436 A CN114546436 A CN 114546436A
- Authority
- CN
- China
- Prior art keywords
- service
- sub
- target file
- file
- updated
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本公开涉及应用测试领域,尤其涉及一种微前端服务更新方法、装置、电子设备及存 储介质。The present disclosure relates to the field of application testing, and in particular, to a micro-front-end service update method, device, electronic device and storage medium.
背景技术Background technique
微前端应用是由多个前端应用聚合在一起组成的,其中,各个前端应用之间彼此独立, 互不干扰。对于用户而言,一个微前端应用就是一个完整的应用,但是微前端应用所包括 的多个前端应用在开发和测试过程中是互相独立的,然后再通过某种方式组合,得到微前 端应用。Micro-front-end applications are composed of multiple front-end applications, where each front-end application is independent of each other and does not interfere with each other. For users, a micro-front-end application is a complete application, but the multiple front-end applications included in the micro-front-end application are independent of each other in the development and testing process, and then combined in some way to obtain the micro-front-end application.
也就是说,在开发和测试过程中,微前端应用作为一个主服务,其中包括多个前端应 用分别对应的子服务,目前前端开发业内主流的微前端框架,能够实现子服务之间的技术 栈无关,支持子服务的独立开发、独立部署,以及子服务的运行时隔离。That is to say, in the process of development and testing, the micro-front-end application is used as a main service, which includes sub-services corresponding to multiple front-end applications. At present, the mainstream micro-front-end framework in the front-end development industry can realize the technology stack between sub-services. Unrelated, supports independent development, independent deployment of sub-services, and runtime isolation of sub-services.
但在开发过程中,需要开发者在本地分别下载并启动主服务服务器和子服务服务器, 如果远程主服务代码仓库有更新,开发者并不能实时感知到,还需要手动更新,而且,还 需要开发者手动修改主服务和子服务的开发配置项,才能启动微前端开发模式。因此,整 体流程繁琐,微前端接入开发成本高,微前端服务的更新不够方便,开发体验和效率非常 的低下。However, during the development process, the developer needs to download and start the main service server and the sub-service server locally. If the remote main service code repository is updated, the developer cannot perceive it in real time, and it needs to be updated manually. Moreover, the developer also needs to To start the micro-frontend development mode, manually modify the development configuration items of the main service and sub-services. Therefore, the overall process is cumbersome, the development cost of micro-frontend access is high, the update of micro-frontend services is not convenient, and the development experience and efficiency are very low.
发明内容SUMMARY OF THE INVENTION
本公开提供一种微前端服务更新方法、装置、电子设备及存储介质,以至少解决相关 技术中整体流程繁琐,微前端接入开发成本高,微前端服务的更新不够方便,开发体验和 效率非常的低下的问题。本公开的技术方案如下:The present disclosure provides a micro-front-end service update method, device, electronic device and storage medium, so as to at least solve the cumbersome overall process in related technologies, the high cost of micro-front-end access and development, the inconvenience of updating the micro-front-end service, and the high development experience and efficiency. low problem. The technical solution of the present disclosure is as follows:
根据本公开实施例的第一方面,提供一种微前端服务更新方法,应用于电子设备,所 述方法包括:According to a first aspect of the embodiments of the present disclosure, a method for updating a micro-frontend service is provided, applied to an electronic device, and the method includes:
响应于对子服务的开发指令,获取目标文件,所述目标文件为用于运行所述子服务所 属主服务的最新版本的文件,所述子服务及所述主服务均为基于微前端框架的服务;In response to the development instruction for the sub-service, obtain a target file, where the target file is a file used to run the latest version of the main service to which the sub-service belongs, and both the sub-service and the main service are based on the micro-frontend framework. Serve;
获取所述子服务的配置信息,根据所述配置信息启动所述子服务的网页服务器,并将 所述配置信息写入所述目标文件中,得到更新后的目标文件;Obtain the configuration information of the sub-service, start the web server of the sub-service according to the configuration information, and write the configuration information in the target file to obtain the updated target file;
读取所述更新后的目标文件,启动更新后的主服务的网页服务器,所述更新后的主服 务中包括所述子服务。Read the updated target file, start the web server of the updated main service, and the updated main service includes the sub-service.
可选的,所述响应于对子服务的开发指令,获取目标文件,包括:Optionally, obtaining the target file in response to the development instruction for the sub-service includes:
响应于对子服务的开发指令,从预设数据库获取所述主服务的目标文件的最新版本信 息;In response to the development instruction to the sub-service, obtain the latest version information of the target file of the main service from the preset database;
判断所述最新版本信息与本地存储的所述主服务的目标文件的版本信息是否一致;Determine whether the latest version information is consistent with the locally stored version information of the target file of the main service;
若不一致,则从所述预设数据库获取所述主服务的目标文件,并对本地存储的所述主 服务的目标文件进行更新。If inconsistent, obtain the target file of the main service from the preset database, and update the target file of the main service stored locally.
可选的,若所述最新版本信息与本地存储的所述主服务的目标文件的版本信息一致, 所述方法还包括:Optionally, if the latest version information is consistent with the version information of the target file of the main service stored locally, the method further includes:
获取本地存储的所述主服务的目标文件。Get the target file of the main service stored locally.
可选的,在所述获取目标文件之后,所述方法还包括:Optionally, after the acquiring the target file, the method further includes:
从所述目标文件中获取依赖软件包的安装文件,根据所述安装文件下载并安装所述依 赖软件包,所述依赖软件包为所述主服务所需的外部目标文件;Obtain the installation file of the dependent software package from the target file, download and install the dependent software package according to the installation file, and the dependent software package is an external target file required by the main service;
所述读取所述更新后的目标文件,启动更新后的主服务的网页服务器,包括:The described reading of the updated target file, and starting the web server of the updated main service, include:
读取所述更新后的目标文件,调用所述依赖软件包,启动更新后的主服务的网页服务 器。Read the updated target file, call the dependent software package, and start the updated web server of the main service.
可选的,所述将所述配置信息写入所述目标文件中,得到更新后的目标文件,包括:Optionally, writing the configuration information into the target file to obtain an updated target file, including:
根据所述配置信息,生成所述子服务的模拟文件;generating a simulation file of the sub-service according to the configuration information;
查询所述目标文件中是否包括所述子服务对应的模拟文件;query whether the target file includes the simulation file corresponding to the sub-service;
若包括,则将所述目标文件中的模拟文件替换为所生成的模拟文件,得到所述更新后 的目标文件;If included, then the simulation file in the described target file is replaced by the simulation file that is generated, obtains described updated target file;
若不包括,则将所述模拟文件添加至所述目标文件中,得到所述更新后的目标文件。If not included, the simulation file is added to the target file to obtain the updated target file.
可选的,所述读取所述更新后的目标文件,启动更新后的主服务的网页服务器,包括:Optionally, reading the updated target file and starting the updated web server of the main service, including:
读取所述更新后的目标文件所包括的至少一个子服务的模拟文件,得到所述至少一个 子服务的配置信息;Read the simulation file of at least one sub-service included in the updated target file, and obtain the configuration information of the at least one sub-service;
启动更新后的主服务的网页服务器,并根据所述至少一个子服务的配置信息,在所述 更新后的主服务中对所述至少一个子服务进行注册。Start the web server of the updated main service, and register the at least one sub-service in the updated main service according to the configuration information of the at least one sub-service.
可选的,所述获取所述子服务的配置信息,包括:Optionally, the obtaining configuration information of the sub-service includes:
响应于所述开发指令,利用脚手架工具创建所述子服务的模板文件;In response to the development instruction, a scaffolding tool is used to create a template file of the sub-service;
响应于对所述模板文件的编辑指令,获取所述子服务的配置信息。In response to the editing instruction for the template file, the configuration information of the sub-service is acquired.
根据本公开实施例的第二方面,提供一种微前端服务更新装置,应用于电子设备,所 述装置包括:According to a second aspect of the embodiments of the present disclosure, a micro-front-end service updating apparatus is provided, applied to electronic equipment, and the apparatus includes:
获取单元,被配置为执行响应于对子服务的开发指令,获取目标文件,所述目标文件 为用于运行所述子服务所属主服务的最新版本的文件,所述子服务及所述主服务均为基于 微前端框架的服务;an obtaining unit, configured to execute a development instruction in response to the sub-service, and obtain a target file, where the target file is a file used to run the latest version of the main service to which the sub-service belongs, the sub-service and the main service All are services based on the micro front-end framework;
更新单元,被配置为执行获取所述子服务的配置信息,根据所述配置信息启动所述子 服务的网页服务器,并将所述配置信息写入所述目标文件中,得到更新后的目标文件;an update unit, configured to obtain the configuration information of the sub-service, start the web server of the sub-service according to the configuration information, and write the configuration information into the target file to obtain the updated target file ;
启动单元,被配置为执行读取所述更新后的目标文件,启动更新后的主服务的网页服 务器,所述更新后的主服务中包括所述子服务。A startup unit, configured to read the updated target file, and start the web server of the updated main service, where the updated main service includes the sub-service.
可选的,所述获取单元,被配置为执行:Optionally, the obtaining unit is configured to execute:
响应于对子服务的开发指令,从预设数据库获取所述主服务的目标文件的最新版本信 息;In response to the development instruction to the sub-service, obtain the latest version information of the target file of the main service from the preset database;
判断所述最新版本信息与本地存储的所述主服务的目标文件的版本信息是否一致;Determine whether the latest version information is consistent with the locally stored version information of the target file of the main service;
若不一致,则从所述预设数据库获取所述主服务的目标文件,并对本地存储的所述主 服务的目标文件进行更新。If inconsistent, obtain the target file of the main service from the preset database, and update the target file of the main service stored locally.
可选的,所述获取单元,被配置为执行:Optionally, the obtaining unit is configured to execute:
若所述最新版本信息与本地存储的所述主服务的目标文件的版本信息一致,则获取本 地存储的所述主服务的目标文件。If the latest version information is consistent with the version information of the target file of the main service stored locally, the target file of the main service stored locally is acquired.
可选的,所述获取单元,被配置为执行:Optionally, the obtaining unit is configured to execute:
从所述目标文件中获取依赖软件包的安装文件,根据所述安装文件下载并安装所述依 赖软件包,所述依赖软件包为所述主服务所需的外部文件;Obtain the installation file of the dependent software package from the target file, download and install the dependent software package according to the installation file, and the dependent software package is an external file required by the main service;
所述启动单元,被配置为执行:The startup unit, configured to execute:
读取所述更新后的目标文件,调用所述依赖软件包,启动更新后的主服务的网页服务 器。Read the updated target file, call the dependent software package, and start the updated web server of the main service.
可选的,所述更新单元,被配置为执行:Optionally, the updating unit is configured to execute:
根据所述配置信息,生成所述子服务的模拟文件;generating a simulation file of the sub-service according to the configuration information;
查询所述目标文件中是否包括所述子服务对应的模拟文件;query whether the target file includes the simulation file corresponding to the sub-service;
若包括,则将所述目标文件中的模拟文件替换为所生成的模拟文件,得到所述更新后 的目标文件;If included, then the simulation file in the described target file is replaced by the simulation file that is generated, obtains described updated target file;
若不包括,则将所述模拟文件添加至所述目标文件中,得到所述更新后的目标文件。If not included, the simulation file is added to the target file to obtain the updated target file.
可选的,所述更新单元,被配置为执行:Optionally, the updating unit is configured to execute:
读取所述更新后的目标文件所包括的至少一个子服务的模拟文件,得到所述至少一个 子服务的配置信息;Read the simulation file of at least one sub-service included in the updated target file, and obtain the configuration information of the at least one sub-service;
启动更新后的主服务的网页服务器,并根据所述至少一个子服务的配置信息,在所述 更新后的主服务中对所述至少一个子服务进行注册。Start the web server of the updated main service, and register the at least one sub-service in the updated main service according to the configuration information of the at least one sub-service.
可选的,所述更新单元,被配置为执行:Optionally, the updating unit is configured to execute:
响应于所述开发指令,利用脚手架工具创建所述子服务的模板文件;In response to the development instruction, a scaffolding tool is used to create a template file of the sub-service;
响应于对所述模板文件的编辑指令,获取所述子服务的配置信息。In response to the editing instruction for the template file, the configuration information of the sub-service is acquired.
根据本公开实施例的第三方面,提供一种微前端服务更新电子设备,包括:According to a third aspect of the embodiments of the present disclosure, a micro-frontend service updating electronic device is provided, including:
处理器;processor;
用于存储所述处理器可执行指令的存储器;memory for storing instructions executable by the processor;
其中,所述处理器被配置为执行所述指令,以实现上述第一项所述的微前端服务更新 方法。Wherein, the processor is configured to execute the instructions to implement the micro-frontend service update method described in the first item above.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,当所述计算机可读存 储介质中的指令由微前端服务更新电子设备的处理器执行时,使得微前端服务更新电子设 备能够执行上述任一项所述的微前端服务更新方法。According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, and when instructions in the computer-readable storage medium are executed by a processor of a micro-frontend service updating electronic device, the micro-frontend service updates the electronic device The micro-frontend service update method described in any one of the above can be executed.
根据本公开实施例的第五方面,提供一种计算机程序产品,包括计算机程序/指令, 所述计算机程序/指令被处理器执行时实现上述第一项所述的微前端服务更新方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including computer programs/instructions, when the computer programs/instructions are executed by a processor, the micro-frontend service updating method described in the first item above is implemented.
本公开的实施例提供的技术方案至少带来以下有益效果:The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
电子设备响应于对子服务的开发指令,获取目标文件,目标文件为用于运行子服务所 属主服务的最新版本的文件;获取子服务的配置信息,根据配置信息启动子服务的网页服 务器,并将配置信息写入目标文件中,得到更新后的目标文件;读取更新后的目标文件, 启动更新后的主服务的网页服务器,更新后的主服务中包括子项。In response to the development instruction for the sub-service, the electronic device acquires a target file, where the target file is a file used to run the latest version of the main service to which the sub-service belongs; acquires the configuration information of the sub-service, starts the web server of the sub-service according to the configuration information, and Write the configuration information into the target file to obtain the updated target file; read the updated target file, start the web server of the updated main service, and the updated main service includes sub-items.
也就是说,在接收到开发指令之后,可以自动对主服务的目标文件进行配置,这样, 开发者只需要专注于微前端应用中子服务的开发配置以及业务开发,无需关心子服务对应 的主服务的代码如何拉取、更新、配置,微前端服务可以实现自动更新,从而提高了微前 端本地集成开发的效率。That is to say, after receiving the development instruction, the target file of the main service can be automatically configured, so that the developer only needs to focus on the development configuration and business development of the sub-service in the micro-frontend application, and does not need to care about the main service corresponding to the sub-service. How to pull, update, and configure the code of the service, the micro-frontend service can be automatically updated, thereby improving the efficiency of the local integrated development of the micro-frontend.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限 制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例, 并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.
图1是根据一示例性实施例示出的一种微前端服务更新方法的流程图。Fig. 1 is a flow chart of a method for updating a micro-frontend service according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种图1中S101的流程图。FIG. 2 is a flowchart of S101 in FIG. 1 according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种图1中S102的流程图。FIG. 3 is a flowchart of S102 in FIG. 1 according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种微前端服务更新装置的框图。Fig. 4 is a block diagram of an apparatus for updating a micro-frontend service according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种用于微前端服务更新的电子设备的框图。Fig. 5 is a block diagram of an electronic device for updating a micro-frontend service according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种用于微前端服务更新的装置的框图。Fig. 6 is a block diagram of an apparatus for updating a micro-frontend service according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实 施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二” 等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的 数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描 述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一 致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面 相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种微前端服务更新方法的流程图,如图1所示, 该微前端服务更新方法应用于电子设备,具体包括以下步骤。Fig. 1 is a flowchart of a method for updating a micro-frontend service according to an exemplary embodiment. As shown in Fig. 1 , the method for updating a micro-frontend service is applied to an electronic device, and specifically includes the following steps.
在步骤S101中,响应于对子服务的开发指令,获取目标文件,目标文件为用于运行子服务所属主服务的最新版本的文件,子服务及主服务均为基于微前端框架的服务。In step S101, in response to the development instruction for the sub-service, a target file is obtained, the target file is a file for running the latest version of the main service to which the sub-service belongs, and both the sub-service and the main service are services based on the micro-frontend framework.
在本公开中,电子设备可以运行微前端应用,微前端应用是由多个前端应用聚合在一 起组成的,其中,各个前端应用之间彼此独立,互不干扰,在开发和测试过程中,微前端 应用作为一个主服务,其中包括多个前端应用分别对应的子服务,开发者可以分别对单独 的前端应用对应的子服务进行开发和测试。In the present disclosure, an electronic device can run a micro-front-end application, and a micro-front-end application is formed by aggregating multiple front-end applications, wherein each front-end application is independent from each other and does not interfere with each other. As a main service, a front-end application includes sub-services corresponding to multiple front-end applications. Developers can develop and test sub-services corresponding to individual front-end applications.
本步骤中,目标文件为用于运行子服务所属主服务的最新版本的文件,可以是代码文 件,也可以是编译后的指令文件,具体不做限定。一种实现方式中,可以直接从预设数据 库获取目标文件,另一种实现方式中,在本地存储主服务的目标文件的备份,在这种情况 下,可以比较本地存储主服务的目标文件与预设数据库中的目标文件的版本。In this step, the target file is a file used to run the latest version of the main service to which the sub-service belongs, which may be a code file or a compiled instruction file, which is not specifically limited. In one implementation, the target file can be obtained directly from the preset database, and in another implementation, a backup of the target file of the main service is stored locally. In this case, the target file of the local storage main service can be compared with The version of the target file in the preset database.
具体来说,如图2所示,为一种实现方式中,S101的流程示意图,其中包括如下步骤:Specifically, as shown in FIG. 2, it is a schematic flowchart of S101 in an implementation manner, which includes the following steps:
S1011:响应于对子服务的开发指令,从预设数据库获取主服务的目标文件的最新版 本信息。S1011: Acquire the latest version information of the target file of the main service from the preset database in response to the development instruction for the sub-service.
其中,预设数据库可以为git数据库,在git数据库中存储主服务的目标文件。主服务的目标文件通常为package.json文件,目标文件的版本信息通常为package.json中的version字段,可以是数字组成的版本号,也可以是版本更新的日期,等等,具体不作限 定。The preset database may be a git database, and the target file of the main service is stored in the git database. The target file of the main service is usually the package.json file, and the version information of the target file is usually the version field in the package.json, which can be the version number composed of numbers, or the date of the version update, etc., which are not limited in detail.
S1012:判断最新版本信息与本地存储的主服务的目标文件的版本信息是否一致,若 不一致,则执行S1013;若一致,则执行S1014。S1012: Determine whether the latest version information is consistent with the version information of the target file of the main service stored locally, if not, execute S1013; if they are consistent, execute S1014.
S1013:从预设数据库获取主服务的目标文件,并对本地存储的主服务的目标文件进 行更新。这样,通过对目标文件的最新版本信息的一致性判断,可以确保获取到的目标文 件是最新版本的,同时也可以及时、主动地对本地存储的目标文件进行更新。S1013: Acquire the target file of the main service from the preset database, and update the target file of the main service stored locally. In this way, by judging the consistency of the latest version information of the target file, it can be ensured that the obtained target file is the latest version, and at the same time, the locally stored target file can be updated in a timely and active manner.
一种实现方式中,对本地存储的主服务的目标文件进行更新,可以是根据本地存储版 本与预设数据库中版本之间的差异,对本地存储版本进行修改,或者,也可以是在最新版 本信息与本地存储的主服务的目标文件的版本信息不一致的情况下,删除本地存储的主服 务的目标文件,然后,重新从预设数据库下载并进行备份。In an implementation manner, updating the target file of the locally stored main service may be to modify the locally stored version according to the difference between the locally stored version and the version in the preset database, or it may also be in the latest version. If the information is inconsistent with the version information of the target file of the main service stored locally, delete the target file of the main service stored locally, and then download and back it up again from the preset database.
S1014:获取本地存储的主服务的目标文件,作为目标文件。这样,可以减少从预设数据库拉取数据的次数和数据量,减少系统资源的占用。S1014: Obtain the target file of the main service stored locally as the target file. In this way, the number of times and the amount of data to be pulled from the preset database can be reduced, and the occupation of system resources can be reduced.
这样,通过在本地存储主服务的目标文件的备份,可以减少从预设数据库获取目标文 件的次数,从而减少数据传输负载,提高效率,而且,可以实现自动拉取微前端主服务最 新代码,减少开发者所需的操作流程,提高开发效率。In this way, by locally storing the backup of the target file of the main service, the number of times of obtaining the target file from the preset database can be reduced, thereby reducing the data transmission load and improving the efficiency. Moreover, the latest code of the main service of the micro-frontend can be automatically pulled, reducing the The operation process required by developers to improve development efficiency.
在本公开中,子服务和主服务之间采用的是微前端开发框架,如qiankun(乾坤)框架或single-spa(single page web application,单页应用程序)框架,等等,那么,需要预先在本地安装微前端开发脚手架工具,然后,才能接收到开发指令,其中,开发指令中可 以携带微前端开发脚手架工具中特定的命令函数以及传递参数,比如,开发者可以通过依 次输入如下内容,发送开发指令:“ksc serve—port 3000—force”。In this disclosure, a micro-front-end development framework is used between the sub-service and the main service, such as the qiankun (Qiankun) framework or the single-spa (single page web application, single-page application) framework, etc. Install the micro-front-end development scaffolding tool locally, and then receive the development instructions. The development instructions can carry specific command functions and transfer parameters in the micro-front-end development scaffolding tool. For example, the developer can enter the following content in turn to send Development command: "ksc serve—port 3000—force".
一种实现方式中,在获取目标文件之后,可以从目标文件中获取依赖软件包的安装文 件,根据安装文件下载并安装依赖软件包。其中,安装文件可以为脚本文件,也可以是普 通源码文件,具体不做限定,比如,安装文件可以为npm install,依赖软件包为主服务所 需的外部文件,通常在package.json文件dependencies和devDependencies字段,外部文 件可以为代码文件或编译后的指令文件,等等。In an implementation manner, after obtaining the target file, the installation file of the dependent software package may be obtained from the target file, and the dependent software package may be downloaded and installed according to the installation file. Among them, the installation file can be a script file or an ordinary source code file, which is not limited in detail. For example, the installation file can be npm install, which depends on the external files required by the software package as the main service, usually in the package.json file dependencies and devDependencies field, external files can be code files or compiled instruction files, etc.
这样,由于目标文件是用于运行主服务的最新版本的文件,因此,依赖软件包也是主 服务所需的最新的外部文件,在安装依赖软件包之后,可以读取更新后的目标文件,通过 调用依赖软件包,启动更新后的微前端主服务的网页服务器,主服务的网页服务器也就是 用于提供主服务的网页服务器。换句话说,可以实现对主服务的自动更新,提高微前端本 地集成开发的效率。In this way, since the target file is the latest version of the file used to run the main service, the dependent package is also the latest external file required by the main service. After installing the dependent package, the updated target file can be read by Call the dependent software package to start the web server of the updated micro-frontend main service. The web server of the main service is the web server used to provide the main service. In other words, automatic updates to the main service can be achieved, improving the efficiency of local integrated development of micro-frontends.
在步骤S102中,获取子服务的配置信息,根据配置信息启动子服务的网页服务器,并将配置信息写入目标文件中,得到更新后的目标文件。In step S102, the configuration information of the sub-service is acquired, the web server of the sub-service is started according to the configuration information, and the configuration information is written into the target file to obtain the updated target file.
在本步骤中,根据开发人员的配置,确定子服务的配置信息,其中,子服务的配置信 息可以从配置文件.sub-app.js中读取,其中包括子服务的域名(host)、端口号(port)、服务名称(project name)、服务首页url(uniform resource locator,统一资源定位系统)地址等一项或多项信息。In this step, the configuration information of the sub-service is determined according to the configuration of the developer, wherein the configuration information of the sub-service can be read from the configuration file .sub-app.js, which includes the domain name (host) and port of the sub-service. One or more pieces of information, such as port number (port), service name (project name), and service homepage url (uniform resource locator, uniform resource locator) address.
将配置信息写入目标文件中,具体可以为写入目标文件所包括的模拟文件中,模拟文 件即为mock文件,子服务的配置文件可以位于目标文件中该子服务的根目录下。在测试 过程中,对于某些不容易构造或者不容易获取的对象,创建一个对应的虚拟的mock文件, 对该mock文件进行测试,从而实现对这些不容易构造或者不容易获取的对象的测试。The configuration information is written into the target file, which can be specifically written into the simulation file included in the target file. The simulation file is the mock file, and the configuration file of the sub-service can be located in the root directory of the sub-service in the target file. In the testing process, for some objects that are not easy to construct or obtain, a corresponding virtual mock file is created, and the mock file is tested, so as to realize the testing of these objects that are not easy to construct or obtain.
具体而言,获取子服务的配置信息,可以包括:首先,响应于开发指令,利用脚手架工具创建子服务的模板文件;然后,响应于对模板文件的编辑指令,获取子服务的配置信息。Specifically, acquiring the configuration information of the sub-service may include: first, in response to the development instruction, using a scaffolding tool to create a template file of the sub-service; then, in response to an editing instruction for the template file, acquiring the configuration information of the sub-service.
脚手架工具是一种可以自动创建服务模板文件的工具,模板文件中可以限定服务的基 础结构、提供服务的规范和约定等等信息,也就是说,基于脚手架工具创建的模板文件进 行子服务的配置,可以减少同一主服务中的重复开发工作,进一步实现微前端本地集成开 发调试的自动化。The scaffolding tool is a tool that can automatically create a service template file. The template file can define information such as the infrastructure of the service, the specifications and conventions for providing services, etc., that is, the configuration of the sub-service based on the template file created by the scaffolding tool. , which can reduce the repetitive development work in the same main service, and further realize the automation of local integrated development and debugging of micro-frontends.
如图3所示,为一种实现方式中,S102的流程示意图,其中包括如下步骤:As shown in FIG. 3, it is a schematic flowchart of S102 in an implementation manner, which includes the following steps:
S1021:根据配置信息,生成子服务的模拟文件。S1021: Generate a simulation file of the sub-service according to the configuration information.
其中,模拟文件中可以包括对应的子服务的服务标识(project key)、服务名称、服 务首页url地址等信息,服务标识用于查询目标文件中是否包括子服务对应的模拟文件, 可以根据子服务的键值projectKey进行查询。The simulation file may include information such as the service identifier (project key), service name, and service homepage URL address of the corresponding sub-service, and the service identifier is used to query whether the target file includes the simulation file corresponding to the sub-service. The key value projectKey to query.
S1022:查询目标文件中是否包括子服务对应的模拟文件;若包括,则执行S1023;若不包括,则执行S1024。S1022: Query whether the target file includes the simulation file corresponding to the sub-service; if included, execute S1023; if not, execute S1024.
S1023:将目标文件中的模拟文件替换为所生成的模拟文件,得到更新后的目标文件。S1023: Replace the simulation file in the target file with the generated simulation file to obtain an updated target file.
S1024:将模拟文件添加至目标文件中,得到更新后的目标文件。S1024: Add the simulation file to the target file to obtain the updated target file.
也就是说,若目标文件中已经存在同名子服务模拟文件,则直接覆盖同名子服务模拟 文件,若目标文件中不存在同名子服务模拟文件,则将模拟文件添加至目标文件中,这样, 可以根据子服务的最新的模拟文件启动运行子服务的网页服务器,子服务的网页服务器也 就是用于提供子服务的网页服务器,避免出现子服务的网页服务器启动后提供旧版本的子 服务的情况。That is to say, if the sub-service simulation file with the same name already exists in the target file, the sub-service simulation file with the same name is directly overwritten. If the sub-service simulation file with the same name does not exist in the target file, the simulation file is added to the target file. Start the web server running the sub service according to the latest simulation file of the sub service. The web server of the sub service is the web server used to provide the sub service, so as to avoid the situation that the web server of the sub service provides an old version of the sub service after it is started.
在步骤S103中,读取更新后的目标文件,启动更新后的主服务的网页服务器,更新后的主服务中包括子服务。In step S103, the updated target file is read, the web server of the updated main service is started, and the updated main service includes sub-services.
一种实现方式中,读取更新后的目标文件,启动更新后的主服务的网页服务器,具体 可以包括:In an implementation mode, the updated target file is read, and the web server of the updated main service is started, which can specifically include:
首先,读取更新后的目标文件所包括的至少一个子服务的模拟文件,得到至少一个子 服务的配置信息;然后,启动更新后的主服务的网页服务器,并根据至少一个子服务的配 置信息,在更新后的主服务中对至少一个子服务进行注册。First, read the simulation file of at least one sub-service included in the updated target file to obtain the configuration information of at least one sub-service; then, start the web server of the updated main service, and according to the configuration information of at least one sub-service , register at least one sub-service in the updated main service.
其中,子服务的配置信息可以包括子服务的服务标识、服务名称以及服务首页url地 址等任意一项或多项。这样,通过读取目标文件中的模拟文件,电子设备无需完整的构造 或获取主服务的数据,就可以启动更新后的主服务的网页服务器,同时,新的子服务可以 自动注册到主服务中,也就实现了在主服务中自动对子服务进行更新,减少了开发人员的 手动操作。Wherein, the configuration information of the sub-service may include any one or more items such as the service identifier of the sub-service, the service name, and the url address of the service homepage. In this way, by reading the simulation file in the target file, the electronic device can start the web server of the updated main service without completely constructing or acquiring the data of the main service, and at the same time, the new sub-service can be automatically registered in the main service , which also realizes the automatic update of sub-services in the main service, reducing the manual operation of developers.
对目标文件进行更新后,可以读取更新后的目标文件,启动更新后的主服务的网页服 务器。由于更新后的目标文件中包括子服务的配置信息,因此,读取更新后的目标文件之 后,可以解析模拟文件中子服务的配置信息,进而将注册子服务列表到微前端框架当中, 从而实现自动启动微前端子服务的网页服务器,进而,可以对子服务进行进一步的开发和 测试。After updating the target file, you can read the updated target file and start the web server of the updated main service. Since the updated target file includes the configuration information of the sub-service, after reading the updated target file, the configuration information of the sub-service in the simulation file can be parsed, and then the list of registered sub-services can be added to the micro-frontend framework, so as to realize Automatically start the web server of the micro-frontend sub-service, and further develop and test the sub-service.
由以上可见,本公开的实施例提供的技术方案,在接收到开发指令之后,可以自动对 主服务的目标文件进行配置,这样,开发者只需要专注于微前端应用中子服务的开发配置 以及业务开发,无需关心子服务对应的主服务的代码如何拉取、更新、配置,微前端服务可以实现自动更新,从而提高了微前端本地集成开发的效率。As can be seen from the above, the technical solutions provided by the embodiments of the present disclosure can automatically configure the target file of the main service after receiving the development instruction, so that the developer only needs to focus on the development configuration of the sub-service in the micro-frontend application and For business development, there is no need to care about how to pull, update, and configure the code of the main service corresponding to the sub-service. The micro-frontend service can be automatically updated, thereby improving the efficiency of the local integrated development of the micro-frontend.
图4是根据一示例性实施例示出的一种微前端服务更新装置框图,该装置应用于电子 设备,所述装置包括:Fig. 4 is a block diagram of a micro-front-end service updating apparatus shown according to an exemplary embodiment, the apparatus is applied to electronic equipment, and the apparatus includes:
获取单元201,被配置为执行响应于对子服务的开发指令,获取目标文件,所述目标 文件为用于运行所述子服务所属主服务的最新版本的文件,所述子服务及所述主服务均为 基于微前端框架的服务;The obtaining
更新单元202,被配置为执行获取所述子服务的配置信息,根据所述配置信息启动所 述子服务的网页服务器,并将所述配置信息写入所述目标文件中,得到更新后的目标文件;The updating
启动单元203,被配置为执行读取所述更新后的目标文件,启动更新后的主服务的网 页服务器,所述更新后的主服务中包括所述子服务。The
一种实现方式中,所述获取单元201,被配置为执行:In an implementation manner, the obtaining
响应于对子服务的开发指令,从预设数据库获取所述主服务的目标文件的最新版本信 息;In response to the development instruction to the sub-service, obtain the latest version information of the target file of the main service from the preset database;
判断所述最新版本信息与本地存储的所述主服务的目标文件的版本信息是否一致;Determine whether the latest version information is consistent with the locally stored version information of the target file of the main service;
若不一致,则从所述预设数据库获取所述主服务的目标文件,作为目标文件,并对本 地存储的所述主服务的目标文件进行更新。If inconsistent, the target file of the main service is obtained from the preset database as the target file, and the locally stored target file of the main service is updated.
一种实现方式中,所述获取单元201,被配置为执行:In an implementation manner, the obtaining
若所述最新版本信息与本地存储的所述主服务的目标文件的版本信息一致,则获取本 地存储的所述主服务的目标文件。If the latest version information is consistent with the version information of the target file of the main service stored locally, the target file of the main service stored locally is acquired.
一种实现方式中,所述获取单元201,被配置为执行:In an implementation manner, the obtaining
从所述目标文件中获取依赖软件包的安装文件,根据所述安装文件下载并安装所述依 赖软件包,所述依赖软件包为所述主服务所需的外部文件;Obtain the installation file of the dependent software package from the target file, download and install the dependent software package according to the installation file, and the dependent software package is an external file required by the main service;
所述启动单元203,被配置为执行:The
读取所述更新后的目标文件,调用所述依赖软件包,启动更新后的主服务的网页服务 器。Read the updated target file, call the dependent software package, and start the updated web server of the main service.
一种实现方式中,所述更新单元202,被配置为执行:In an implementation manner, the updating
根据所述配置信息,生成所述子服务的模拟文件;generating a simulation file of the sub-service according to the configuration information;
查询所述目标文件中是否包括所述子服务对应的模拟文件;query whether the target file includes the simulation file corresponding to the sub-service;
若包括,则将所述目标文件中的模拟文件替换为所生成的模拟文件,得到更新后的目 标文件;If included, then replace the simulated file in the described target file with the generated simulated file to obtain the updated target file;
若不包括,则将所述模拟文件添加至所述目标文件中,得到更新后的目标文件。If not included, the simulation file is added to the target file to obtain an updated target file.
一种实现方式中,所述更新单元202,被配置为执行:In an implementation manner, the updating
读取所述更新后的目标文件所包括的至少一个子服务的模拟文件,得到所述至少一个 子服务的配置信息;Read the simulation file of at least one sub-service included in the updated target file, and obtain the configuration information of the at least one sub-service;
启动更新后的主服务的网页服务器,并根据所述至少一个子服务的配置信息,在所述 更新后的主服务中对所述至少一个子服务进行注册。Start the web server of the updated main service, and register the at least one sub-service in the updated main service according to the configuration information of the at least one sub-service.
一种实现方式中,所述更新单元202,被配置为执行:In an implementation manner, the updating
响应于所述开发指令,利用脚手架工具创建所述子服务的模板文件;In response to the development instruction, a scaffolding tool is used to create a template file of the sub-service;
响应于对所述模板文件的编辑指令,获取所述子服务的配置信息。In response to the editing instruction for the template file, the configuration information of the sub-service is acquired.
由以上可见,本公开的实施例提供的技术方案,在接收到开发指令之后,可以自动对 主服务的目标文件进行配置,这样,开发者只需要专注于微前端应用中子服务的开发配置 以及业务开发,无需关心子服务对应的主服务的代码如何拉取、更新、配置,微前端服务可以实现自动更新,从而提高了微前端本地集成开发的效率。As can be seen from the above, the technical solutions provided by the embodiments of the present disclosure can automatically configure the target file of the main service after receiving the development instruction, so that the developer only needs to focus on the development configuration of the sub-service in the micro-frontend application and For business development, there is no need to care about how to pull, update, and configure the code of the main service corresponding to the sub-service. The micro-frontend service can be automatically updated, thereby improving the efficiency of the local integrated development of the micro-frontend.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实 施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.
图5是根据一示例性实施例示出的一种用于微前端服务更新的电子设备的框图。Fig. 5 is a block diagram of an electronic device for updating a micro-frontend service according to an exemplary embodiment.
在示例性实施例中,还提供了一种包括指令的计算机可读存储介质,例如包括指令的 存储器,上述指令可由电子设备的处理器执行以完成上述方法。可选地,计算机可读存储 介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备 等。In an exemplary embodiment, there is also provided a computer readable storage medium, such as a memory including instructions, executable by a processor of an electronic device to perform the above method. Alternatively, the computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
在示例性实施例中,还提供一种计算机程序产品,当其在计算机上运行时,使得计算 机实现上述微前端服务更新的方法。In an exemplary embodiment, there is also provided a computer program product which, when run on a computer, causes the computer to implement the above-described method for updating a micro-frontend service.
由以上可见,本公开的实施例提供的技术方案,在接收到开发指令之后,可以自动对 主服务的目标文件进行配置,这样,开发者只需要专注于微前端应用中子服务的开发配置 以及业务开发,无需关心子服务对应的主服务的代码如何拉取、更新、配置,从而提高了微前端本地集成开发的效率。As can be seen from the above, the technical solutions provided by the embodiments of the present disclosure can automatically configure the target file of the main service after receiving the development instruction, so that the developer only needs to focus on the development configuration of the sub-service in the micro-frontend application and For business development, there is no need to care about how to pull, update, and configure the code of the main service corresponding to the sub-service, thereby improving the efficiency of local integrated development of micro-frontends.
图6是根据一示例性实施例示出的一种用于微前端服务更新的装置800的框图。FIG. 6 is a block diagram of an
例如,装置800可以是移动电话,计算机,数字广播电子设备,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。For example,
参照图6,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电 力组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件 814,以及通信组件816。6, the
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以 方便多媒体组件808和处理组件802之间的交互。The
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例 包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的 组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM), 可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM), 磁存储器,快闪存储器,磁盘或光盘。
电源组件807为装置800的各种组件提供电力。电源组件807可以包括电源管理系统, 一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。Power supply assembly 807 provides power to the various components of
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些 实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面 板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触 摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑 动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例 中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式, 如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每 个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克 风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由 通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信 号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以 是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。 例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800 一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速 和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的 物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD 图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加 速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G), 或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管 理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近 场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技 术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来 实现。
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可 编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行第 一方面和第二方面所述的方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包 括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。可选地, 例如,存储介质可以是非临时性计算机可读存储介质,例如,所述非临时性非临时性计算 机可读存储介质计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、 磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as
在示例性实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行 时,使得计算机执行上述实施例中第一所述的微前端服务更新方法。In an exemplary embodiment, there is also provided a computer program product comprising instructions which, when executed on a computer, cause the computer to execute the micro-frontend service updating method described in the first embodiment above.
由以上可见,本公开的实施例提供的技术方案,在接收到开发指令之后,可以自动对 主服务的目标文件进行配置,这样,开发者只需要专注于微前端应用中子服务的开发配置 以及业务开发,无需关心子服务对应的主服务的代码如何拉取、更新、配置,微前端服务可以实现自动更新,从而提高了微前端本地集成开发的效率。As can be seen from the above, the technical solutions provided by the embodiments of the present disclosure can automatically configure the target file of the main service after receiving the development instruction, so that the developer only needs to focus on the development configuration of the sub-service in the micro-frontend application and For business development, there is no need to care about how to pull, update, and configure the code of the main service corresponding to the sub-service. The micro-frontend service can be automatically updated, thereby improving the efficiency of the local integrated development of the micro-frontend.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实 施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者 适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或 惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权 利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可 以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111563732.8A CN114546436B (en) | 2021-12-20 | 2021-12-20 | A micro front-end service update method, device, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111563732.8A CN114546436B (en) | 2021-12-20 | 2021-12-20 | A micro front-end service update method, device, electronic device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114546436A true CN114546436A (en) | 2022-05-27 |
| CN114546436B CN114546436B (en) | 2024-11-26 |
Family
ID=81669124
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111563732.8A Active CN114546436B (en) | 2021-12-20 | 2021-12-20 | A micro front-end service update method, device, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114546436B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115766681A (en) * | 2022-11-28 | 2023-03-07 | 迈普通信技术股份有限公司 | Program downloading method, device, medium and equipment |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110708368A (en) * | 2019-09-25 | 2020-01-17 | 北京计算机技术及应用研究所 | Micro front-end system and method based on routing distribution |
| CN111443920A (en) * | 2020-03-25 | 2020-07-24 | 北京奇艺世纪科技有限公司 | Frame migration method and device |
| CN113157274A (en) * | 2021-05-20 | 2021-07-23 | 北京字节跳动网络技术有限公司 | Software development method and device based on micro front end, electronic equipment and storage medium |
| CN113254050A (en) * | 2021-06-23 | 2021-08-13 | 中国平安人寿保险股份有限公司 | Micro front-end system |
| CN113590174A (en) * | 2021-06-28 | 2021-11-02 | 中国农业银行股份有限公司 | Application registration method, device, equipment, computer readable storage medium and product |
-
2021
- 2021-12-20 CN CN202111563732.8A patent/CN114546436B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110708368A (en) * | 2019-09-25 | 2020-01-17 | 北京计算机技术及应用研究所 | Micro front-end system and method based on routing distribution |
| CN111443920A (en) * | 2020-03-25 | 2020-07-24 | 北京奇艺世纪科技有限公司 | Frame migration method and device |
| CN113157274A (en) * | 2021-05-20 | 2021-07-23 | 北京字节跳动网络技术有限公司 | Software development method and device based on micro front end, electronic equipment and storage medium |
| CN113254050A (en) * | 2021-06-23 | 2021-08-13 | 中国平安人寿保险股份有限公司 | Micro front-end system |
| CN113590174A (en) * | 2021-06-28 | 2021-11-02 | 中国农业银行股份有限公司 | Application registration method, device, equipment, computer readable storage medium and product |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115766681A (en) * | 2022-11-28 | 2023-03-07 | 迈普通信技术股份有限公司 | Program downloading method, device, medium and equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114546436B (en) | 2024-11-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10852912B2 (en) | Image creation app in messaging app | |
| CN106569800B (en) | Front-end interface generation method and device | |
| CN109032606B (en) | Native application compiling method and device and terminal | |
| TW201814510A (en) | Interface moving method, device, intelligent terminal, server and operating system | |
| WO2016041312A1 (en) | Application program running method and device | |
| US9870239B2 (en) | Method and device for running application program | |
| CN110865837B (en) | Method and terminal for system upgrade | |
| CN105808305B (en) | Static resource loading method and device | |
| CN114691115A (en) | Business process system generation method and device, electronic equipment and storage medium | |
| CN106598677A (en) | Method and device for downloading installation package | |
| CN111597106A (en) | Point burying management method and device | |
| CN113835569A (en) | Terminal device, quick start method for internal function of application and storage medium | |
| CN115373763B (en) | Plug-in loading method and device, electronic equipment and storage medium | |
| CN116842296A (en) | Micro front-end application access methods, devices, computer equipment and storage media | |
| CN112181406B (en) | Sharing method and device of rendering engine | |
| CN111443903A (en) | Software development file acquisition method and device, electronic device, and storage medium | |
| CN114546436A (en) | Micro front-end service updating method and device, electronic equipment and storage medium | |
| CN110989987B (en) | Portal webpage generation method and device, client, server and storage medium | |
| CN111338961A (en) | Application debugging method and device, electronic device and storage medium | |
| CN114995893B (en) | Firmware management method, flash memory, host and storage medium | |
| CN109933357B (en) | Application program upgrading method and device | |
| CN115168689A (en) | Terminal device, search content display method and storage medium | |
| CN115373871A (en) | Request processing method and device, electronic equipment and storage medium | |
| CN114428737A (en) | Communication method, device, equipment and storage medium based on micro service system | |
| CN120255971B (en) | An interactive implementation method and electronic device |
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 |