CN112099841A - Method and system for generating configuration file - Google Patents

Method and system for generating configuration file Download PDF

Info

Publication number
CN112099841A
CN112099841A CN202010885912.7A CN202010885912A CN112099841A CN 112099841 A CN112099841 A CN 112099841A CN 202010885912 A CN202010885912 A CN 202010885912A CN 112099841 A CN112099841 A CN 112099841A
Authority
CN
China
Prior art keywords
embedded
configuration information
configuration
class
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010885912.7A
Other languages
Chinese (zh)
Inventor
李继永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tongbang Zhuoyi Technology Co ltd
Original Assignee
Beijing Tongbang Zhuoyi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tongbang Zhuoyi Technology Co ltd filed Critical Beijing Tongbang Zhuoyi Technology Co ltd
Priority to CN202010885912.7A priority Critical patent/CN112099841A/en
Publication of CN112099841A publication Critical patent/CN112099841A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a system for generating a configuration file, and relates to the technical field of computers. One embodiment of the method comprises: starting the embedded system; the embedded system is used for generating configuration files and managing configuration information, is embedded in an application system, and is independent from the application system; performing, by the embedded system, the steps of: receiving configuration information submitted by a user, and storing the configuration information into an embedded database; and generating a configuration file in a target format according to the configuration information, and storing the configuration file to a specified path of a disk. The implementation method can solve the technical problems that the deployment structure is too large, the network is depended on or the maintenance cost is high.

Description

一种生成配置文件的方法和系统A method and system for generating configuration files

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种生成配置文件的方法和系统。The present invention relates to the field of computer technology, and in particular, to a method and system for generating a configuration file.

背景技术Background technique

在大多数系统里,系统参数都是通过配置文件的方式进行定义,而配置文件都是通过手动来配置的。用户在集中配置系统对属性进行配置,应用系统在启动时,通过网络从集中配置系统拉取配置信息保存到内存中,供应用系统使用。In most systems, system parameters are defined by means of configuration files, and configuration files are configured manually. The user configures the properties in the centralized configuration system. When the application system starts, the configuration information is pulled from the centralized configuration system through the network and saved in the memory for use by the application system.

在实现本发明过程中,发明人发现现有技术中至少存在如下问题:In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art:

1)部署结构过于庞大:应用系统必须依赖集中配置系统,无法独立运行;在对外输出时,往往还需要部署一个单独的集中配置文件系统。1) The deployment structure is too large: the application system must rely on the centralized configuration system and cannot run independently; when exporting to the outside world, it is often necessary to deploy a separate centralized configuration file system.

2)依赖网络:应用系统必须通过网络连接,从集中配置系统拉取配置信息,如果网络中断,就无法拉取到配置信息,造成系统故障。2) Dependency on the network: The application system must be connected through the network to pull configuration information from the centralized configuration system. If the network is interrupted, the configuration information cannot be pulled, causing system failure.

3)维护成本高:集中配置系统需要专人对其进行管理和维护。3) High maintenance cost: The centralized configuration system requires special personnel to manage and maintain it.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供一种生成配置文件的方法和系统,以解决部署结构过于庞大、依赖网络或者维护成本高的技术问题。In view of this, embodiments of the present invention provide a method and system for generating a configuration file, so as to solve the technical problems that the deployment structure is too large, relies on the network, or has high maintenance costs.

为实现上述目的,根据本发明实施例的一个方面,提供了一种生成配置文件的方法,包括:To achieve the above object, according to an aspect of the embodiments of the present invention, a method for generating a configuration file is provided, including:

启动内嵌系统;其中,所述内嵌系统为用于生成配置文件和管理配置信息的系统,所述内嵌系统嵌入在应用系统中,且所述内嵌系统与所述应用系统相互独立;Start an embedded system; wherein, the embedded system is a system for generating configuration files and managing configuration information, the embedded system is embedded in an application system, and the embedded system and the application system are independent of each other;

通过所述内嵌系统执行以下步骤:Perform the following steps through the embedded system:

接收用户提交的配置信息,并将所述配置信息保存到嵌入式数据库中;Receive the configuration information submitted by the user, and save the configuration information in the embedded database;

根据所述配置信息生成目标格式的配置文件,并将所述配置文件保存到磁盘的指定路径下。A configuration file in a target format is generated according to the configuration information, and the configuration file is saved to a specified path on the disk.

可选地,将所述配置文件保存到磁盘的指定路径下之后,通过所述内嵌系统进一步执行以下步骤:Optionally, after saving the configuration file to a specified path on the disk, the embedded system further performs the following steps:

读取所述嵌入式数据库中的配置信息,以在用户界面显示所述配置信息;reading the configuration information in the embedded database to display the configuration information on the user interface;

根据用户的修改指令修改所述配置信息,并将所述配置信息的修改记录保存到所述嵌入式数据库的修改记录表中;Modify the configuration information according to the modification instruction of the user, and save the modification record of the configuration information in the modification record table of the embedded database;

更新所述磁盘中的配置文件。Update the configuration file in the disk.

可选地,将所述配置文件保存到磁盘的指定路径下之后,通过所述内嵌系统进一步执行以下步骤:Optionally, after saving the configuration file to a specified path on the disk, the embedded system further performs the following steps:

调用集中式配置文件系统的通用接口,通过所述通用接口将所述配置文件发送至所述集中式配置文件系统。A generic interface of the centralized configuration file system is invoked, and the configuration file is sent to the centralized configuration file system through the generic interface.

可选地,所述内嵌系统以软件包文件格式的形式嵌入在所述应用系统中。Optionally, the embedded system is embedded in the application system in the form of a software package file format.

可选地,所述软件包文件格式为jar文件。Optionally, the software package file format is a jar file.

可选地,启动内嵌系统,包括:Optionally, start the embedded system, including:

以java中的jar命令启动内嵌系统。Start the embedded system with the jar command in java.

可选地,启动内嵌系统之前,还包括:Optionally, before starting the embedded system, it also includes:

构建启动加载类、数据库连接类和界面管理类;Build startup loading classes, database connection classes and interface management classes;

采用打包工具将所述启动加载类、所述数据库连接类和所述界面管理类打包成jar文件,从而构建得到内嵌系统。A packaging tool is used to package the startup loading class, the database connection class and the interface management class into a jar file, thereby constructing an embedded system.

可选地,所述启动加载类用于启动内嵌系统;Optionally, the startup loading class is used to start the embedded system;

所述数据库连接类用于读取嵌入式数据库中的数据;The database connection class is used to read data in the embedded database;

所述界面管理类用于将读取的数据显示在界面,以供用户查看、配置或者修改配置信息;The interface management class is used to display the read data on the interface for the user to view, configure or modify the configuration information;

可选的,所述启动加载类为ServerBootStrap.class,所述数据库连接类为DbManager.class,和/或,所述界面管理类为UiManger.class。Optionally, the startup loading class is ServerBootStrap.class, the database connection class is DbManager.class, and/or the interface management class is UiManger.class.

可选地,所述配置信息包括所述应用系统中各个环境的环境配置信息和所述应用系统的系统配置信息。Optionally, the configuration information includes environment configuration information of each environment in the application system and system configuration information of the application system.

可选地,所述各个环境包括开发环境、测试环境和生产环境中的至少一种;所述系统配置信息的属性包括公共属性和私有属性。Optionally, each environment includes at least one of a development environment, a test environment, and a production environment; the attributes of the system configuration information include public attributes and private attributes.

可选地,所述目标格式包括xml格式或者properties格式。Optionally, the target format includes an xml format or a properties format.

可选地,所述嵌入式数据库包括SQLite数据库。Optionally, the embedded database includes a SQLite database.

另外,根据本发明实施例的另一个方面,提供了一种生成配置文件的系统,包括应用系统、内嵌系统和嵌入式数据库,所述内嵌系统嵌入在应用系统中,且所述内嵌系统与所述应用系统相互独立;In addition, according to another aspect of the embodiments of the present invention, a system for generating a configuration file is provided, including an application system, an embedded system and an embedded database, the embedded system is embedded in the application system, and the embedded system is The system is independent of the application system;

