技术领域technical field
本发明涉及互联网技术领域,具体涉及一种基于环境变量的项目进程运行方法及装置。The invention relates to the technical field of the Internet, in particular to an environment variable-based project process operation method and device.
背景技术Background technique
在现有技术中,大多数的项目进程仅适用于在特定的运行环境下运行,当需要将项目进程在其他的运行环境下运行时,由于运行环境的不同,可能会在运行过程中出现错误,甚至可能会出现运行失败的问题。例如,某个项目进程仅适用于在Windows环境下运行,如果想要将该项目进程在Linux环境下运行时,由于Windows环境和Linux环境所使用的资源是不完全一样的,因此有可能会出现运行失败的问题。In the prior art, most project processes are only suitable for running in a specific operating environment. When the project process needs to be run in other operating environments, due to the different operating environments, errors may occur during the running process , and may even fail to run. For example, a project process is only suitable for running in the Windows environment. If you want to run the project process in the Linux environment, because the resources used by the Windows environment and the Linux environment are not exactly the same, there may be a The problem of failure to run.
为了使项目进程能够在其他的运行环境下运行,就需要技术开发人员根据具体的运行环境对项目进程相应的代码进行手动修改。然而这种修改会给技术开发人员带来很大的工作量,而且一旦某些代码修改不到位或不准确,会导致项目进程运行失败。在运行失败之后,技术开发人员还需投入更多精力去调试bug,造成人力成本和时间成本的浪费,从而导致项目开发成本过高。In order to enable the project process to run in other operating environments, technical developers need to manually modify the corresponding code of the project process according to the specific operating environment. However, this kind of modification will bring a lot of workload to technical developers, and once some codes are not modified in place or inaccurate, it will cause the project process to fail. After the operation fails, technical developers need to invest more energy to debug bugs, resulting in waste of labor costs and time costs, resulting in high project development costs.
如何方便地使项目进程在多种运行环境下都能成功运行,已成为了一个需要解决的问题。How to conveniently make the project process run successfully in various operating environments has become a problem that needs to be solved.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的基于环境变量的项目进程运行方法及装置。In view of the above problems, the present invention is proposed to provide a project process operation method and device based on environment variables that overcome the above problems or at least partially solve the above problems.
根据本发明的一个方面,提供了一种基于环境变量的项目进程运行方法,项目进程适用于在多种运行环境下运行,该方法包括:According to one aspect of the present invention, a method for running a project process based on environment variables is provided, and the project process is suitable for running in a variety of running environments. The method includes:
预先配置每种运行环境对应的配置文件;Pre-configure the configuration files corresponding to each operating environment;
在项目进程启用时,获取写入的环境变量值,加载环境变量值对应的配置文件;When the project process is enabled, obtain the written environment variable value, and load the configuration file corresponding to the environment variable value;
根据所加载的配置文件记录的配置信息,注入相应的实例以运行项目进程。According to the configuration information recorded in the loaded configuration file, inject the corresponding instance to run the project process.
根据本发明的另一方面,提供了一种基于环境变量的项目进程运行装置,项目进程适用于在多种运行环境下运行,该装置包括:According to another aspect of the present invention, a project process running device based on environment variables is provided, and the project process is suitable for running in a variety of running environments, and the device includes:
配置模块,适于预先配置每种运行环境对应的配置文件;The configuration module is suitable for pre-configuring configuration files corresponding to each operating environment;
加载模块,适于在项目进程启用时,获取写入的环境变量值,加载环境变量值对应的配置文件;The loading module is suitable for obtaining the written environment variable value when the project process is enabled, and loading the configuration file corresponding to the environment variable value;
注入模块,适于根据所加载的配置文件记录的配置信息,注入相应的实例以运行项目进程。The injection module is suitable for injecting a corresponding instance to run the project process according to the configuration information recorded in the loaded configuration file.
根据本发明提供的技术方案,预先配置每种运行环境对应的配置文件,在项目进程启用时,获取写入的环境变量值,加载环境变量值对应的配置文件,然后根据所加载的配置文件记录的配置信息,注入相应的实例以运行项目进程。本发明提供的技术方案根据所获取的环境变量值,加载环境变量值对应的配置文件,方便地使项目进程在多种运行环境下都能运行,无需根据不同的运行环境对项目进程相应的代码进行手动修改,从而减少了修改代码所投入的人力成本和时间成本,也避免了因修改代码错误而带来的问题。According to the technical solution provided by the present invention, the configuration file corresponding to each operating environment is pre-configured, and when the project process is enabled, the environment variable value written is obtained, the configuration file corresponding to the environment variable value is loaded, and then recorded according to the loaded configuration file configuration information, inject the corresponding instance to run the project process. The technical solution provided by the present invention loads the configuration file corresponding to the environment variable value according to the obtained environment variable value, so that the project process can be run in various operating environments conveniently, without needing to modify the corresponding code of the project process according to different operating environments Carry out manual modification, thereby reducing the labor cost and time cost invested in modifying the code, and also avoiding problems caused by errors in modifying the code.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的基于环境变量的项目进程运行方法的流程示意图;Fig. 1 shows a schematic flow chart of a project process running method based on environment variables according to an embodiment of the present invention;
图2示出了根据本发明另一个实施例的基于环境变量的项目进程运行方法的流程示意图;Fig. 2 shows a schematic flow chart of an environment variable-based project process running method according to another embodiment of the present invention;
图3示出了根据本发明一个实施例的基于环境变量的项目进程运行装置的功能结构示意图;FIG. 3 shows a schematic diagram of the functional structure of an environment variable-based project process running device according to an embodiment of the present invention;
图4示出了根据本发明另一个实施例的基于环境变量的项目进程运行装置的功能结构示意图。Fig. 4 shows a schematic diagram of the functional structure of an environment variable-based project process running device according to another embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
图1示出了根据本发明一个实施例的基于环境变量的项目进程运行方法的流程示意图,其中,项目进程适用于在多种运行环境下运行,如图1所示,该方法包括如下步骤:Fig. 1 shows a schematic flow chart of a project process running method based on environment variables according to an embodiment of the present invention, wherein the project process is suitable for running in various running environments, as shown in Fig. 1, the method includes the following steps:
步骤S100,预先配置每种运行环境对应的配置文件。Step S100, pre-configuring configuration files corresponding to each type of operating environment.
为了使项目进程在多种运行环境下都能运行,在步骤S100中,需要根据不同的运行环境,预先配置每种运行环境对应的配置文件。例如,在软件开发、软件测试和软件生产的过程中,所使用的服务器的运行环境是不同的。因此,运行环境可具体为:开发环境、测试环境、或生产环境,而开发环境还可具体为:Windows开发环境或Linux开发环境。根据实际需求,本领域技术人员还可设置其他的运行环境,此处不做限定。In order to enable the project process to run under various operating environments, in step S100 , it is necessary to pre-configure configuration files corresponding to each operating environment according to different operating environments. For example, in the processes of software development, software testing, and software production, the running environments of the servers used are different. Therefore, the operating environment may specifically be: a development environment, a test environment, or a production environment, and the development environment may also specifically be: a Windows development environment or a Linux development environment. According to actual needs, those skilled in the art can also set other operating environments, which are not limited here.
步骤S101,在项目进程启用时,获取写入的环境变量值,加载环境变量值对应的配置文件。Step S101, when the project process is enabled, obtain the written environment variable value, and load the configuration file corresponding to the environment variable value.
在步骤S100完成预先配置每种运行环境对应的配置文件之后,在项目进程启用时,执行步骤S101,获取写入的环境变量值,加载环境变量值对应的配置文件。其中,在项目进程启用时所写入的环境变量值由用于运行项目进程的服务器提供,具体地,在项目进程启用时所写入的环境变量值依赖于服务器的运行环境。例如,开发环境相对应的环境变量值可以为developing;测试环境相对应的环境变量值可以为testing;生产环境相对应的环境变量值可以为producing。而当开发环境具体包括Windows开发环境和Linux开发环境时,Windows开发环境相对应的环境变量值可以为developing1,Linux开发环境相对应的环境变量值可以为developing2。After pre-configuring the configuration files corresponding to each operating environment in step S100, when the project process is enabled, step S101 is executed to obtain the written environment variable values and load the configuration files corresponding to the environment variable values. Wherein, the environment variable value written when the project process is started is provided by the server used to run the project process, specifically, the environment variable value written when the project process is started depends on the running environment of the server. For example, the value of the environment variable corresponding to the development environment may be developing; the value of the environment variable corresponding to the test environment may be testing; the value of the environment variable corresponding to the production environment may be producing. When the development environment specifically includes a Windows development environment and a Linux development environment, the value of the environment variable corresponding to the Windows development environment may be developing1, and the value of the environment variable corresponding to the Linux development environment may be developing2.
另外,由于服务器的运行环境一般情况下不会发生改变,因此可以只获取一次环境变量值,以后当项目进程启用时,直接根据第一次所获取的环境变量值,加载环境变量值对应的配置文件。In addition, since the running environment of the server will not change under normal circumstances, the environment variable value can be obtained only once, and when the project process is started later, the configuration corresponding to the environment variable value will be loaded directly according to the environment variable value obtained for the first time document.
步骤S102,根据所加载的配置文件记录的配置信息,注入相应的实例以运行项目进程。Step S102, according to the configuration information recorded in the loaded configuration file, inject the corresponding instance to run the project process.
在步骤S101加载了环境变量值对应的配置文件之后,步骤S102就可根据所加载的配置文件记录的配置信息,注入相应的实例以运行项目进程。After the configuration file corresponding to the environment variable value is loaded in step S101, in step S102, according to the configuration information recorded in the loaded configuration file, a corresponding instance can be injected to run the project process.
根据本实施例提供的基于环境变量的项目进程运行方法,预先配置每种运行环境对应的配置文件,在项目进程启用时,获取写入的环境变量值,加载环境变量值对应的配置文件,然后根据所加载的配置文件记录的配置信息,注入相应的实例以运行项目进程。本发明提供的技术方案根据所获取的环境变量值,加载环境变量值对应的配置文件,方便地使项目进程在多种运行环境下都能运行,无需根据不同的运行环境对项目进程相应的代码进行手动修改,从而减少了修改代码所投入的人力成本和时间成本,也避免了因修改代码不正确而带来的问题。According to the environment variable-based project process running method provided in this embodiment, the configuration file corresponding to each type of running environment is pre-configured, and when the project process is enabled, the written environment variable value is obtained, and the configuration file corresponding to the environment variable value is loaded, and then According to the configuration information recorded in the loaded configuration file, inject the corresponding instance to run the project process. The technical solution provided by the present invention loads the configuration file corresponding to the environment variable value according to the obtained environment variable value, so that the project process can be run in various operating environments conveniently, without needing to modify the corresponding code of the project process according to different operating environments Manual modification is performed, thereby reducing the labor cost and time cost invested in modifying the code, and also avoiding problems caused by incorrectly modifying the code.
图2示出了根据本发明另一个实施例的基于环境变量的项目进程运行方法的流程示意图,其中,项目进程适用于在多种运行环境下运行,如图2所示,该方法包括如下步骤:Fig. 2 shows a schematic flowchart of a project process running method based on environment variables according to another embodiment of the present invention, wherein the project process is suitable for running in a variety of running environments, as shown in Fig. 2, the method includes the following steps :
步骤S200,预先配置每种运行环境对应的配置文件。Step S200, pre-configuring configuration files corresponding to each type of operating environment.
为了使项目进程在多种运行环境下都能运行,在步骤S200中,需要根据不同的运行环境,预先配置每种运行环境对应的配置文件。其中,运行环境可具体为:开发环境、测试环境、或生产环境,而开发环境还可具体为:Windows开发环境或Linux开发环境。根据实际需求,本领域技术人员还可设置其他的运行环境,此处不做限定。In order to enable the project process to run under various operating environments, in step S200 , it is necessary to pre-configure configuration files corresponding to each operating environment according to different operating environments. Wherein, the operating environment may specifically be: a development environment, a test environment, or a production environment, and the development environment may also specifically be: a Windows development environment or a Linux development environment. According to actual needs, those skilled in the art can also set other operating environments, which are not limited here.
例如,为了使项目进程在开发环境和测试环境下都能运行,在步骤S200中需要预先配置开发环境对应的配置文件和测试环境对应的配置文件。For example, in order to make the project process run in both the development environment and the test environment, in step S200 , the configuration file corresponding to the development environment and the configuration file corresponding to the test environment need to be pre-configured.
步骤S201,预先定义代理类。Step S201, predefine proxy classes.
为了能够方便地根据所加载的配置文件记录的配置信息注入相应的实例,在项目进程启用之前,还需预先定义代理类,该代理类用于调用实例的接口来注入实例。其中,步骤S200和步骤S201可以同时进行,也可以先执行步骤S200,再执行步骤S201。In order to conveniently inject the corresponding instance according to the configuration information recorded in the loaded configuration file, before the project process is started, a proxy class needs to be defined in advance, and the proxy class is used to call the interface of the instance to inject the instance. Wherein, step S200 and step S201 can be performed at the same time, or step S200 can be performed first, and then step S201 can be performed.
步骤S202,在项目进程启用时,获取写入的环境变量值,加载环境变量值对应的配置文件。Step S202, when the project process is enabled, obtain the written environment variable value, and load the configuration file corresponding to the environment variable value.
在完成预先配置每种运行环境对应的配置文件和预先定义代理类之后,在项目进程启用时,执行步骤S202,获取写入的环境变量值,加载环境变量值对应的配置文件。其中,在项目进程启用时所写入的环境变量值由用于运行项目进程的服务器提供,具体地,在项目进程启用时所写入的环境变量值依赖于服务器的运行环境。After pre-configuring the configuration files corresponding to each operating environment and pre-defining proxy classes, when the project process is enabled, step S202 is performed to obtain the written environment variable values and load the configuration files corresponding to the environment variable values. Wherein, the environment variable value written when the project process is started is provided by the server used to run the project process, specifically, the environment variable value written when the project process is started depends on the running environment of the server.
例如,运行项目进程的服务器的运行环境为Windows开发环境,与Windows开发环境相对应的环境变量值为developing1,在步骤S200和步骤S201中已预先配置了Windows开发环境对应的配置文件和预先定义了代理类,那么在项目进程启用时,执行步骤S202,获取写入的环境变量值,加载该环境变量值对应的配置文件,即加载Windows开发环境对应的配置文件。For example, the operating environment of the server running the project process is the Windows development environment, and the environment variable value corresponding to the Windows development environment is developing1. In steps S200 and S201, the configuration file corresponding to the Windows development environment and the predefined proxy class, then when the project process is enabled, execute step S202 to obtain the written environment variable value, and load the configuration file corresponding to the environment variable value, that is, load the configuration file corresponding to the Windows development environment.
步骤S203,根据所加载的配置文件记录的配置信息,由代理类调用相应的实例的接口来注入相应的实例以运行项目进程。Step S203, according to the configuration information recorded in the loaded configuration file, the proxy class invokes the interface of the corresponding instance to inject the corresponding instance to run the project process.
假设,项目进程是由Java语言开发的,在步骤S202加载了环境变量值对应的配置文件之后,通过Java框架中的Spring的IOC(控制反转,InversionofControl)机制,根据所加载的配置文件记录的配置信息,由代理类调用相应的实例的接口来注入相应的实例以运行项目进程。Assume that the project process is developed by the Java language, after the configuration file corresponding to the environment variable value is loaded in step S202, through the IOC (inversion of control, Inversion of Control) mechanism of Spring in the Java framework, according to the loaded configuration file record Configuration information, the proxy class calls the interface of the corresponding instance to inject the corresponding instance to run the project process.
例如,运行项目进程的服务器的运行环境为Windows开发环境,在项目进程启用时,步骤S202加载所获取的环境变量值对应的配置文件,即加载Windows开发环境对应的配置文件,然后执行步骤S203,根据所加载的配置文件记录的配置信息,由代理类调用相应的实例的接口来注入相应的实例以运行项目进程。假设根据Windows开发环境对应的配置文件记录的配置信息可知,当运行到项目进程中的子进程1时,需使用实例1,则当运行到项目进程中的子进程1时,在步骤S203中由代理类调用实例1的接口来注入实例1。For example, the operating environment of the server running the project process is the Windows development environment. When the project process is enabled, step S202 loads the configuration file corresponding to the acquired environment variable value, that is, loads the configuration file corresponding to the Windows development environment, and then executes step S203. According to the configuration information recorded in the loaded configuration file, the proxy class calls the interface of the corresponding instance to inject the corresponding instance to run the project process. Assuming that according to the configuration information recorded in the configuration file corresponding to the Windows development environment, when running to sub-process 1 in the project process, instance 1 needs to be used, then when running to sub-process 1 in the project process, in step S203 by The proxy class calls the interface of instance 1 to inject instance 1.
根据本实施例提供的基于环境变量的项目进程运行方法,预先配置每种运行环境对应的配置文件和预先定义代理类,在项目进程启用时,获取写入的环境变量值,加载环境变量值对应的配置文件,然后根据所加载的配置文件记录的配置信息,由代理类调用相应的实例的接口来注入相应的实例以运行项目进程。本发明提供的技术方案不仅根据所获取的环境变量值,加载环境变量值对应的配置文件,方便地使项目进程在多种运行环境下都能运行,而且通过代理类便捷地实现了实例的注入。另外本发明提供的技术方案无需根据不同的运行环境对项目进程相应的代码进行手动修改,从而减少了修改代码所投入的人力成本和时间成本,也避免了因修改代码不正确而带来的问题。According to the environment variable-based project process running method provided in this embodiment, the configuration file corresponding to each running environment and the predefined proxy class are pre-configured. When the project process is enabled, the written environment variable value is obtained, and the corresponding environment variable value is loaded The configuration file, and then according to the configuration information recorded in the loaded configuration file, the proxy class calls the interface of the corresponding instance to inject the corresponding instance to run the project process. The technical solution provided by the present invention not only loads the configuration file corresponding to the environment variable value according to the obtained environment variable value, conveniently enables the project process to run in various operating environments, but also conveniently realizes the injection of the instance through the proxy class . In addition, the technical solution provided by the present invention does not need to manually modify the corresponding code of the project process according to different operating environments, thereby reducing the labor cost and time cost of modifying the code, and avoiding the problems caused by incorrect code modification .
图3示出了根据本发明一个实施例的基于环境变量的项目进程运行装置的功能结构示意图,其中,项目进程适用于在多种运行环境下运行,如图3所示,该装置包括:配置模块310、加载模块320和注入模块330。Fig. 3 shows a schematic diagram of the functional structure of an environment variable-based project process running device according to an embodiment of the present invention, wherein the project process is suitable for running in a variety of running environments, as shown in Fig. 3 , the device includes: configuration module 310 , loading module 320 and injection module 330 .
配置模块310,适于预先配置每种运行环境对应的配置文件。The configuration module 310 is adapted to pre-configure configuration files corresponding to each type of operating environment.
为了使项目进程在多种运行环境下都能运行,配置模块310需要根据不同的运行环境,预先配置每种运行环境对应的配置文件。其中,运行环境可具体为:开发环境、测试环境、或生产环境,而开发环境还可具体为:Windows开发环境或Linux开发环境。根据实际需求,本领域技术人员还可设置其他的运行环境,此处不做限定。In order to enable the project process to run under various operating environments, the configuration module 310 needs to pre-configure configuration files corresponding to each operating environment according to different operating environments. Wherein, the operating environment may specifically be: a development environment, a test environment, or a production environment, and the development environment may also specifically be: a Windows development environment or a Linux development environment. According to actual needs, those skilled in the art can also set other operating environments, which are not limited here.
加载模块320,适于在项目进程启用时,获取写入的环境变量值,加载环境变量值对应的配置文件。The loading module 320 is adapted to obtain the written environment variable value when the project process is started, and load the configuration file corresponding to the environment variable value.
在配置模块310预先配置了每种运行环境对应的配置文件之后,在项目进程启用时,触发加载模块320,获取写入的环境变量值,加载环境变量值对应的配置文件。其中,在项目进程启用时所写入的环境变量值由用于运行项目进程的服务器提供,具体地,在项目进程启用时所写入的环境变量值依赖于服务器的运行环境。After the configuration module 310 pre-configures the configuration files corresponding to each type of operating environment, when the project process is started, the loading module 320 is triggered to obtain the written environment variable values and load the configuration files corresponding to the environment variable values. Wherein, the environment variable value written when the project process is started is provided by the server used to run the project process, specifically, the environment variable value written when the project process is started depends on the running environment of the server.
注入模块330,适于根据所加载的配置文件记录的配置信息,注入相应的实例以运行项目进程。The injection module 330 is suitable for injecting the corresponding instance to run the project process according to the configuration information recorded in the loaded configuration file.
在加载模块320加载了环境变量值对应的配置文件之后,注入模块330根据所加载的配置文件记录的配置信息,注入相应的实例以运行项目进程。After the loading module 320 loads the configuration file corresponding to the environment variable value, the injection module 330 injects the corresponding instance to run the project process according to the configuration information recorded in the loaded configuration file.
根据本实施例提供的基于环境变量的项目进程运行装置,通过配置模块预先配置每种运行环境对应的配置文件,在项目进程启用时,通过加载模块获取写入的环境变量值,加载环境变量值对应的配置文件,然后注入模块根据所加载的配置文件记录的配置信息,注入相应的实例以运行项目进程。本发明提供的技术方案根据所获取的环境变量值,加载环境变量值对应的配置文件,方便地使项目进程在多种运行环境下都能运行,无需根据不同的运行环境对项目进程相应的代码进行手动修改,从而减少了修改代码所投入的人力成本和时间成本,也避免了因修改代码不正确而带来的问题。According to the environment variable-based project process running device provided in this embodiment, the configuration file corresponding to each type of running environment is pre-configured through the configuration module. When the project process is enabled, the written environment variable value is obtained through the loading module, and the environment variable value is loaded. The corresponding configuration file, and then the injection module injects the corresponding instance to run the project process according to the configuration information recorded in the loaded configuration file. The technical solution provided by the present invention loads the configuration file corresponding to the environment variable value according to the obtained environment variable value, so that the project process can be run in various operating environments conveniently, without needing to modify the corresponding code of the project process according to different operating environments Manual modification is performed, thereby reducing the labor cost and time cost invested in modifying the code, and also avoiding problems caused by incorrectly modifying the code.
图4示出了根据本发明另一个实施例的基于环境变量的项目进程运行装置的功能结构示意图,其中,项目进程适用于在多种运行环境下运行,如图4所示,该装置包括:配置模块410、定义模块420、加载模块430和注入模块440。Fig. 4 shows a schematic diagram of the functional structure of an environment variable-based project process running device according to another embodiment of the present invention, wherein the project process is suitable for running in a variety of running environments, as shown in Fig. 4 , the device includes: Configuration module 410 , definition module 420 , loading module 430 and injection module 440 .
配置模块410,适于预先配置每种运行环境对应的配置文件。The configuration module 410 is adapted to pre-configure configuration files corresponding to each type of operating environment.
为了使项目进程在多种运行环境下都能运行,配置模块410需要根据不同的运行环境,预先配置每种运行环境对应的配置文件。其中,运行环境可具体为:开发环境、测试环境、或生产环境,而开发环境还可具体为:Windows开发环境或Linux开发环境。例如,为了使项目进程在开发环境和测试环境下都能运行,配置模块410需要预先配置开发环境对应的配置文件和测试环境对应的配置文件。根据实际需求,本领域技术人员还可设置其他的运行环境,此处不做限定。In order to enable the project process to run under various operating environments, the configuration module 410 needs to pre-configure configuration files corresponding to each operating environment according to different operating environments. Wherein, the operating environment may specifically be: a development environment, a test environment, or a production environment, and the development environment may also specifically be: a Windows development environment or a Linux development environment. For example, in order to make the project process run both in the development environment and the test environment, the configuration module 410 needs to pre-configure the configuration files corresponding to the development environment and the configuration files corresponding to the test environment. According to actual needs, those skilled in the art can also set other operating environments, which are not limited here.
定义模块420,适于在项目进程启用之前,预先定义代理类。The definition module 420 is adapted to predefine the proxy class before the project process is started.
为了能够方便地根据所加载的配置文件记录的配置信息注入相应的实例,在项目进程启用之前,还需定义模块420预先定义代理类,该代理类用于调用实例的接口来注入实例。其中,配置模块410和定义模块420可以同时触发,也可以先触发配置模块410,再触发定义模块420。In order to conveniently inject the corresponding instance according to the configuration information recorded in the loaded configuration file, before the project process is started, the definition module 420 needs to pre-define a proxy class, and the proxy class is used to call the interface of the instance to inject the instance. Wherein, the configuration module 410 and the definition module 420 can be triggered at the same time, or the configuration module 410 can be triggered first, and then the definition module 420 can be triggered.
加载模块430,适于在项目进程启用时,获取写入的环境变量值,加载环境变量值对应的配置文件。The loading module 430 is adapted to obtain the written environment variable value when the project process is started, and load the configuration file corresponding to the environment variable value.
在配置模块410预先配置了每种运行环境对应的配置文件和定义模块420预先定义了代理类之后,在项目进程启用时,触发加载模块430,获取写入的环境变量值,加载环境变量值对应的配置文件。其中,在项目进程启用时所写入的环境变量值由用于运行项目进程的服务器提供,具体地,在项目进程启用时所写入的环境变量值依赖于服务器的运行环境。After the configuration module 410 pre-configures the configuration file corresponding to each operating environment and the definition module 420 pre-defines the proxy class, when the project process is enabled, the loading module 430 is triggered to obtain the written environment variable value, and the environment variable value corresponds to configuration file. Wherein, the environment variable value written when the project process is started is provided by the server used to run the project process, specifically, the environment variable value written when the project process is started depends on the running environment of the server.
例如,运行项目进程的服务器的运行环境为Windows开发环境,与Windows开发环境相对应的环境变量值为developing1,配置模块410已预先配置了Windows开发环境对应的配置文件,且定义模块420预先定义了代理类,那么在项目进程启用时,触发加载模块430,获取写入的环境变量值,加载该环境变量值对应的配置文件,即加载Windows开发环境对应的配置文件。For example, the operating environment of the server running the project process is the Windows development environment, and the environment variable value corresponding to the Windows development environment is developing1, the configuration module 410 has been pre-configured with a configuration file corresponding to the Windows development environment, and the definition module 420 has pre-defined the agent class, then when the project process is enabled, the loading module 430 is triggered to obtain the written environment variable value, and load the configuration file corresponding to the environment variable value, that is, load the configuration file corresponding to the Windows development environment.
注入模块440,适于根据所加载的配置文件记录的配置信息,由代理类调用相应的实例的接口来注入相应的实例以运行项目进程。The injection module 440 is adapted to inject the corresponding instance into the corresponding instance by calling the interface of the corresponding instance according to the configuration information recorded in the loaded configuration file by the proxy class to run the project process.
假设,项目进程是由Java语言开发的,在加载模块430加载了环境变量值对应的配置文件之后,通过Java框架中的Spring的IOC机制,注入模块440根据所加载的配置文件记录的配置信息,由代理类调用相应的实例的接口来注入相应的实例以运行项目进程。Assume that the project process is developed by the Java language, after the loading module 430 loads the configuration file corresponding to the environment variable value, through the IOC mechanism of Spring in the Java framework, the configuration information recorded by the injection module 440 according to the loaded configuration file, The interface of the corresponding instance is called by the proxy class to inject the corresponding instance to run the project process.
例如,运行项目进程的服务器的运行环境为Windows开发环境,在项目进程启用时,加载模块430加载了所获取的环境变量值对应的配置文件,即加载Windows开发环境对应的配置文件,然后注入模块440根据所加载的配置文件记录的配置信息,由代理类调用相应的实例的接口来注入相应的实例以运行项目进程。假设根据Windows开发环境对应的配置文件记录的配置信息可知,当运行到项目进程中的子进程1时,需使用实例1,则当运行到项目进程中的子进程1时,注入模块440根据Windows开发环境对应的配置文件记录的配置信息,由代理类调用实例1的接口来注入实例1。For example, the operating environment of the server running the project process is the Windows development environment. When the project process is enabled, the loading module 430 loads the configuration file corresponding to the obtained environment variable value, that is, loads the configuration file corresponding to the Windows development environment, and then injects the module 440 According to the configuration information recorded in the loaded configuration file, the proxy class invokes the interface of the corresponding instance to inject the corresponding instance to run the project process. Assuming that according to the configuration information recorded in the configuration file corresponding to the Windows development environment, when running to sub-process 1 in the project process, instance 1 needs to be used, then when running to sub-process 1 in the project process, the injection module 440 is based on Windows The configuration information recorded in the configuration file corresponding to the development environment is injected into instance 1 by the proxy class calling the interface of instance 1.
根据本实施例提供的基于环境变量的项目进程运行装置,通过配置模块预先配置每种运行环境对应的配置文件,并通过定义模块预先定义代理类,在项目进程启用时,通过加载模块获取写入的环境变量值,加载环境变量值对应的配置文件,然后注入模块根据所加载的配置文件记录的配置信息,由代理类调用相应的实例的接口来注入相应的实例以运行项目进程。本发明提供的技术方案不仅根据所获取的环境变量值,加载环境变量值对应的配置文件,方便地使项目进程在多种运行环境下都能运行,而且通过代理类便捷地实现了实例的注入。另外本发明提供的技术方案无需根据不同的运行环境对项目进程相应的代码进行手动修改,从而减少了修改代码所投入的人力成本和时间成本,也避免了因修改代码不正确而带来的问题。According to the environment variable-based project process running device provided in this embodiment, the configuration file corresponding to each running environment is pre-configured through the configuration module, and the proxy class is pre-defined through the definition module. The environment variable value, load the configuration file corresponding to the environment variable value, and then inject the module according to the configuration information recorded in the loaded configuration file, and the proxy class calls the interface of the corresponding instance to inject the corresponding instance to run the project process. The technical solution provided by the present invention not only loads the configuration file corresponding to the environment variable value according to the obtained environment variable value, conveniently enables the project process to run in various operating environments, but also conveniently realizes the injection of the instance through the proxy class . In addition, the technical solution provided by the present invention does not need to manually modify the corresponding code of the project process according to different operating environments, thereby reducing the labor cost and time cost of modifying the code, and avoiding the problems caused by incorrect code modification .
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any one of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明公开了:The present invention discloses:
A1、一种基于环境变量的项目进程运行方法,所述项目进程适用于在多种运行环境下运行,所述方法包括:A1. A project process running method based on environment variables, the project process is suitable for running in a variety of operating environments, and the method includes:
预先配置每种运行环境对应的配置文件;Pre-configure the configuration files corresponding to each operating environment;
在项目进程启用时,获取写入的环境变量值,加载所述环境变量值对应的配置文件;When the project process is enabled, obtain the written environment variable value, and load the configuration file corresponding to the environment variable value;
根据所加载的配置文件记录的配置信息,注入相应的实例以运行所述项目进程。According to the configuration information recorded in the loaded configuration file, a corresponding instance is injected to run the project process.
A2、根据A1所述的方法,在项目进程启用时所写入的环境变量值由用于运行所述项目进程的服务器提供。A2. According to the method described in A1, the environment variable value written when the project process is enabled is provided by the server used to run the project process.
A3、根据A2所述的方法,在项目进程启用时所写入的环境变量值依赖于所述服务器的运行环境。A3. According to the method described in A2, the value of the environment variable written when the project process is started depends on the operating environment of the server.
A4、根据A1-A3任一项所述的方法,还包括:在项目进程启用之前,预先定义代理类;A4. According to the method described in any one of A1-A3, it also includes: before the project process is enabled, pre-defining the proxy class;
所述根据所加载的配置文件记录的配置信息,注入相应的实例以运行所述项目进程具体为:根据所加载的配置文件记录的配置信息,由所述代理类调用相应的实例的接口来注入相应的实例以运行所述项目进程。According to the configuration information recorded in the loaded configuration file, injecting the corresponding instance to run the project process is specifically: according to the configuration information recorded in the loaded configuration file, the proxy class calls the interface of the corresponding instance to inject corresponding instance to run the project process.
A5、根据A1-A4任一项所述的方法,所述运行环境具体为:开发环境、测试环境、或生产环境。A5. According to the method described in any one of A1-A4, the operating environment is specifically: a development environment, a test environment, or a production environment.
A6、根据A5所述的方法,所述开发环境具体为:Windows开发环境或Linux开发环境。A6. According to the method described in A5, the development environment is specifically: a Windows development environment or a Linux development environment.
B7、一种基于环境变量的项目进程运行装置,所述项目进程适用于在多种运行环境下运行,所述装置包括:B7, a project process running device based on environmental variables, the project process is suitable for running in a variety of operating environments, and the device includes:
配置模块,适于预先配置每种运行环境对应的配置文件;The configuration module is suitable for pre-configuring configuration files corresponding to each operating environment;
加载模块,适于在项目进程启用时,获取写入的环境变量值,加载所述环境变量值对应的配置文件;The loading module is adapted to obtain the written environment variable value when the project process is enabled, and load the configuration file corresponding to the environment variable value;
注入模块,适于根据所加载的配置文件记录的配置信息,注入相应的实例以运行所述项目进程。The injection module is suitable for injecting the corresponding instance to run the project process according to the configuration information recorded in the loaded configuration file.
B8、根据B7所述的装置,在项目进程启用时所写入的环境变量值由用于运行所述项目进程的服务器提供。B8. According to the device described in B7, the environment variable value written when the project process is enabled is provided by the server used to run the project process.
B9、根据B8所述的装置,在项目进程启用时所写入的环境变量值依赖于所述服务器的运行环境。B9. According to the device described in B8, the value of the environment variable written when the project process is enabled depends on the operating environment of the server.
B10、根据B7-B9任一项所述的装置,还包括:定义模块,适于在项目进程启用之前,预先定义代理类;B10. The device according to any one of B7-B9, further comprising: a definition module, adapted to predefine the proxy class before the project process is enabled;
所述注入模块进一步适于:根据所加载的配置文件记录的配置信息,由所述代理类调用相应的实例的接口来注入相应的实例以运行所述项目进程。The injection module is further adapted to: according to the configuration information recorded in the loaded configuration file, the proxy class calls the interface of the corresponding instance to inject the corresponding instance to run the project process.
B11、根据B7-B10任一项所述的装置,所述运行环境具体为:开发环境、测试环境、或生产环境。B11. The device according to any one of B7-B10, the operating environment is specifically: a development environment, a test environment, or a production environment.
B12、根据B11所述的装置,所述开发环境具体为:Windows开发环境或Linux开发环境。B12. According to the device described in B11, the development environment is specifically: a Windows development environment or a Linux development environment.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510726660.2ACN105204916B (en) | 2015-10-30 | 2015-10-30 | Project process operation method and device based on environmental variance |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510726660.2ACN105204916B (en) | 2015-10-30 | 2015-10-30 | Project process operation method and device based on environmental variance |
| Publication Number | Publication Date |
|---|---|
| CN105204916Atrue CN105204916A (en) | 2015-12-30 |
| CN105204916B CN105204916B (en) | 2019-03-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510726660.2AActiveCN105204916B (en) | 2015-10-30 | 2015-10-30 | Project process operation method and device based on environmental variance |
| Country | Link |
|---|---|
| CN (1) | CN105204916B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106020877A (en)* | 2016-05-16 | 2016-10-12 | 乐视控股(北京)有限公司 | Automatic update method and apparatus for system environment configuration |
| CN106681861A (en)* | 2016-12-08 | 2017-05-17 | 杭州销冠网络科技有限公司 | New environment isolation configuration data management method and system |
| CN106874163A (en)* | 2016-12-29 | 2017-06-20 | 广州华多网络科技有限公司 | A kind of method and system for showing software error code information |
| CN107203474A (en)* | 2017-06-13 | 2017-09-26 | 上海携程国际旅行社有限公司 | A kind of automated testing method for supporting multi-environment |
| CN109471797A (en)* | 2018-10-23 | 2019-03-15 | 深圳市佰仟金融服务有限公司 | A kind of environment configuration management method, system and terminal device |
| CN109976730A (en)* | 2017-12-26 | 2019-07-05 | 航天信息股份有限公司 | A kind of method and device of data transmitting |
| CN110704041A (en)* | 2019-10-10 | 2020-01-17 | 达飞云贷科技(北京)有限公司 | Software development method and device |
| CN111142928A (en)* | 2019-12-05 | 2020-05-12 | 福建天泉教育科技有限公司 | Method and terminal for automatically constructing front-end project |
| CN111736921A (en)* | 2020-06-28 | 2020-10-02 | 深圳前海微众银行股份有限公司 | Service configuration method, apparatus, device, and computer-readable storage medium |
| CN111949513A (en)* | 2020-07-09 | 2020-11-17 | 中国建设银行股份有限公司 | A configuration file loading method, device, electronic device and readable storage device |
| CN113835749A (en)* | 2021-10-12 | 2021-12-24 | 平安健康保险股份有限公司 | Configuration file change error prompting method, device and digital health system |
| CN114090074A (en)* | 2021-10-26 | 2022-02-25 | 青岛海尔科技有限公司 | Operating environment configuration method and device, storage medium and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102566992A (en)* | 2010-12-17 | 2012-07-11 | 卓望数码技术(深圳)有限公司 | Dependency injection method and dependency injection device based on system running |
| US20130298141A1 (en)* | 2012-05-02 | 2013-11-07 | Motorola Mobility, Inc. | Method and Apparatus for Providing Contextual Information Between Operating System Environments |
| CN104539458A (en)* | 2014-12-30 | 2015-04-22 | 深圳市兰丁科技有限公司 | Operating environment self-adapting method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102566992A (en)* | 2010-12-17 | 2012-07-11 | 卓望数码技术(深圳)有限公司 | Dependency injection method and dependency injection device based on system running |
| US20130298141A1 (en)* | 2012-05-02 | 2013-11-07 | Motorola Mobility, Inc. | Method and Apparatus for Providing Contextual Information Between Operating System Environments |
| CN104539458A (en)* | 2014-12-30 | 2015-04-22 | 深圳市兰丁科技有限公司 | Operating environment self-adapting method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106020877A (en)* | 2016-05-16 | 2016-10-12 | 乐视控股(北京)有限公司 | Automatic update method and apparatus for system environment configuration |
| CN106681861A (en)* | 2016-12-08 | 2017-05-17 | 杭州销冠网络科技有限公司 | New environment isolation configuration data management method and system |
| CN106874163B (en)* | 2016-12-29 | 2020-09-11 | 广州华多网络科技有限公司 | Method and system for displaying software error code information |
| CN106874163A (en)* | 2016-12-29 | 2017-06-20 | 广州华多网络科技有限公司 | A kind of method and system for showing software error code information |
| CN107203474A (en)* | 2017-06-13 | 2017-09-26 | 上海携程国际旅行社有限公司 | A kind of automated testing method for supporting multi-environment |
| CN109976730A (en)* | 2017-12-26 | 2019-07-05 | 航天信息股份有限公司 | A kind of method and device of data transmitting |
| CN109471797A (en)* | 2018-10-23 | 2019-03-15 | 深圳市佰仟金融服务有限公司 | A kind of environment configuration management method, system and terminal device |
| CN110704041A (en)* | 2019-10-10 | 2020-01-17 | 达飞云贷科技(北京)有限公司 | Software development method and device |
| CN111142928A (en)* | 2019-12-05 | 2020-05-12 | 福建天泉教育科技有限公司 | Method and terminal for automatically constructing front-end project |
| CN111736921A (en)* | 2020-06-28 | 2020-10-02 | 深圳前海微众银行股份有限公司 | Service configuration method, apparatus, device, and computer-readable storage medium |
| CN111949513A (en)* | 2020-07-09 | 2020-11-17 | 中国建设银行股份有限公司 | A configuration file loading method, device, electronic device and readable storage device |
| CN113835749A (en)* | 2021-10-12 | 2021-12-24 | 平安健康保险股份有限公司 | Configuration file change error prompting method, device and digital health system |
| CN114090074A (en)* | 2021-10-26 | 2022-02-25 | 青岛海尔科技有限公司 | Operating environment configuration method and device, storage medium and electronic device |
| Publication number | Publication date |
|---|---|
| CN105204916B (en) | 2019-03-01 |
| Publication | Publication Date | Title |
|---|---|---|
| CN105204916A (en) | Environment variable-based project process operation method and device | |
| US20250028539A1 (en) | Dynamically Loaded Plugin Architecture | |
| US10642599B1 (en) | Preemptive deployment in software deployment pipelines | |
| CN103530156B (en) | Method and device for dynamically loading and calling programs | |
| CN106415480B (en) | High-speed application for installation on a mobile device to allow remote configuration of the mobile device | |
| CN102841841B (en) | A kind of test asserts processing method and system | |
| US20150007156A1 (en) | Injecting patch code at runtime | |
| CN103152327B (en) | A kind of method, client and system configuring compression/de-compression plug-in unit | |
| CN104346206B (en) | A kind of method and system of unloaded software rejuvenation installation | |
| Farooq et al. | Runtimedroid: Restarting-free runtime change handling for android apps | |
| WO2017041499A1 (en) | Software upgrade method and system, and computer-readable storage medium | |
| US9824000B1 (en) | Testing calling code dynamically with random error injection based on user-specified configuration | |
| CN108121650B (en) | Method and device for testing page user interface | |
| CN114490103A (en) | Operating system interface calling method, device and electronic device | |
| CN106649114A (en) | Method and device for positioning application program crash | |
| CN106126425A (en) | Function traversal method based on Android automated test frame and system | |
| CN109508249B (en) | Crash processing method and device and electronic equipment | |
| CN119987798A (en) | Component deployment method, device, equipment, storage medium and product | |
| US10268822B2 (en) | Firmware module execution privilege | |
| CN104699618B (en) | Method and device used for automatically testing high-privilege progress by designated user | |
| CN104778091B (en) | The operation method and device of application program | |
| CN104536750B (en) | The method and device of cycling among windows object | |
| CN107967192A (en) | A kind of system crash treating method and apparatus of intelligent terminal | |
| CN105117243B (en) | A kind of method and apparatus for the startup time obtaining application program | |
| CN103955378B (en) | A kind of configuring information processing method and device for IE kernel browsers |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right | Effective date of registration:20220726 Address after:Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after:BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before:100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before:BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before:Qizhi software (Beijing) Co.,Ltd. |