所述内嵌系统用于:The inline system is used to:

接收用户提交的配置信息,并将所述配置信息保存到所述嵌入式数据库中;Receive the configuration information submitted by the user, and save the configuration information in the embedded database;

根据所述配置信息生成目标格式的配置文件,并将所述配置文件保存到磁盘的指定路径下。A configuration file in a target format is generated according to the configuration information, and the configuration file is saved to a specified path on the disk.

可选地,将所述配置文件保存到磁盘的指定路径下之后,所述内嵌系统还用于:Optionally, after saving the configuration file to a specified path on the disk, the embedded system is further used to:

读取所述嵌入式数据库中的配置信息,以在用户界面显示所述配置信息;reading the configuration information in the embedded database to display the configuration information on the user interface;

根据用户的修改指令修改所述配置信息,并将所述配置信息的修改记录保存到所述嵌入式数据库的修改记录表中;Modify the configuration information according to the modification instruction of the user, and save the modification record of the configuration information in the modification record table of the embedded database;

更新所述磁盘中的配置文件。Update the configuration file in the disk.

可选地,将所述配置文件保存到磁盘的指定路径下之后,所述内嵌系统还用于:Optionally, after saving the configuration file to a specified path on the disk, the embedded system is further used to:

调用集中式配置文件系统的通用接口,通过所述通用接口将所述配置文件发送至所述集中式配置文件系统。A generic interface of the centralized configuration file system is invoked, and the configuration file is sent to the centralized configuration file system through the generic interface.

可选地,所述内嵌系统以软件包文件格式的形式嵌入在所述应用系统中。Optionally, the embedded system is embedded in the application system in the form of a software package file format.

可选地,所述软件包文件格式为jar文件。Optionally, the software package file format is a jar file.

可选地,所述内嵌系统采用如下方法启动:Optionally, the embedded system is started by the following method:

以java中的jar命令启动内嵌系统。Start the embedded system with the jar command in java.

可选地,所述内嵌系统采用如下方法构建得到:Optionally, the embedded system is constructed and obtained by adopting the following method:

构建启动加载类、数据库连接类和界面管理类;Build startup loading classes, database connection classes and interface management classes;

采用打包工具将所述启动加载类、所述数据库连接类和所述界面管理类打包成jar文件。A packaging tool is used to package the startup loading class, the database connection class and the interface management class into a jar file.

可选地,所述启动加载类用于启动内嵌系统;Optionally, the startup loading class is used to start the embedded system;

所述数据库连接类用于读取嵌入式数据库中的数据;The database connection class is used to read data in the embedded database;

所述界面管理类用于将读取的数据显示在界面,以供用户查看、配置或者修改配置信息;The interface management class is used to display the read data on the interface for the user to view, configure or modify the configuration information;

可选地,所述启动加载类为ServerBootStrap.class,所述数据库连接类为DbManager.class,和/或,所述界面管理类为UiManger.class。Optionally, the startup loading class is ServerBootStrap.class, the database connection class is DbManager.class, and/or the interface management class is UiManger.class.

可选地,所述配置信息包括所述应用系统中各个环境的环境配置信息和所述应用系统的系统配置信息。Optionally, the configuration information includes environment configuration information of each environment in the application system and system configuration information of the application system.

可选地,所述各个环境包括开发环境、测试环境和生产环境中的至少一种;所述系统配置信息的属性包括公共属性和私有属性。Optionally, each environment includes at least one of a development environment, a test environment, and a production environment; the attributes of the system configuration information include public attributes and private attributes.

可选地,所述目标格式包括xml格式或者properties格式。Optionally, the target format includes an xml format or a properties format.

可选地,所述嵌入式数据库包括SQLite数据库。Optionally, the embedded database includes a SQLite database.

根据本发明实施例的另一个方面,还提供了一种电子设备,包括:According to another aspect of the embodiments of the present invention, an electronic device is also provided, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行时,所述一个或多个处理器实现上述任一实施例所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.

根据本发明实施例的另一个方面,还提供了一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现上述任一实施例所述的方法。According to another aspect of the embodiments of the present invention, there is also provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements the method described in any of the foregoing embodiments.

上述发明中的一个实施例具有如下优点或有益效果:因为采用通过内嵌系统:接收用户提交的配置信息,并将配置信息保存到嵌入式数据库中,根据配置信息生成目标格式的配置文件,并将配置文件保存到磁盘的指定路径下的技术手段,所以克服了现有技术中部署结构过于庞大、依赖网络或者维护成本高的技术问题。本发明实施例通过内嵌系统对配置进行定义、修改、生效,标准化地生成配置文件,能够减轻在不同的环境、不同系统中重复配置的工作量,减轻手工修改配置文件引起系统错误的风险;而且应用系统完全不依赖网络就可以读取配置文件,摆脱了集中式配置系统的依赖,也显著地降低了维护成本。因此,本发明实施例减少人工配置操作,提高配置效率,降低配置风险。An embodiment of the above invention has the following advantages or beneficial effects: because the embedded system is adopted: receiving the configuration information submitted by the user, saving the configuration information in the embedded database, generating the configuration file in the target format according to the configuration information, and The technical means of saving the configuration file to the specified path of the disk overcomes the technical problems of too large deployment structure, reliance on the network or high maintenance cost in the prior art. The embodiment of the present invention defines, modifies, and takes effect of the configuration through the embedded system, and generates the configuration file in a standardized manner, which can reduce the workload of repeated configuration in different environments and different systems, and reduce the risk of system errors caused by manual modification of the configuration file; Moreover, the application system can read the configuration file without relying on the network at all, getting rid of the dependence of the centralized configuration system, and also significantly reducing the maintenance cost. Therefore, the embodiments of the present invention reduce manual configuration operations, improve configuration efficiency, and reduce configuration risks.

上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above non-conventional alternatives will be described below in conjunction with specific embodiments.

附图说明Description of drawings

附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used for better understanding of the present invention and do not constitute an improper limitation of the present invention. in:

图1是根据本发明实施例的生成配置文件的方法的主要流程的示意图;1 is a schematic diagram of the main flow of a method for generating a configuration file according to an embodiment of the present invention;

图2是根据本发明实施例的配置信息的数据结构的示意图;2 is a schematic diagram of a data structure of configuration information according to an embodiment of the present invention;

图3是根据本发明一个可参考实施例的生成配置文件的方法的主要流程的示意图;3 is a schematic diagram of the main flow of a method for generating a configuration file according to a referenced embodiment of the present invention;

图4是根据本发明另一个可参考实施例的生成配置文件的方法的主要流程的示意图;4 is a schematic diagram of the main flow of a method for generating a configuration file according to another referenced embodiment of the present invention;

图5是根据本发明实施例的生成配置文件的系统的主要模块的示意图;5 is a schematic diagram of main modules of a system for generating a configuration file according to an embodiment of the present invention;

图6是本发明实施例可以应用于其中的示例性系统架构图;FIG. 6 is an exemplary system architecture diagram to which an embodiment of the present invention may be applied;

图7是适于用来实现本发明实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 7 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

在一个普通的应用系统中,一般分为3种环境:开发环境、测试环境、生产环境,这时候就需要有3套配置文件。特殊的系统,还会有预发环境、uat(User Acceptance Test,用户验收测试)环境、poc(roof of Concept,验证性测试)环境等,这时候就需要6套配置文件。如果按照现在流行的技术路线(如微服务、微架构等),一个系统往往会被拆成前台、后台两个系统,甚至一个系统会被拆成3-5个子系统。In an ordinary application system, it is generally divided into three environments: development environment, test environment, and production environment. At this time, three sets of configuration files are required. For special systems, there will also be a pre-release environment, a uat (User Acceptance Test, user acceptance test) environment, and a poc (roof of Concept, verification test) environment, etc. At this time, six sets of configuration files are required. If you follow the current popular technical route (such as micro-services, micro-architecture, etc.), a system will often be split into two systems: the foreground and the background, or even a system will be split into 3-5 subsystems.

这时候,配置文件数量会成倍的增长,对于运维工作量巨大。另外,部分环境的配置是相同的,如果修改一个参数,往往需要修改多处,此时由于配置文件的错误造成的风险就会凸显出来。At this time, the number of configuration files will increase exponentially, which is a huge workload for operation and maintenance. In addition, the configuration of some environments is the same. If you modify a parameter, you often need to modify multiple places. At this time, the risk caused by the error of the configuration file will become prominent.

目前,通常使用集中配置系统对属性进行配置,应用系统在启动时,通过网络从集中配置系统拉取配置信息保存到内存中,供应用系统使用。但是,使用集中配置系统的应用服务器,必须完全依赖集中配置系统,因为是2个服务,所以必须依赖于网络。如果集中配置系统出现问题,会导致无法获取配置信息。所以,必须保证集中配置系统的高可用和低延迟。而集中配置系统存在部署结构过于庞大和维护成本高的技术问题,为了解决这些技术问题,本发明实施例提供了一种生成配置文件的方法,该方法通过一个内嵌系统,可以直观地对配置进行定义、修改、生效,可标准化地生成配置文件,通过自动化配置,减少人工操作,提高效率,降低风险;而且不需要网络,也不需要部署庞大的系统结构。At present, a centralized configuration system is usually used to configure attributes. When the application system is started, the configuration information is pulled from the centralized configuration system through the network and stored in the memory for use by the application system. However, the application server using the centralized configuration system must completely rely on the centralized configuration system, and because there are two services, it must depend on the network. If there is a problem with the centralized configuration system, the configuration information cannot be obtained. Therefore, high availability and low latency of the centralized configuration system must be guaranteed. However, the centralized configuration system has the technical problems of too large deployment structure and high maintenance cost. In order to solve these technical problems, the embodiment of the present invention provides a method for generating a configuration file, which can intuitively configure the configuration file through an embedded system. To define, modify, and take effect, configuration files can be generated in a standardized manner. Through automatic configuration, manual operations are reduced, efficiency is improved, and risks are reduced; and there is no need for a network or the deployment of a huge system structure.

图1是根据本发明实施例的生成配置文件的方法的主要流程的示意图。作为本发明的一个实施例,如图1所示,所述生成配置文件的方法可以包括:FIG. 1 is a schematic diagram of a main flow of a method for generating a configuration file according to an embodiment of the present invention. As an embodiment of the present invention, as shown in FIG. 1 , the method for generating a configuration file may include:

步骤101,启动内嵌系统;其中,所述内嵌系统嵌入在应用系统中,且所述内嵌系统与所述应用系统相互独立。Step 101 , starting an embedded system; wherein, the embedded system is embedded in an application system, and the embedded system and the application system are independent of each other.

在本发明的实施例中,所述内嵌系统不依赖于外部的容器(比如tomcat、weblogic等),所述内嵌系统为用于生成配置文件和管理配置信息的系统,所述内嵌系统以软件包文件格式(比如可执行的jar包文件)的形式嵌入在所述应用系统中。由于内嵌系统以可执行jar包的形式存在于应用系统中,因此可以直接以java中的jar命令启动内嵌系统java的方式,在不依赖应用系统的情况下启动内嵌系统。内嵌系统的启动,基于常见的Netty网络编程框架,实现一个简易的http服务器,通过jar命令进行启动。In the embodiment of the present invention, the embedded system does not depend on external containers (such as tomcat, weblogic, etc.), the embedded system is a system for generating configuration files and managing configuration information, and the embedded system It is embedded in the application system in the form of a software package file format (such as an executable jar package file). Since the embedded system exists in the application system in the form of an executable jar package, the embedded system can be started directly by using the jar command in java to start the embedded system java without relying on the application system. The startup of the embedded system, based on the common Netty network programming framework, implements a simple http server and starts it through the jar command.

可选地,在步骤101之前,还需要先构建内嵌系统,构建内嵌系统的步骤包括:构建启动加载类、数据库连接类和界面管理类;采用打包工具将所述启动加载类、所述数据库连接类和所述界面管理类打包成jar文件,从而构建得到内嵌系统。其中,所述启动加载类用于启动内嵌系统;所述数据库连接类用于读取嵌入式数据库中的数据;所述界面管理类用于将读取的数据显示在界面,以供用户查看、配置或者修改配置信息。具体地,由启动加载类监听19999端口,当用户通过浏览器访问19999端口时,启动加载类启动内嵌系统,然后数据库连接类读取嵌入式数据库中的数据,最后通过界面管理类对读取的数据进行处理,用户即可在界面对配置信息进行查看、修改、添加等。Optionally, before step 101, an embedded system needs to be constructed first, and the steps of constructing the embedded system include: constructing a startup loading class, a database connection class, and an interface management class; using a packaging tool to package the startup loading class, the The database connection class and the interface management class are packaged into a jar file, thereby constructing an embedded system. The startup loading class is used to start the embedded system; the database connection class is used to read the data in the embedded database; the interface management class is used to display the read data on the interface for the user to view , configure or modify configuration information. Specifically, the startup loading class listens to port 19999. When the user accesses port 19999 through a browser, the startup loading class starts the embedded system, then the database connection class reads the data in the embedded database, and finally reads the data through the interface management class. The user can view, modify, and add configuration information on the interface.

可选地,所述启动加载类为ServerBootStrap.class,ServerBootStrap.class能够快速地启动内嵌系统。可选地,所述数据库连接类为DbMana ger.class,通过DbManager.class可以快速地读取嵌入式数据库中的数据以及将用户配置的配置信息保存到嵌入式数据库中。可选地,所述界面管理类为UiManger.class,用户可在界面对配置信息进行查看、修改、添加等。Optionally, the startup loading class is ServerBootStrap.class, and ServerBootStrap.class can quickly start the embedded system. Optionally, the database connection class is DbManager.class, and the data in the embedded database can be quickly read and the configuration information configured by the user can be saved in the embedded database through DbManager.class. Optionally, the interface management class is UiManger.class, and the user can view, modify, and add configuration information on the interface.

需要指出的是,应用系统和内嵌系统属于两个独立的系统。应用系统和内嵌系统都可以分别启动,没有相互依赖关系。内嵌系统可以嵌入在应用系统中,在需要的时候(比如需要查看配置信息、修改配置信息或者新增配置信息的时候)进行启动。无论应用系统是否启动,都可以独立地启动内嵌系统。It should be pointed out that the application system and the embedded system belong to two independent systems. Both the application system and the embedded system can be started separately without interdependence. The embedded system can be embedded in the application system and activated when needed (for example, when you need to view configuration information, modify configuration information, or add new configuration information). The embedded system can be started independently regardless of whether the application system is started or not.

通过所述内嵌系统执行步骤102和步骤103。Steps 102 and 103 are performed by the embedded system.

步骤102,接收用户提交的配置信息,并将所述配置信息保存到嵌入式数据库中。Step 102: Receive the configuration information submitted by the user, and save the configuration information in the embedded database.

内嵌系统启动后,可以通过用户界面查看配置的信息以及接收用户提交的配置信息,然后将接收的配置信息实时保存到嵌入式数据库中。为避免不合规的配置或其他的低级错误,预先定义规则过滤器(比如日期规则、数字规则、IP规则、邮箱规则等),可以对内嵌系统在配置属性时进行实时的过滤。After the embedded system is started, the configuration information can be viewed through the user interface and the configuration information submitted by the user can be received, and then the received configuration information can be saved in the embedded database in real time. In order to avoid non-compliant configuration or other low-level errors, pre-defined rule filters (such as date rules, number rules, IP rules, mailbox rules, etc.) can filter the embedded system in real time when configuring properties.

可选地,所述配置信息包括所述应用系统中各个环境的环境配置信息和所述应用系统的系统配置信息。可选地,所述各个环境包括开发环境、测试环境和生产环境中的至少一种;所述系统配置信息的属性包括公共属性和私有属性。一个项目往往有多个环境(如开发环境、测试环境、生产环境等,可能还会有预发环境、uat环境、poc环境),因此需要对配置内容进行分组定义。而多个环境中,会存在配置相同的内容,因此还需要定义配置的共享级别:私有、公共等。公共指的是不同环境之间公共的配置项;私有指的是不同环境之间特有的配置项。Optionally, the configuration information includes environment configuration information of each environment in the application system and system configuration information of the application system. Optionally, each environment includes at least one of a development environment, a test environment, and a production environment; the attributes of the system configuration information include public attributes and private attributes. A project often has multiple environments (such as development environment, test environment, production environment, etc., and there may also be pre-release environment, uat environment, poc environment), so it is necessary to define the configuration content in groups. In multiple environments, there will be the same configuration content, so it is also necessary to define the sharing level of the configuration: private, public, etc. Public refers to configuration items that are common between different environments; private refers to configuration items that are unique between different environments.

如图2所示,每个分组表示一个环境,配置该环境的配置信息时需要配置共享级别:公共或者私有。如果配置项是“公共”,则在后期生成的配置文件中,每个环境中都会有该配置项,以减轻在不同的环境中重复配置的工作量;如果配置项是“私有”,则只在配置的环境(通过所属分组配置该环境)中生成该配置项。As shown in Figure 2, each group represents an environment, and the sharing level needs to be configured when configuring the configuration information of the environment: public or private. If the configuration item is "public", it will be available in each environment in the post-generated configuration file to reduce the workload of repeated configuration in different environments; if the configuration item is "private", only The configuration item is generated in the configured environment (configured by the group to which it belongs).

配置文件的内容相对来讲,不是很多,不需要大型数据,因此本发明实施例将配置信息保存到嵌入式数据库中。可选地,所述嵌入式数据库包括SQLite数据库。SQLite是一个嵌入式数据库,整个数据库就是一个文件,不需要依赖于其他组件。将把配置文件复制到另外一个地方,就形成一个新的独立的数据库了。而且嵌入式数据库的内存小,整个数据库只需要一个文件,在本机即可启动。可选地,所述嵌入式数据库也可以是Progress、Empress、mSQL或者eXtremeDB等,本发明实施例对此不作限制。Relatively speaking, the content of the configuration file is not much, and large-scale data is not required. Therefore, the embodiment of the present invention saves the configuration information in the embedded database. Optionally, the embedded database includes a SQLite database. SQLite is an embedded database, the entire database is a file and does not need to depend on other components. The configuration file will be copied to another place to form a new independent database. Moreover, the memory of the embedded database is small, and the entire database only needs one file, which can be started locally. Optionally, the embedded database may also be Progress, Empress, mSQL, or eXtremeDB, etc., which is not limited in this embodiment of the present invention.

步骤103,根据所述配置信息生成目标格式的配置文件,并将所述配置文件保存到磁盘的指定路径下。Step 103: Generate a configuration file in a target format according to the configuration information, and save the configuration file to a specified path on the disk.

可选地,为了按照用户需求生成目标格式的配置文件,需要在内嵌系统执行步骤102或者执行步骤103之前,在内嵌系统中对配置文件的格式进行定义,比如定义配置文件的目标格式为xml文件或者kv键值对形式的properties文件等。Optionally, in order to generate a configuration file in a target format according to user requirements, it is necessary to define the format of the configuration file in the embedded system before the embedded system executes step 102 or executes step 103, for example, the target format of the configuration file is defined as: xml file or properties file in the form of kv key-value pairs, etc.

可选地,将所述配置文件保存到磁盘的指定路径下之后,通过所述内嵌系统进一步执行以下步骤:读取所述嵌入式数据库中的配置信息,以在用户界面显示所述配置信息;根据用户的修改指令修改所述配置信息,并将所述配置信息的修改记录保存到所述嵌入式数据库的修改记录表中;更新所述磁盘中的配置文件。本发明实施例使用嵌入式数据库作为内嵌服务的数据库,记录配置信息以及每一次的修改记录。对于每一次修改都记录在嵌入式数据库中,以便需要时进行回溯。完成配置信息的修改之后,进一步更新磁盘上的配置文件,以保证配置文件中的配置信息是最新配置的。Optionally, after saving the configuration file to a specified path of the disk, the embedded system further performs the following steps: reading the configuration information in the embedded database to display the configuration information on the user interface ; modify the configuration information according to the user's modification instruction, and save the modification record of the configuration information in the modification record table of the embedded database; update the configuration file in the disk. The embodiment of the present invention uses an embedded database as the database of the embedded service to record configuration information and each modification record. Every modification is recorded in an embedded database for backtracking when needed. After the modification of the configuration information is completed, the configuration file on the disk is further updated to ensure that the configuration information in the configuration file is the latest configuration.

在本发明的实施例中,在生成配置文件时,配置文件在磁盘中的存储路径由用户指定,因此可以按照用户指定的路径,将目标格式(比如xml或者properties)的配置文件保存到指定路径下,修改配置信息后,相应地更新该路径下的配置文件。In the embodiment of the present invention, when the configuration file is generated, the storage path of the configuration file in the disk is specified by the user, so the configuration file in the target format (such as xml or properties) can be saved to the specified path according to the path specified by the user After modifying the configuration information, update the configuration file under this path accordingly.

需要指出的是,在本发明的实施例中,所有的配置信息以及修改记录都保存在嵌入式数据库中,但是并不能被应用系统读取到。因此,需要将配置信息以文件形式保存到磁盘上,供应用系统读取使用。It should be pointed out that, in the embodiment of the present invention, all configuration information and modification records are stored in the embedded database, but cannot be read by the application system. Therefore, the configuration information needs to be saved to the disk in the form of a file for the application system to read and use.

可选地,将所述配置文件保存到磁盘的指定路径下之后,通过所述内嵌系统进一步执行以下步骤:调用集中式配置文件系统的通用接口,通过所述通用接口将所述配置文件发送至所述集中式配置文件系统。考虑到实际项目中,部分应用系统已经接入了集中配置系统,因此通过调用通用接口,将在内嵌系统中配置好的配置文件发送到集中式系统中,这样使得应用系统可以在集中配置系统和内嵌系统之间灵活地切换。Optionally, after saving the configuration file to a specified path on the disk, the embedded system further performs the following steps: calling a general interface of the centralized configuration file system, and sending the configuration file through the general interface to the centralized configuration file system. Considering that in the actual project, some application systems have been connected to the centralized configuration system, so by calling the general interface, the configuration file configured in the embedded system is sent to the centralized system, so that the application system can configure the system in the centralized system. Switch flexibly between embedded systems.

需要说明的是,部署在应用服务器上的应用系统可以是父系统,也可以是子系统,但是从技术上或者部署方式上讲,也是一个独立的系统。子系统是独立部署、独立启动。如果要在父子系统之间进行配置信息共享,则要先在父系统的内嵌系统中定义好配置,然后将父系统的配置文件复制到各个子系统中,最后再在子系统中的内嵌系统进行配置的修改,这样能够减轻不同系统之间重复配置的工作量,还可以降低手工修改配置文件引起系统错误的风险。It should be noted that the application system deployed on the application server may be a parent system or a subsystem, but technically or in terms of deployment method, it is also an independent system. Subsystems are independently deployed and started independently. If you want to share configuration information between parent subsystems, you must first define the configuration in the embedded system of the parent system, then copy the configuration file of the parent system to each subsystem, and finally add the embedded system in the subsystem. The system performs configuration modification, which can reduce the workload of repeated configuration between different systems, and also reduce the risk of system errors caused by manual modification of configuration files.

根据上面所述的各种实施例,可以看出本发明实施例采用通过内嵌系统:接收用户提交的配置信息,并将配置信息保存到嵌入式数据库中,根据配置信息生成目标格式的配置文件,并将配置文件保存到磁盘的指定路径下的技术手段,解决了现有技术中部署结构过于庞大、依赖网络或者维护成本高的技术问题。本发明实施例通过内嵌系统对配置进行定义、修改、生效,标准化地生成配置文件,能够减轻在不同的环境、不同系统中重复配置的工作量,减轻手工修改配置文件引起系统错误的风险;而且应用系统完全不依赖网络就可以读取配置文件,摆脱了集中式配置系统的依赖,也显著地降低了维护成本。因此,本发明实施例减少人工配置操作,提高配置效率,降低配置风险。According to the various embodiments described above, it can be seen that the embodiment of the present invention adopts an embedded system: receiving the configuration information submitted by the user, saving the configuration information in the embedded database, and generating a configuration file in the target format according to the configuration information , and the technical means of saving the configuration file to the specified path of the disk solves the technical problems of too large deployment structure, network dependence or high maintenance cost in the prior art. The embodiment of the present invention defines, modifies, and takes effect of the configuration through the embedded system, and generates the configuration file in a standardized manner, which can reduce the workload of repeated configuration in different environments and different systems, and reduce the risk of system errors caused by manual modification of the configuration file; Moreover, the application system can read the configuration file without relying on the network at all, getting rid of the dependence of the centralized configuration system, and also significantly reducing the maintenance cost. Therefore, the embodiments of the present invention reduce manual configuration operations, improve configuration efficiency, and reduce configuration risks.

图3是根据本发明一个可参考实施例的生成配置文件的方法的主要流程的示意图。作为本发明的又一个实施例,如图3所示,所述生成配置文件的方法可以包括:FIG. 3 is a schematic diagram of the main flow of a method for generating a configuration file according to a referenced embodiment of the present invention. As another embodiment of the present invention, as shown in FIG. 3 , the method for generating a configuration file may include:

步骤301,构建内嵌系统。Step 301, building an embedded system.

具体地,包括:构建启动加载类、数据库连接类和界面管理类;采用打包工具将所述启动加载类、所述数据库连接类和所述界面管理类打包成jar文件,从而构建得到内嵌系统。其中,所述启动加载类用于启动内嵌系统;所述数据库连接类用于读取嵌入式数据库中的数据;所述界面管理类用于将读取的数据显示在界面,以供用户查看、配置或者修改配置信息。Specifically, it includes: constructing a startup loading class, a database connection class, and an interface management class; using a packaging tool to package the startup loading class, the database connection class, and the interface management class into a jar file, thereby constructing an embedded system . The startup loading class is used to start the embedded system; the database connection class is used to read the data in the embedded database; the interface management class is used to display the read data on the interface for the user to view , configure or modify configuration information.

步骤302,启动内嵌系统。Step 302, start the embedded system.

其中,所述内嵌系统嵌入在应用系统中,且所述内嵌系统与所述应用系统相互独立。所述内嵌系统不依赖于外部的容器(比如tomcat、weblogic等),所述内嵌系统为用于生成配置文件和管理配置信息的系统,所述内嵌系统以软件包文件格式(比如可执行的jar文件)的形式嵌入在所述应用系统中。由于内嵌系统以可执行jar包的形式存在于应用系统中,因此可以直接以java中的jar命令启动内嵌系统,在不依赖应用系统的情况下启动内嵌系统。应用系统和内嵌系统都可以分别启动,没有相互依赖关系。内嵌系统可以嵌入在应用系统中,在需要的时候进行启动。无论应用系统是否启动,都可以独立地启动内嵌系统。Wherein, the embedded system is embedded in the application system, and the embedded system and the application system are independent of each other. The embedded system does not depend on external containers (such as tomcat, weblogic, etc.), the embedded system is a system for generating configuration files and managing configuration information, and the embedded system is in a software package file format (such as jar file) is embedded in the application system. Since the embedded system exists in the application system in the form of an executable jar package, the embedded system can be started directly with the jar command in java, and the embedded system can be started without relying on the application system. Both the application system and the embedded system can be started separately without interdependence. Embedded systems can be embedded in the application system and activated when needed. The embedded system can be started independently regardless of whether the application system is started or not.

通过所述内嵌系统执行步骤303-步骤307。Steps 303 to 307 are performed by the embedded system.

步骤303,接收用户提交的配置信息。Step 303, receiving the configuration information submitted by the user.

内嵌系统启动后,可以通过用户界面查看配置的信息以及接收用户提交的配置信息,然后将接收的配置信息实时保存到嵌入式数据库中。为避免不合规的配置或其他的低级错误,预先定义规则过滤器(比如日期规则、数字规则、IP规则、邮箱规则等),可以对内嵌系统在配置属性时进行实时的过滤。After the embedded system is started, the configuration information can be viewed through the user interface and the configuration information submitted by the user can be received, and then the received configuration information can be saved in the embedded database in real time. In order to avoid non-compliant configuration or other low-level errors, pre-defined rule filters (such as date rules, number rules, IP rules, mailbox rules, etc.) can filter the embedded system in real time when configuring properties.

步骤304,将所述配置信息保存到嵌入式数据库中。Step 304: Save the configuration information into an embedded database.

可选地,所述嵌入式数据库包括SQLite数据库。SQLite是一个嵌入式数据库,整个数据库就是一个文件,不需要依赖于其他组件。将把配置文件复制到另外一个地方,就形成一个新的独立的数据库了。而且嵌入式数据库的内存小,整个数据库只需要一个文件,在本机即可启动。Optionally, the embedded database includes a SQLite database. SQLite is an embedded database, the entire database is a file and does not need to depend on other components. The configuration file will be copied to another place to form a new independent database. Moreover, the memory of the embedded database is small, and the entire database only needs one file, which can be started locally.

步骤305,指定配置文件的目标格式和存储路径。Step 305, specify the target format and storage path of the configuration file.

为了按照用户需求,生成目标格式的配置文件需要在内嵌系统执行步骤305之前,在内嵌系统中对配置文件的格式进行定义,比如定义配置文件的目标格式为xml文件或者kv键值对形式的properties文件等。In order to generate a configuration file in a target format according to user requirements, it is necessary to define the format of the configuration file in the embedded system before the embedded system executes step 305, for example, define the target format of the configuration file as an xml file or a kv key-value pair format properties file, etc.

同样地,需要在内嵌系统执行步骤307之前,在内嵌系统中指定配置文件在磁盘上的存储路径。Likewise, before the embedded system executes step 307, the storage path of the configuration file on the disk needs to be specified in the embedded system.

步骤306,根据所述配置信息生成目标格式的配置文件。Step 306: Generate a configuration file in a target format according to the configuration information.

步骤307,将所述配置文件保存到磁盘的指定路径下。Step 307: Save the configuration file to a specified path on the disk.

磁盘上的配置文件可以复制其他应用服务器,如果配置信息相同,该应用服务器上的应用系统可以直接读取该配置文件,如果需要修改,则启动该应用服务器上的内嵌系统,通过内嵌系统更新配置信息,从而更新磁盘上的配置文件。The configuration file on the disk can be copied to other application servers. If the configuration information is the same, the application system on the application server can directly read the configuration file. If it needs to be modified, the embedded system on the application server will be activated. Update configuration information, thereby updating the configuration file on disk.

部署在应用服务器上的应用系统可以是父系统,也可以是子系统,但是从技术上或者部署方式上讲,也是一个独立的系统。子系统是独立部署、独立启动。如果要在父子系统之间进行配置信息共享,则要先在父系统的内嵌系统中定义好配置,然后将父系统的配置文件复制到各个子系统中,最后再在子系统中的内嵌系统进行配置的修改,这样能够减轻不同系统之间重复配置的工作量,还可以降低手工修改配置文件引起系统错误的风险。The application system deployed on the application server can be a parent system or a subsystem, but technically or in terms of deployment method, it is also an independent system. Subsystems are independently deployed and started independently. If you want to share configuration information between parent subsystems, you must first define the configuration in the embedded system of the parent system, then copy the configuration file of the parent system to each subsystem, and finally add the embedded system in the subsystem. The system performs configuration modification, which can reduce the workload of repeated configuration between different systems, and also reduce the risk of system errors caused by manual modification of configuration files.

另外,在本发明一个可参考实施例中生成配置文件的方法的具体实施内容,在上面所述生成配置文件的方法中已经详细说明了,故在此重复内容不再说明。In addition, the specific implementation content of the method for generating a configuration file in a referenced embodiment of the present invention has been described in detail in the above-mentioned method for generating a configuration file, so the repeated content will not be described here.

图4是根据本发明另一个可参考实施例的生成配置文件的方法的主要流程的示意图。作为本发明的另一个实施例,如图4所示,所述生成配置文件的方法可以包括:FIG. 4 is a schematic diagram of the main flow of a method for generating a configuration file according to another referenced embodiment of the present invention. As another embodiment of the present invention, as shown in FIG. 4 , the method for generating a configuration file may include:

步骤401,启动内嵌系统。其中,所述内嵌系统嵌入在应用系统中,且所述内嵌系统与所述应用系统相互独立。Step 401, start the embedded system. Wherein, the embedded system is embedded in the application system, and the embedded system and the application system are independent of each other.

通过所述内嵌系统执行步骤402-步骤408。Steps 402 to 408 are performed by the embedded system.

步骤402,接收用户提交的配置信息。Step 402, receiving the configuration information submitted by the user.

步骤403,将所述配置信息保存到嵌入式数据库中。Step 403: Save the configuration information into an embedded database.

步骤404,根据所述配置信息生成目标格式的配置文件。Step 404: Generate a configuration file in a target format according to the configuration information.

步骤405,将所述配置文件保存到磁盘的指定路径下。Step 405: Save the configuration file to a specified path on the disk.

步骤406,读取所述嵌入式数据库中的配置信息,以在用户界面显示所述配置信息。Step 406: Read the configuration information in the embedded database to display the configuration information on the user interface.

当用户需要修改配置信息时,读取内嵌系统读取嵌入式数据库中的配置信息,从而在用户界面上显示所述配置信息。When the user needs to modify the configuration information, the reading embedded system reads the configuration information in the embedded database, so as to display the configuration information on the user interface.

步骤407,根据用户的修改指令修改所述配置信息,并将所述配置信息的修改记录保存到所述嵌入式数据库的修改记录表中。Step 407: Modify the configuration information according to the user's modification instruction, and save the modification record of the configuration information in the modification record table of the embedded database.

用户可以根据需要对已有的配置信息进行修改,内嵌系统根据用户的修改指令修改嵌入式数据库中的配置信息,同时将所述配置信息的修改记录保存到所述嵌入式数据库的修改记录表中,以便需要时进行回溯。The user can modify the existing configuration information as required, and the embedded system modifies the configuration information in the embedded database according to the user's modification instruction, and at the same time saves the modification record of the configuration information to the modification record table of the embedded database. , for backtracking if needed.

步骤408,更新所述磁盘中的配置文件。Step 408, update the configuration file in the disk.

完成配置信息的修改后,更新磁盘中的配置文件,以使应用系统读取到最新的配置信息。After modifying the configuration information, update the configuration file in the disk so that the application system can read the latest configuration information.

可选地,将所述配置文件保存到磁盘的指定路径下之后,通过所述内嵌系统进一步执行以下步骤:调用集中式配置文件系统的通用接口,通过所述通用接口将所述配置文件发送至所述集中式配置文件系统。考虑到实际项目中,部分应用系统已经接入了集中配置系统,因此通过调用通用接口,将在内嵌系统中配置好的配置文件发送到集中式系统中,这样使得应用系统可以在集中配置系统和内嵌系统之间灵活地切换。Optionally, after saving the configuration file to a specified path on the disk, the embedded system further performs the following steps: calling a general interface of the centralized configuration file system, and sending the configuration file through the general interface to the centralized configuration file system. Considering that in the actual project, some application systems have been connected to the centralized configuration system, so by calling the common interface, the configuration files configured in the embedded system are sent to the centralized system, so that the application system can configure the system in the centralized system. Switch flexibly between embedded systems.

另外,在本发明另一个可参考实施例中生成配置文件的方法的具体实施内容,在上面所述生成配置文件的方法中已经详细说明了,故在此重复内容不再说明。In addition, the specific implementation content of the method for generating a configuration file in another reference embodiment of the present invention has been described in detail in the above-mentioned method for generating a configuration file, so the repeated content will not be described here.

图5是根据本发明实施例的生成配置文件的系统的主要模块的示意图,如图5所示,所述生成配置文件的系统500包括应用系统501、内嵌系统502和嵌入式数据库503,所述内嵌系统为用于生成配置文件和管理配置信息的系统,所述内嵌系统502嵌入在应用系统501中,且所述内嵌系统502与所述应用系统501相互独立;FIG. 5 is a schematic diagram of main modules of a system for generating configuration files according to an embodiment of the present invention. As shown in FIG. 5 , the system 500 for generating configuration files includes an application system 501 , an embedded system 502 and an embedded database 503 . The embedded system is a system for generating configuration files and managing configuration information, the embedded system 502 is embedded in the application system 501, and the embedded system 502 and the application system 501 are independent of each other;

所述内嵌系统502用于:The embedded system 502 is used to:

接收用户提交的配置信息,并将所述配置信息保存到所述嵌入式数据库503中;Receive the configuration information submitted by the user, and save the configuration information into the embedded database 503;

根据所述配置信息生成目标格式的配置文件,并将所述配置文件保存到磁盘的指定路径下。A configuration file in a target format is generated according to the configuration information, and the configuration file is saved to a specified path on the disk.

可选地,将所述配置文件保存到磁盘的指定路径下之后,所述内嵌系统502还用于:Optionally, after saving the configuration file to a specified path on the disk, the embedded system 502 is further used to:

读取所述嵌入式数据库503中的配置信息,以在用户界面显示所述配置信息;Read the configuration information in the embedded database 503 to display the configuration information on the user interface;

根据用户的修改指令修改所述配置信息,并将所述配置信息的修改记录保存到所述嵌入式数据库503修改记录表中;Modify the configuration information according to the modification instruction of the user, and save the modification record of the configuration information in the modification record table of the embedded database 503;

更新所述磁盘中的配置文件。Update the configuration file in the disk.

可选地,将所述配置文件保存到磁盘的指定路径下之后,所述内嵌系统502还用于:Optionally, after saving the configuration file to a specified path on the disk, the embedded system 502 is further used to:

调用集中式配置文件系统的通用接口,通过所述通用接口将所述配置文件发送至所述集中式配置文件系统。A generic interface of the centralized configuration file system is invoked, and the configuration file is sent to the centralized configuration file system through the generic interface.

可选地,所述内嵌系统以软件包文件格式的形式嵌入在所述应用系统中。Optionally, the embedded system is embedded in the application system in the form of a software package file format.

可选地,所述软件包文件格式为jar文件。Optionally, the software package file format is a jar file.

可选地,所述内嵌系统采用如下方法启动:Optionally, the embedded system is started by the following method:

以java中的jar命令启动内嵌系统。Start the embedded system with the jar command in java.

可选地,所述内嵌系统采用如下方法构建得到:Optionally, the embedded system is constructed and obtained by adopting the following method:

构建启动加载类、数据库连接类和界面管理类;Build startup loading classes, database connection classes and interface management classes;

采用打包工具将所述启动加载类、所述数据库连接类和所述界面管理类打包成jar文件。A packaging tool is used to package the startup loading class, the database connection class and the interface management class into a jar file.

可选地,所述启动加载类用于启动内嵌系统;Optionally, the startup loading class is used to start the embedded system;

所述数据库连接类用于读取嵌入式数据库中的数据;The database connection class is used to read data in the embedded database;

所述界面管理类用于将读取的数据显示在界面,以供用户查看、配置或者修改配置信息;The interface management class is used to display the read data on the interface for the user to view, configure or modify the configuration information;

可选地,所述启动加载类为ServerBootStrap.class,所述数据库连接类为DbManager.class,和/或,所述界面管理类为UiManger.class。Optionally, the startup loading class is ServerBootStrap.class, the database connection class is DbManager.class, and/or the interface management class is UiManger.class.

可选地,所述配置信息包括所述应用系统中各个环境的环境配置信息和所述应用系统的系统配置信息。Optionally, the configuration information includes environment configuration information of each environment in the application system and system configuration information of the application system.

可选地,所述各个环境包括开发环境、测试环境和生产环境中的至少一种;所述系统配置信息的属性包括公共属性和私有属性。Optionally, each environment includes at least one of a development environment, a test environment, and a production environment; the attributes of the system configuration information include public attributes and private attributes.

可选地,所述目标格式包括xml格式或者properties格式;和/或,所述嵌入式数据库503包括SQLite数据库。Optionally, the target format includes an xml format or a properties format; and/or, the embedded database 503 includes an SQLite database.

根据上面所述的各种实施例,可以看出本发明实施例采用通过内嵌系统:接收用户提交的配置信息,并将配置信息保存到嵌入式数据库中,根据配置信息生成目标格式的配置文件,并将配置文件保存到磁盘的指定路径下的技术手段,解决了现有技术中部署结构过于庞大、依赖网络或者维护成本高的技术问题。本发明实施例通过内嵌系统对配置进行定义、修改、生效,标准化地生成配置文件,能够减轻在不同的环境、不同系统中重复配置的工作量,减轻手工修改配置文件引起系统错误的风险;而且应用系统完全不依赖网络就可以读取配置文件,摆脱了集中式配置系统的依赖,也显著地降低了维护成本。因此,本发明实施例减少人工配置操作,提高配置效率,降低配置风险。According to the various embodiments described above, it can be seen that the embodiment of the present invention adopts an embedded system: receiving the configuration information submitted by the user, saving the configuration information in the embedded database, and generating a configuration file in the target format according to the configuration information , and the technical means of saving the configuration file to the specified path of the disk solves the technical problems of too large deployment structure, network dependence or high maintenance cost in the prior art. The embodiment of the present invention defines, modifies, and takes effect of the configuration through the embedded system, and generates the configuration file in a standardized manner, which can reduce the workload of repeated configuration in different environments and different systems, and reduce the risk of system errors caused by manual modification of the configuration file; Moreover, the application system can read the configuration file without relying on the network at all, getting rid of the dependence of the centralized configuration system, and also significantly reducing the maintenance cost. Therefore, the embodiments of the present invention reduce manual configuration operations, improve configuration efficiency, and reduce configuration risks.

需要说明的是,在本发明所述生成配置文件的系统的具体实施内容,在上面所述生成配置文件的方法中已经详细说明了,故在此重复内容不再说明。It should be noted that the specific implementation content of the system for generating a configuration file of the present invention has been described in detail in the above-mentioned method for generating a configuration file, so the repeated content will not be described here.

图6示出了可以应用本发明实施例的生成配置文件的方法或生成配置文件的系统的示例性系统架构600。FIG. 6 shows an exemplary system architecture 600 of a method for generating a configuration file or a system for generating a configuration file to which embodiments of the present invention may be applied.

如图6所示,系统架构600可以包括终端设备601、602、603,网络604和服务器605。网络604用以在终端设备601、602、603和服务器605之间提供通信链路的介质。网络604可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 6 , the system architecture 600 may include terminal devices 601 , 602 , and 603 , a network 604 and a server 605 . The network 604 is a medium used to provide a communication link between the terminal devices 601 , 602 , 603 and the server 605 . Network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备601、602、603通过网络604与服务器605交互,以接收或发送消息等。终端设备601、602、603上可以放置有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等(仅为示例)。The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages and the like. Various communication client applications may be placed on the terminal devices 601 , 602 and 603 , such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

终端设备601、602、603可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

服务器605可以是提供各种服务的服务器,例如对用户利用终端设备601、602、603所浏览的购物类网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的物品信息查询请求等数据进行分析等处理,并将处理结果(例如目标推送信息、物品信息——仅为示例)反馈给终端设备。The server 605 may be a server that provides various services, such as a background management server that supports shopping websites browsed by the terminal devices 601 , 602 , and 603 (just an example). The background management server can analyze and process the received item information query request and other data, and feed back the processing results (such as target push information, item information—just an example) to the terminal device.

需要说明的是,本发明实施例所提供的生成配置文件的方法一般由服务器605执行,相应地,所述生成配置文件的系统一般设置在服务器605中。本发明实施例所提供的生成配置文件的方法也可以由终端设备601、602、603执行,相应地,所述生成配置文件的系统可以设置在终端设备601、602、603中。It should be noted that the method for generating a configuration file provided by the embodiment of the present invention is generally executed by the server 605 , and accordingly, the system for generating a configuration file is generally set in the server 605 . The method for generating a configuration file provided by the embodiment of the present invention may also be executed by the terminal devices 601 , 602 , and 603 , and correspondingly, the system for generating a configuration file may be set in the terminal devices 601 , 602 , and 603 .

应该理解,图6中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 6 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.

下面参考图7,其示出了适于用来实现本发明实施例的终端设备的计算机系统700的结构示意图。图7示出的终端设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring next to FIG. 7 , it shows a schematic structural diagram of a computer system 700 suitable for implementing a terminal device according to an embodiment of the present invention. The terminal device shown in FIG. 7 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.

如图7所示,计算机系统700包括中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有系统700操作所需的各种程序和数据。CPU 701、ROM 702以及RAM703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7, a computer system 700 includes a central processing unit (CPU) 701 which can be loaded into a random access memory (RAM) 703 according to a program stored in a read only memory (ROM) 702 or a program from a storage section 708 Instead, various appropriate actions and processes are performed. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701 , the ROM 702 , and the RAM 703 are connected to each other through a bus 704 . An input/output (I/O) interface 705 is also connected to bus 704 .

以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要放置在驱动器710上,以便于从其上读出的计算机程序根据需要被放置入存储部分708。The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc. ; and a communication section 709 including a network interface card such as a LAN card, a modem, and the like. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is placed on the drive 710 as needed so that a computer program read therefrom can be placed into the storage section 708 as needed.

特别地,根据本发明公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明公开的实施例包括一种计算机程序,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和放置,和/或从可拆卸介质711被放置。在该计算机程序被中央处理单元(CPU)701执行时,执行本发明的系统中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as computer software programs in accordance with the disclosed embodiments of the present invention. For example, embodiments disclosed herein include a computer program comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and placed from the network through the communication portion 709, and/or placed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the system of the present invention are executed.

需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer programs according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

作为另一方面,本发明还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,该设备实现如下方法:启动内嵌系统;其中,所述内嵌系统为用于生成配置文件和管理配置信息的系统,所述内嵌系统嵌入在应用系统中,且所述内嵌系统与所述应用系统相互独立;通过所述内嵌系统执行以下步骤:接收用户提交的配置信息,并将所述配置信息保存到嵌入式数据库中;根据所述配置信息生成目标格式的配置文件,并将所述配置文件保存到磁盘的指定路径下。As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or may exist alone without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the device implements the following method: starting an embedded system; wherein, the embedded system is used to generate a configuration A system for file and management configuration information, the embedded system is embedded in an application system, and the embedded system and the application system are independent of each other; the following steps are performed by the embedded system: receiving the configuration information submitted by the user, and save the configuration information into an embedded database; generate a configuration file in a target format according to the configuration information, and save the configuration file to a specified path on the disk.

根据本发明实施例的技术方案,因为采用通过内嵌系统:接收用户提交的配置信息,并将配置信息保存到嵌入式数据库中,根据配置信息生成目标格式的配置文件,并将配置文件保存到磁盘的指定路径下的技术手段,所以克服了现有技术中部署结构过于庞大、依赖网络或者维护成本高的技术问题。本发明实施例通过内嵌系统对配置进行定义、修改、生效,标准化地生成配置文件,能够减轻在不同的环境、不同系统中重复配置的工作量,减轻手工修改配置文件引起系统错误的风险;而且应用系统完全不依赖网络就可以读取配置文件,摆脱了集中式配置系统的依赖,也显著地降低了维护成本。因此,本发明实施例减少人工配置操作,提高配置效率,降低配置风险。According to the technical solution of the embodiment of the present invention, because the embedded system is adopted: the configuration information submitted by the user is received, and the configuration information is saved in the embedded database, the configuration file in the target format is generated according to the configuration information, and the configuration file is saved in the It is a technical means under the specified path of the disk, so it overcomes the technical problems of too large deployment structure, dependence on the network or high maintenance cost in the prior art. The embodiment of the present invention defines, modifies, and takes effect of the configuration through the embedded system, and generates the configuration file in a standardized manner, which can reduce the workload of repeated configuration in different environments and different systems, and reduce the risk of system errors caused by manual modification of the configuration file; Moreover, the application system can read the configuration file without relying on the network at all, getting rid of the dependence of the centralized configuration system, and also significantly reducing the maintenance cost. Therefore, the embodiments of the present invention reduce manual configuration operations, improve configuration efficiency, and reduce configuration risks.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (15)

1. A method of generating a configuration file, comprising:
starting the embedded system; the embedded system is used for generating configuration files and managing configuration information, is embedded in an application system, and is independent from the application system;
performing, by the embedded system, the steps of:
receiving configuration information submitted by a user, and storing the configuration information into an embedded database;
and generating a configuration file in a target format according to the configuration information, and storing the configuration file to a specified path of a disk.
2. The method of claim 1, wherein after saving the configuration file to a specified path of the disk, further performing, by the embedded system, the steps of:
reading the configuration information in the embedded database to display the configuration information on a user interface;
modifying the configuration information according to a modification instruction of a user, and storing a modification record of the configuration information into a modification record table of the embedded database;
and updating the configuration file in the disk.
3. The method of claim 1, wherein after saving the configuration file to a specified path of the disk, further performing, by the embedded system, the steps of:
and calling a general interface of the centralized configuration file system, and sending the configuration file to the centralized configuration file system through the general interface.
4. The method of any of claims 1-3, wherein the embedded system is embedded in the application system in a software package file format.
5. The method of claim 4, wherein the package file format is jar file.
6. The method of claim 5, wherein initiating an embedded system comprises:
and starting the embedded system by using a jar command in java.
7. The method of claim 5, prior to initiating the embedded system, further comprising:
building a start loading class, a database connection class and an interface management class;
and packaging the boot loading class, the database connection class and the interface management class into jar files by adopting a packaging tool so as to construct an embedded system.
8. The method of claim 7, wherein the boot load class is used to boot an embedded system;
the database connection class is used for reading data in the embedded database;
the interface management class is used for displaying the read data on an interface so that a user can view, configure or modify the configuration information.
9. The method of claim 8, wherein the bootload class is ServerBootStrap. class, the database connection class is DbManager. class, and/or the interface management class is UiManger. class.
10. The method of claim 1, wherein the configuration information comprises environment configuration information of each environment in the application system and system configuration information of the application system.
11. The method of claim 10, wherein the respective environments comprise at least one of a development environment, a test environment, and a production environment; the attributes of the system configuration information include public attributes and private attributes.
12. The method of claim 1, wherein the embedded database comprises a SQLite database.
13. A system for generating configuration files is characterized by comprising an application system, an embedded system and an embedded database, wherein the embedded system is a system for generating configuration files and managing configuration information, the embedded system is embedded in the application system, and the embedded system and the application system are mutually independent;
the embedded system is to:
receiving configuration information submitted by a user, and storing the configuration information into the embedded database;
and generating a configuration file in a target format according to the configuration information, and storing the configuration file to a specified path of a disk.
14. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, implement the method of any of claims 1-12.
15. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-12.
CN202010885912.7A 2020-08-28 2020-08-28 Method and system for generating configuration file Pending CN112099841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010885912.7A CN112099841A (en) 2020-08-28 2020-08-28 Method and system for generating configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010885912.7A CN112099841A (en) 2020-08-28 2020-08-28 Method and system for generating configuration file

Publications (1)

Publication Number Publication Date
CN112099841A true CN112099841A (en) 2020-12-18

Family

ID=73758307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010885912.7A Pending CN112099841A (en) 2020-08-28 2020-08-28 Method and system for generating configuration file

Country Status (1)

Country Link
CN (1) CN112099841A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986888A (en) * 2021-12-28 2022-01-28 深圳市明源云科技有限公司 Data processing method, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136825A (en) * 2007-10-10 2008-03-05 中兴通讯股份有限公司 Asynchronous configuration information management method and system for client terminal/server structure
CN103186378A (en) * 2011-12-31 2013-07-03 鼎捷软件股份有限公司 Configuration method and configuration system
US20150193515A1 (en) * 2014-01-08 2015-07-09 Oracle International Corporation System and method for cluster-wide replication of embedded component configuration
CN111309390A (en) * 2020-01-19 2020-06-19 维沃移动通信有限公司 Method for acquiring configuration information and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136825A (en) * 2007-10-10 2008-03-05 中兴通讯股份有限公司 Asynchronous configuration information management method and system for client terminal/server structure
CN103186378A (en) * 2011-12-31 2013-07-03 鼎捷软件股份有限公司 Configuration method and configuration system
US20150193515A1 (en) * 2014-01-08 2015-07-09 Oracle International Corporation System and method for cluster-wide replication of embedded component configuration
CN111309390A (en) * 2020-01-19 2020-06-19 维沃移动通信有限公司 Method for acquiring configuration information and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
KKMM: "[转]Netty初探", pages 1 - 2, Retrieved from the Internet <URL:https://www.cnblogs.com/lihaozy/archive/2013/03/05/2944672.html> *
刘家佳 等编著: "《移动智能终端安全》", 30 November 2019, 西安电子科技大学出版社, pages: 35 - 36 *
林秋实: "基于Phosphor cPDM 系统的产品配置管理", 《中国优秀硕士学位论文全文数据库》, no. 2005, pages 138 - 555 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986888A (en) * 2021-12-28 2022-01-28 深圳市明源云科技有限公司 Data processing method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN109245908B (en) Method and device for switching master cluster and slave cluster
CN112612467B (en) A method and device for processing a micro front-end architecture based on Qiankun
CN110727468A (en) Method and apparatus for managing algorithm models
CN111831461A (en) A method and apparatus for processing business processes
CN112948138A (en) Method and device for processing message
CN110795328A (en) Interface testing method and device
CN112052152A (en) A method and device for simulating testing
CN110083457A (en) A kind of data capture method, device and data analysing method, device
CN114756227A (en) A method and device for processing resource release
CN110795135A (en) A method and apparatus for realizing annotated configuration
CN112099841A (en) Method and system for generating configuration file
CN112241332B (en) Interface compensation method and device
CN110019059B (en) Timing synchronization method and device
CN117194068A (en) Cross-process data transmission method, system, equipment and storage medium
CN112068853A (en) Cross-project synchronous updating method and device
WO2024045646A1 (en) Method, apparatus and system for managing cluster access permission
WO2024001240A1 (en) Task integration method and apparatus for multiple technology stacks
CN110908867B (en) Task completion judging method and device, storage medium and electronic equipment
CN115167769A (en) Method, device and system for writing data
CN114595047A (en) Method and device for processing batch tasks
CN115129313A (en) Data processing method, device and equipment for integrated project
CN112882741A (en) Application management system and method
CN112463616A (en) Chaos testing method and device for Kubernetes container platform
CN114500485B (en) Data processing method and device
CN112311833A (en) Data updating method and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201218

RJ01 Rejection of invention patent application after publication