[go: up one dir, main page]

CN107977344A - Date storage method, acquisition methods and server - Google Patents

Date storage method, acquisition methods and server Download PDF

Info

Publication number
CN107977344A
CN107977344A CN201711072186.1A CN201711072186A CN107977344A CN 107977344 A CN107977344 A CN 107977344A CN 201711072186 A CN201711072186 A CN 201711072186A CN 107977344 A CN107977344 A CN 107977344A
Authority
CN
China
Prior art keywords
parameters
server
processor
programming language
parameter
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
CN201711072186.1A
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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201711072186.1A priority Critical patent/CN107977344A/en
Publication of CN107977344A publication Critical patent/CN107977344A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The present embodiments relate to field of data access technology, discloses a kind of date storage method, acquisition methods and server.Date storage method in the present invention, default programming language is supported applied to server and the server, the described method includes:At least two systematic parameters of selected operation system are obtained as combination parameter;The combination parameter is packaged into the default programming language form;By the combination parameter by the default programming language format conversion into JSON forms;The combination parameter of the JSON forms of the operation system is stored to database.Data capture method and server are additionally provided in the present invention.Technical scheme can make it that access of the server to systematic parameter is more flexible, and management is more convenient, while reduces redundant data.

Description

数据存储方法、获取方法及服务器Data storage method, acquisition method and server

技术领域technical field

本发明实施例涉及数据存取技术领域,特别涉及数据存储方法、获取方法及服务器。The embodiments of the present invention relate to the technical field of data access, and in particular, to a data storage method, an acquisition method, and a server.

背景技术Background technique

随着互联网技术的不断发展,终端设备可以通过服务器访问各种网站、获取各种资源; 服务平台的功能对终端设备的使用体现有着很大的影响。服务器可以访问数据库以存取数据; 其中,数据库中存储的数据的种类多种多样,例如有:服务器的各种系统参数、共享资料、 个人记录等等。With the continuous development of Internet technology, terminal equipment can access various websites and obtain various resources through the server; the function of the service platform has a great impact on the use of terminal equipment. The server can access the database to access data; wherein, the data stored in the database is of various types, for example: various system parameters of the server, shared information, personal records, and so on.

目前的服务器通常基于JAVA平台运行,此类服务器在存储系统参数时,对应于每个业 务,会在数据库中单独建一张配置表,且配表中包括多条数据记录,分别对应于多个系统数 据。如下表1所示Current servers usually run on the JAVA platform. When storing system parameters, this type of server will create a separate configuration table in the database corresponding to each business, and the configuration table includes multiple data records, corresponding to multiple system data. As shown in Table 1 below

表1:Table 1:

idid descriptiondescription keykey valuevalue 245245 公司信息company information companycompany 网宿科技Wangsu Technology 246246 版权信息Copyright Information copyrightcopyright Copyright2015-2020 Copyright2015-2020

在表1中,key列对应系统参数的名称,value列对应系统参数的实际值,id列对应系统 参数的身份识别码,description列对应系统参数的描述。每个系统参数对应于一条数据记录, 而每条数据记录都包括一个key和一个value;实际业务场景中,通过key-value方式获取系 统参数,其中真正有效的是value对应的值,key在实际业务场景并无实际意义,只是作为存 取的中间数据。In Table 1, the key column corresponds to the name of the system parameter, the value column corresponds to the actual value of the system parameter, the id column corresponds to the identification code of the system parameter, and the description column corresponds to the description of the system parameter. Each system parameter corresponds to a data record, and each data record includes a key and a value; in actual business scenarios, the system parameters are obtained through the key-value method, and the real effective value is the value corresponding to the value, and the key is in the actual The business scenario has no practical significance, and is only used as intermediate data for access.

发明人发现现有技术中至少存在如下问题:在实际业务场景中,往往多个相关系统参数 同时使用,如表1的两个系统参数(公司信息和版权信息)往往同时使用,来标注服务器的 版权信息;而利用上述key-value的方式,通过一个key只能获取一个value,要获取多个系 统参数必须通过多个key分多次获取;并且,每增加一个系统参数,就必须多配置一个key, 就会多出一个冗余数据。The inventors have found that at least the following problems exist in the prior art: in actual business scenarios, multiple related system parameters are often used at the same time, such as the two system parameters (company information and copyright information) in Table 1 are often used at the same time to mark the server Copyright information; and using the above key-value method, only one value can be obtained through one key, and multiple system parameters must be obtained through multiple keys to obtain multiple times; and each time a system parameter is added, an additional one must be configured key, there will be one more redundant data.

发明内容Contents of the invention

本发明实施方式的目的在于提供一种数据存储方法、获取方法及服务器,使得服务器对 系统参数的存取更加灵活,管理更加方便,同时减少冗余数据。The purpose of the embodiments of the present invention is to provide a data storage method, an acquisition method and a server, so that the server can more flexibly access system parameters, make management more convenient, and reduce redundant data at the same time.

为解决上述技术问题,本发明的实施方式提供了一种数据存储方法,应用于服务器且所 述服务器支持预设编程语言,所述方法包括:获取选定的业务系统的至少两个系统参数作为 组合参数;将所述组合参数封装成所述预设编程语言格式;将所述组合参数由所述预设编程 语言格式转换成JSON格式;将所述业务系统的JSON格式的所述组合参数存储至数据库。In order to solve the above technical problems, the embodiment of the present invention provides a data storage method, which is applied to a server and the server supports a preset programming language, and the method includes: acquiring at least two system parameters of the selected business system as Combined parameters; packaging the combined parameters into the preset programming language format; converting the combined parameters from the preset programming language format into JSON format; storing the combined parameters in the JSON format of the business system to the database.

本发明的实施方式还提供了一种数据获取方法,应用于服务器且所述服务器支持预设编 程语言,所述方法包括:当检测到业务系统的组合参数的获取命令时,从数据库获取所述业 务系统的JSON格式的所述组合参数;其中,所述组合参数包括至少两个系统参数;将获取 的所述组合参数由JSON格式转换成所述预设编程语言格式;从所述预设编程语言格式的所 述组合参数中提取各所述系统参数。The embodiment of the present invention also provides a data acquisition method, which is applied to a server and the server supports a preset programming language. The method includes: when an acquisition command of the combined parameters of the business system is detected, acquire the data from the database. The combination parameter of the JSON format of the business system; wherein, the combination parameter includes at least two system parameters; the obtained combination parameter is converted from the JSON format into the preset programming language format; from the preset programming Each of the system parameters is extracted from the combined parameters in the language format.

本发明的实施方式还提供了一种服务器,所述服务器包括:至少一个处理器;以及,与 所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器 执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行所述 的数据存储方法。The embodiment of the present invention also provides a server, the server includes: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores information that can be processed by the at least one processor. Instructions executed by a processor, the instructions are executed by the at least one processor, so that the at least one processor can execute the data storage method.

本发明的实施方式还提供了一种服务器,所述服务器包括:至少一个处理器;以及,与 所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器 执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行所述 的数据获取方法。The embodiment of the present invention also provides a server, the server includes: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores information that can be processed by the at least one processor. Instructions executed by a processor, the instructions are executed by the at least one processor, so that the at least one processor can execute the data acquisition method.

本发明实施方式相对于现有技术而言,选定业务系统的至少两个系统参数作为组合参数, 将组合参数由所述预设编程语言格式转换成JSON格式并存储至数据库中,并在需要获取时 从数据库获取JSON格式的所述组合参数;即将选定的至少两个系统参数作为一个整体进行 存取,使得服务器对系统参数的存取更加灵活,管理更加方便,同时减少冗余数据。Compared with the prior art, the embodiment of the present invention selects at least two system parameters of the business system as combined parameters, converts the combined parameters from the preset programming language format into JSON format and stores them in the database, and when needed The combined parameters in JSON format are obtained from the database during acquisition; the selected at least two system parameters are accessed as a whole, making the server more flexible in accessing the system parameters, more convenient in management, and reducing redundant data at the same time.

另外,所述预设编程语言为JAVA,所述将所述业务系统的JSON格式的所述组合参数存 储至数据库,具体包括:创建一JAVA对象;所述JAVA对象的属性至少包括关键字与实际值; 获取表征所述组合参数的识别标志;将所述识别标志赋值给所述关键字,并将JSON格式的 所述组合参数赋值给所述实际值;将赋值后的所述JAVA对象存储至所述数据库。本实施例 提供了存储JSON格式的所述组合参数的一种具体方式。In addition, the preset programming language is JAVA, and the storing of the combined parameters in the JSON format of the business system to the database specifically includes: creating a JAVA object; the attributes of the JAVA object include at least keywords and actual value; obtain the identification mark that characterizes the combination parameter; assign the identification mark to the keyword, and assign the combination parameter in JSON format to the actual value; store the JAVA object after the assignment in the database. This embodiment provides a specific way of storing the combined parameters in JSON format.

另外,在所述将所述组合参数封装成所述预设编程语言格式之前,所述方法还包括:提 供所述组合参数的配置界面,以通过所述配置界面配置所述组合参数。本实施例提供了所述 组合参数的配置方法。In addition, before the packaging of the combination parameters into the preset programming language format, the method further includes: providing a configuration interface for the combination parameters, so as to configure the combination parameters through the configuration interface. This embodiment provides a method for configuring the combination parameters.

另外,选定的所述至少两个系统参数均为恒定参数。由于恒定参数不会涉及到修改操作, 因此选择多个恒定参数形成组合参数来共同存取,可以避免当组合参数中的某一系统参数需 要修改而造成存取上的不便。In addition, the at least two selected system parameters are constant parameters. Since constant parameters do not involve modification operations, multiple constant parameters are selected to form combined parameters for common access, which can avoid inconvenience in access when a certain system parameter in the combined parameters needs to be modified.

另外,所述从数据库获取所述业务系统的JSON格式的所述组合参数,具体包括:获取 表征所述组合参数的识别标志;从所述数据库获取所述识别标志对应的JSON格式的所述组 合参数。本实施例提供了JSON格式的所述组合参数的具体存储方式。本实施例提供了获取 JSON格式的所述组合参数的一种具体方式。In addition, the acquiring the combination parameter of the business system in JSON format from the database specifically includes: acquiring the identification mark characterizing the combination parameter; acquiring the combination parameter in JSON format corresponding to the identification mark from the database parameter. This embodiment provides a specific storage manner of the combined parameters in JSON format. This embodiment provides a specific way to obtain the combined parameters in JSON format.

附图说明Description of drawings

一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不 构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别 申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute a limitation to the embodiments. Elements with the same reference numerals in the drawings represent similar elements. Unless otherwise stated, the drawings in the drawings are not limited to scale.

图1是根据本发明的第一实施方式的数据存储方法的流程图;Fig. 1 is the flowchart of the data storage method according to the first embodiment of the present invention;

图2是根据本发明的第一实施方式的步骤104的具体流程图;FIG. 2 is a specific flowchart of step 104 according to the first embodiment of the present invention;

图3是根据本发明的第二实施方式的流程图;Fig. 3 is a flowchart according to a second embodiment of the present invention;

图4是本发明的第二实施方式的组合参数的配置界面的一个例子的示意图;Fig. 4 is the schematic diagram of an example of the configuration interface of the combination parameter of the second embodiment of the present invention;

图5是根据本发明的第三实施方式的数据存储方法的流程图;Fig. 5 is a flowchart of a data storage method according to a third embodiment of the present invention;

图6是根据本发明的第四实施方式的服务器的方框图。Fig. 6 is a block diagram of a server according to a fourth embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实 施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中, 为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于 以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the various implementation modes of the present invention will be described in detail below in conjunction with the accompanying drawings. However, those of ordinary skill in the art can understand that, in each implementation manner of the present invention, many technical details are provided for readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following implementation modes, the technical solutions claimed in this application can also be realized.

本发明的第一实施方式涉及一种数据存储方法,应用于服务器且服务器支持预设编程语 言,如图1所示为本实施方式的方法的流程图,包括以下步骤:The first embodiment of the present invention relates to a data storage method, which is applied to a server and the server supports a preset programming language. As shown in Figure 1, it is a flow chart of the method of this embodiment, including the following steps:

步骤101:获取选定的业务系统的至少两个系统参数作为组合参数;Step 101: Obtain at least two system parameters of the selected business system as combined parameters;

步骤102:将组合参数封装成预设编程语言格式;Step 102: Encapsulate the combined parameters into a preset programming language format;

步骤103:将组合参数由预设编程语言格式转换成JSON格式;Step 103: Convert the combined parameters from the preset programming language format into JSON format;

步骤104:将业务系统的JSON格式的组合参数存储至数据库。Step 104: Store the combined parameters of the business system in JSON format to the database.

其中,JSON(JavaScript Object Notation,JS对象标记),是一种轻量级的数据交换格式, 其采用完全独立于编程语言的文本格式来存储和表示数据。Among them, JSON (JavaScript Object Notation, JS Object Notation), is a lightweight data exchange format, which uses a text format completely independent of programming language to store and represent data.

本发明实施方式相对于现有技术而言,选定业务系统的至少两个系统参数作为组合参数, 将组合参数由预设编程语言格式转换成JSON格式并存储至数据库中,并在需要获取时从数 据库获取JSON格式的所述组合参数;即将选定的至少两个系统参数作为一个整体进行存取, 使得服务器对系统参数的存取更加灵活,管理更加方便,同时减少冗余数据。Compared with the prior art, the embodiment of the present invention selects at least two system parameters of the business system as combined parameters, converts the combined parameters from the preset programming language format into JSON format and stores them in the database, and obtains them when needed Obtaining the combined parameters in JSON format from the database; accessing at least two selected system parameters as a whole, making the server more flexible in accessing the system parameters, more convenient in management, and reducing redundant data at the same time.

下面对本实施方式的数据存储方法的实现细节进行具体的说明,以下内容仅为方便理解 提供的实现细节,并非实施本方案的必须。The implementation details of the data storage method of this embodiment are described in detail below. The following content is only the implementation details provided for the convenience of understanding, and is not necessary for implementing this solution.

本实施例中,预设编程语言为JAVA,则预设编程语言格式为JAVA对象;以下均以JAVA 为例进行说明,然本实施方式对预设编程语言的种类不作任何限制。In this embodiment, the default programming language is JAVA, and the default programming language format is JAVA object; the following uses JAVA as an example for illustration, but this embodiment does not impose any limitation on the type of the default programming language.

在步骤101中,获取选定业务系统的至少两个系统参数作为组合参数。In step 101, at least two system parameters of the selected service system are obtained as combined parameters.

具体的说,可以根据实际业务系统,选择至少两个系统参数作为组合参数。每个业务系 统通常包括多个系统参数,可以预选选定至少两个系统参数,来作为组合参数共同存取。组 合参数的选定可基于仅与系统参数相关业务的需求。一般来说,在一个业务系统中,仅涉及 系统参数的业务较为固定,例如初始配置、版权信息等,且系统参数在初始被赋值之后被更 新的概率较少,故可以预先根据实际业务需求选定相关的系统参数构成一个组合,用于执行 该项业务。如此一来,当执行此类任务时可直接查询获取相应的组合参数即可满足执行需求, 不仅提升了参数查询速率,还能提升业务处理效率。Specifically, at least two system parameters may be selected as combined parameters according to the actual service system. Each business system usually includes multiple system parameters, and at least two system parameters can be pre-selected for common access as combined parameters. The selection of combined parameters can be based only on the business requirements related to system parameters. Generally speaking, in a business system, the business that only involves system parameters is relatively fixed, such as initial configuration, copyright information, etc., and the probability of system parameters being updated after the initial assignment is low, so it can be selected in advance according to actual business needs. Determine relevant system parameters to form a combination for executing the business. In this way, when performing such tasks, you can directly query and obtain the corresponding combination parameters to meet the execution requirements, which not only improves the parameter query rate, but also improves business processing efficiency.

较佳的,会选定变更频率很低、耦合度较高的多个系统参数作为组合参数;其中,每个 系统参数包括参数名称和参数值,这里的变更频率很低是指参数值的变更频率很低,甚至不 会变更;这里的耦合度较高是指多个系统参数共同存取的概率较高。较佳的,选定的系统参 数均为恒定参数(即参数值不会变更)。Preferably, a plurality of system parameters with low change frequency and high coupling degree will be selected as the combined parameters; wherein, each system parameter includes a parameter name and a parameter value, and the low change frequency here refers to the change of the parameter value The frequency is very low and will not even change; the high degree of coupling here means that the probability of multiple system parameters being accessed together is high. Preferably, the selected system parameters are all constant parameters (that is, the parameter values will not change).

在步骤102中,将组合参数封装成JAVA对象。具体的说,创建一个JAVA对象,其包含多个属性,具体的属性名则对应组合参数中的各系统参数的参数名称,对应的属性值则为各 系统参数的参数值。需要说明的是,当预设编程语言为其他编程语言时,可以根据其他编程 语言的既定方式进行格式处理。In step 102, the combined parameters are encapsulated into a JAVA object. Specifically, a JAVA object is created, which includes multiple attributes, and the specific attribute names correspond to the parameter names of each system parameter in the combined parameters, and the corresponding attribute values are the parameter values of each system parameter. It should be noted that, when the preset programming language is another programming language, the format processing can be performed according to the established method of the other programming language.

在步骤103中:将所述JAVA对象转换成JSON格式。具体的说,可以采用JAVA转JSON的相关函数进行格式转换。具体而言,将JAVA对象中的属性名和属性值,转换成JSON格 式后,实际上是转换成一个字符串,也就是说,将组合参数名称及相应的参数值按照JSON 格式转换成一个字符串。如此一来,将原先的多条参数名称和参数值记录组合转换成一个字符串,可使得记录数据变得轻量化。In step 103: converting the JAVA object into JSON format. Specifically, the related functions of JAVA to JSON can be used for format conversion. Specifically, after the attribute name and attribute value in the JAVA object are converted into JSON format, they are actually converted into a string, that is, the combined parameter name and corresponding parameter value are converted into a string in JSON format . In this way, converting the original combination of multiple parameter names and parameter value records into a string can make the recorded data lighter.

在步骤104中:将业务系统的JSON格式的组合参数存储至数据库。即,将JSON格式的组合参数作为一个整体存储在数据库中。具体的说,如图2所示,步骤104可以包括如下子步骤:In step 104: storing the combined parameters of the business system in JSON format to the database. That is, the combined parameters in JSON format are stored in the database as a whole. Specifically, as shown in Figure 2, step 104 may include the following sub-steps:

子步骤1041:创建一JAVA对象;所述JAVA对象的属性至少包括关键字(key)与实际值(value)。Sub-step 1041: create a JAVA object; the attributes of the JAVA object include at least a key and an actual value.

子步骤1042:获取表征组合参数的识别标志。具体的说,表征组合参数的识别标志一般 是由开发人员预先设定并存储在服务器,然不限于此,识别标志也可以由服务器随机生成。Sub-step 1042: Obtain the identification mark representing the combination parameter. Specifically, the identification mark representing the combination parameter is generally preset by the developer and stored in the server, but it is not limited thereto, and the identification mark can also be randomly generated by the server.

子步骤1043:将识别标志赋值给关键字,并将JSON格式的组合参数赋值给实际值。即, 将表征组合参数的识别标志作为本JAVA对象中关键字属性的属性值,将JSON格式的组合 参数(实际上为一个字符串)作为实际值属性的属性值。Sub-step 1043: Assign the identification flag to the keyword, and assign the combination parameter in JSON format to the actual value. That is, the identification mark representing the combined parameter is used as the attribute value of the keyword attribute in this JAVA object, and the combined parameter in JSON format (actually a character string) is used as the attribute value of the actual value attribute.

子步骤1044:将赋值后的JAVA对象存储至数据库。其中,本实施例中所使用的数据库 为key-value数据库,相应的,JAVA对象的存储方式为key-value方式,表征组合参数的识别 标志(key的值)与JSON格式的组合参数(value的值)作为一条数据存储在数据库中,基 于此,可建立识别标志(key的值)与JSON格式的组合参数(value的值)的对应关系,从而使得通过查找key值,即可获得对应的value值。Sub-step 1044: Store the assigned JAVA object in the database. Wherein, the database used in the present embodiment is a key-value database, and correspondingly, the storage mode of JAVA object is the key-value mode, and the identification sign (the value of key) of characterizing combination parameter and the combination parameter (value of value) of JSON format value) is stored in the database as a piece of data. Based on this, the corresponding relationship between the identification mark (key value) and the combination parameter (value value) in JSON format can be established, so that the corresponding value can be obtained by looking up the key value value.

进一步的,JAVA对象的属性还可以包括身份识别码(id)与描述(description),即,在 该条数据记录中还可以包括身份识别码(id)与描述(description)。Further, the attributes of the JAVA object may also include an identification code (id) and a description (description), that is, the data record may also include an identification code (id) and a description (description).

由此可见,通过本实施例所提供的方法可基于业务实际需求选取相应的系统参数构成组 合参数,并创建相应的JAVA对象,以JSON格式存储在key-value数据库中,不仅节省了数 据存储空间,更加简便了对数据库的操作,从而提升计算机处理效率,更进一步的,在执行 该项业务时,只需通过key值查找数据库获取相应的value值,由于JSON格式的字符串内容 对应的是一个JAVA对象,那么可通过将value值转换成JAVA对象,则可从中获取业务处理 所需的全部系统参数,不仅操作减少了传统方式中的对数据库的读取次数,而且通过一个key 就可以获取业务处理所需的全部系统参数,进而提升了业务处理的速率。It can be seen that through the method provided in this embodiment, corresponding system parameters can be selected based on actual business needs to form a combined parameter, and corresponding JAVA objects can be created and stored in the key-value database in JSON format, which not only saves data storage space , which simplifies the operation of the database, thereby improving the processing efficiency of the computer. Furthermore, when executing this business, you only need to search the database through the key value to obtain the corresponding value value. Since the string content in JSON format corresponds to a JAVA object, then by converting the value into a JAVA object, you can obtain all the system parameters required for business processing, which not only reduces the number of times to read the database in the traditional way, but also obtains business through a key All system parameters required for processing are processed, thereby increasing the speed of business processing.

以下以具体业务系统的应用场景来进行示例性说明。The following uses an application scenario of a specific business system as an example for illustration.

示例1Example 1

游戏管理系统(以下简称gms),在显示游戏配置的业务中,涉及三个系统参数:能量上 限、回填时间和url黑名单,值得注意的是该三项参数作为系统参数,在系统或者游戏初始化 时,就已经对该三个系统参数的值进行赋值并保存,一般而言,在后续的使用过程中,很少 涉及对该三个系统参数的修改。The game management system (hereinafter referred to as gms), in the business of displaying game configuration, involves three system parameters: energy upper limit, backfill time and url blacklist. , the values of the three system parameters have been assigned and saved. Generally speaking, in the subsequent use process, the modification of the three system parameters is rarely involved.

所述显示游戏配置的业务即玩家或者管理员需对游戏配置进行了解时,提交查询请求, 系统将根据所述请求对该些系统参数进行显示。本例子中,选定游戏配置业务中所需的所有 系统参数为组合参数。The business of displaying game configurations means that when players or administrators need to know about game configurations, they submit query requests, and the system will display these system parameters according to the requests. In this example, all system parameters required in the selected game configuration business are combined parameters.

采用传统处理方式中,系统参数的JAVA对象1如下所示:In the traditional processing method, the JAVA object 1 of the system parameter is as follows:

每个系统参数对应于一个JAVA对象,参数名称赋值给key,参数值赋值给value。Each system parameter corresponds to a JAVA object, the parameter name is assigned to the key, and the parameter value is assigned to the value.

每个系统参数在数据库中单独作为一个数据记录存储。即,在数据库中建一张配置表, 需要三个自定义key将三个系统参数以key-value形式存入数据,如表2所示,其中,表2中 的第一行为JAVA对象的四个属性,第二行、第三行、第四行分别为一条数据记录,表示一 个系统参数。需要说明的是,本申请中的表中的数据均是示例性说明,并不以此为限。Each system parameter is stored separately as a data record in the database. That is, to build a configuration table in the database, three custom keys are required to store the three system parameters into the data in the form of key-value, as shown in Table 2, where the first line in Table 2 is the four attributes, the second, third, and fourth lines are each a data record, representing a system parameter. It should be noted that the data in the tables in this application are all illustrative descriptions and are not limited thereto.

表2Table 2

idid descriptiondescription keykey valuevalue 260260 能量上限energy cap maxEnergymaxEnergy 100100 261261 回填时间backfill time recoverTimerecoverTime 3030 262262 url黑名单url blacklist urlBlackListurlBlackList http://h.7k7k.com/ http://h.7k7k.com/

其中,能量上限和回填时间是数字类型,url黑名单是字符串类型。由于能量上限、回填 时间和url黑名单类型不同,读写数据库时需要类型转换的操作。存入数据库前,需将能量上 限和回填时间转换成字符串类型;读取数据库后,需将能量上限和回填时间转换成数字类型。Among them, the energy upper limit and backfill time are of numeric type, and the url blacklist is of string type. Due to the different types of energy upper limit, backfill time, and url blacklist, type conversion operations are required when reading and writing the database. Before storing in the database, the energy upper limit and backfill time need to be converted into a string type; after reading the database, the energy upper limit and backfill time need to be converted into a number type.

在该传统处理方式中,执行显示游戏配置的业务时,需从数据库中分别读取出该三条记 录,如此一来,在业务执行的过程中需获知能量上限、回填时间和url黑名单三个value值对 应的key值,才能从数据库中读取出相应的value值,并进行转换和显示。In this traditional processing method, when the business of displaying game configuration is executed, the three records need to be read from the database respectively. In this way, the energy upper limit, backfill time and url blacklist need to be known during the business execution process. The key value corresponding to the value value can read the corresponding value value from the database, and convert and display it.

采用本实施例的技术方案中,将组合参数封装成JAVA对象后,其JAVA对象2如下所示:In adopting the technical scheme of the present embodiment, after the combined parameter is encapsulated into a JAVA object, its JAVA object 2 is as follows:

将组合参数由JAVA对象转换成JSON格式,并将游戏管理系统的JSON格式的组合参数 存储至数据库;即采用JSON格式将游戏管理系统的三个系统参数合并成一条数据记录,只 需一个自定义key,如表3所示。Convert the combination parameters from JAVA objects into JSON format, and store the combination parameters of the game management system in JSON format to the database; that is, use the JSON format to combine the three system parameters of the game management system into one data record, and only need one custom key, as shown in Table 3.

表3table 3

其中,表3中value对应的值{"maxEnergy":100,"recoverTime":30,"urlBlackList": "http://h.7k7k.com"},即为JSON格式的组合参数。Among them, the value corresponding to value {"maxEnergy":100,"recoverTime":30,"urlBlackList": "http://h.7k7k.com"} in Table 3 is the combination parameter in JSON format.

在本实施例的技术方案中,根据显示游戏配置的业务的需求,先选取涉及到的系统参数 构成参数组合,将该参数组合封装成JAVA对象,并将JAVA对象转换成JSON格式,并以一 条记录的方式存入数据库中,如此一来,在执行显示游戏配置的业务时,只需根据该条记录 相应的key值就可获取到全部所需的系统参数。In the technical solution of this embodiment, according to the business requirements for displaying game configurations, the system parameters involved are first selected to form a parameter combination, the parameter combination is encapsulated into a JAVA object, and the JAVA object is converted into JSON format, and a The record is stored in the database, so that when performing the business of displaying the game configuration, all the required system parameters can be obtained only according to the corresponding key value of the record.

由上可知,采用本实施例的技术方案的对比可知,采用本实施例的技术方案有效减少key 个数,减少了数据冗余;同时不需要类型转换,读写操作灵活。As can be seen from the above, the comparison of the technical solution adopted in this embodiment shows that the technical solution adopted in this embodiment effectively reduces the number of keys and data redundancy; at the same time, no type conversion is required, and the read and write operations are flexible.

如图3所示为本发明的第二实施方式的流程图,其中,步骤201至步骤204与第一实施 例中的步骤101至步骤104分别对应相似,新增了步骤200,具体为:As shown in Figure 3, it is a flow chart of the second embodiment of the present invention, wherein, step 201 to step 204 are correspondingly similar to steps 101 to 104 in the first embodiment, and a new step 200 is newly added, specifically:

步骤200:提供组合参数的配置界面,以通过配置界面配置组合参数。Step 200: Provide a configuration interface for combination parameters, so as to configure the combination parameters through the configuration interface.

具体的,配置界面中包括组合参数中的各系统参数,每个系统参数包括参数名称以及带 输入的参数值;设计人员可以在该配置界面中输入参数值,从而实现对系统参数的配置。其 中,该配置界面可以在系统参数初始化设置的时候提供,也可以在需要修改参数值时提供。 如图4所示为对应于第一实施例中的示例1的配置界面;其中,图4中的界面设置方式仅为 示例性说明,并不以此为限。Specifically, the configuration interface includes each system parameter in the combined parameters, and each system parameter includes a parameter name and a parameter value with input; designers can input parameter values in the configuration interface to realize the configuration of system parameters. Among them, the configuration interface can be provided when the system parameters are initialized and set, and can also be provided when the parameter values need to be modified. As shown in Figure 4, it corresponds to the configuration interface of Example 1 in the first embodiment; wherein, the interface setting method in Figure 4 is only an exemplary description, and is not limited thereto.

上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些 步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对 算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的 核心设计都在该专利的保护范围内。The step division of the above various methods is only for the sake of clarity of description. During implementation, it can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. ; Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.

本发明第三实施方式涉及一种数据获取方法,应用于服务器且服务器支持预设编程语言。 本实施例中,预设编程语言为JAVA,则预设编程语言格式为JAVA格式;以下均以JAVA为 例进行说明,然本实施方式对预设编程语言的种类不作任何限制。The third embodiment of the present invention relates to a data acquisition method, which is applied to a server and the server supports a preset programming language. In this embodiment, the default programming language is JAVA, and the default programming language format is JAVA format; the following are all described using JAVA as an example, but this embodiment does not make any restrictions on the type of preset programming language.

如图5所示为本实施方式的方法的流程图,包括以下步骤:As shown in Figure 5, it is a flowchart of the method of this embodiment, including the following steps:

步骤301:判断是否检测到业务系统的组合参数的获取命令;若是,则进入步骤302,若 否,则结束。Step 301: Judging whether the acquisition command of the combined parameters of the business system is detected; if yes, then enter step 302, if not, then end.

其中,业务系统的组合参数的获取命令,可以由服务器接收到的客户端的请求而生成, 也可以由服务器内部的业务系统被执行而生成。例如,当服务器接收到客户端发送的游戏管 理系统的游戏配置系统参数的获取请求时,服务器会生成游戏配置系统参数的获取请求;或 者,当服务器的视频管理系统需要对某一局点进行配置时,服务器会生成视频管理系统的局 点配置系统参数的获取请求。Wherein, the acquisition command of the combined parameters of the business system may be generated by the request received by the server from the client, or may be generated by the execution of the business system inside the server. For example, when the server receives the request for obtaining the game configuration system parameters of the game management system sent by the client, the server will generate a request for obtaining the game configuration system parameters; or, when the server’s video management system needs to configure a game point , the server will generate a request for obtaining the site configuration system parameters of the video management system.

步骤302:从数据库获取业务系统的JSON格式的组合参数;其中,组合参数包括至少两 个系统参数。Step 302: Obtain the combined parameters of the business system in JSON format from the database; wherein, the combined parameters include at least two system parameters.

具体的,步骤302包含如下子步骤:Specifically, step 302 includes the following sub-steps:

子步骤3021:获取表征组合参数的识别标志。Sub-step 3021: Obtain the identification mark representing the combination parameter.

服务器内部存储有组合参数(value)与识别标志(key)的对应关系,例如存储有组合参 数-识别标志对照表。当检测到业务系统的组合参数的获取命令时,查询该对应关系,以获得 该组合参数的识别标志。The server internally stores the corresponding relationship between the combination parameter (value) and the identification mark (key), for example, a combination parameter-identification mark comparison table is stored. When an acquisition command of the combination parameter of the business system is detected, the corresponding relationship is queried to obtain the identification mark of the combination parameter.

子步骤3022:从数据库获取识别标志对应的JSON格式的组合参数。Sub-step 3022: Obtain the combination parameter in JSON format corresponding to the identification mark from the database.

其中,数据库存储有识别标志与JSON格式的组合参数的对应关系。每一对识别标志与 JSON格式的组合参数包含于一条数据记录中,其中,组合参数包括至少两个系统参数。较佳 的,每条数据记录中,还包括该组合参数的身份识别码与描述,如第一实施例中的表3所示。Wherein, the database stores the corresponding relationship between the identification mark and the combined parameters in JSON format. Each pair of combination parameters of the identification mark and JSON format is included in a data record, wherein the combination parameters include at least two system parameters. Preferably, each data record also includes the identification code and description of the combined parameters, as shown in Table 3 in the first embodiment.

步骤303:将获取的组合参数由JSON格式转换成预设编程语言格式。Step 303: Convert the obtained combined parameters from the JSON format into a preset programming language format.

本实施例中,将组合参数由JSON格式转换成JAVA格式,可以采用JSON转JAVA的相关函数进行格式转换。JSON格式的组合参数被转换成JAVA格式后实际上是一个JAVA对象,且该JAVA对象包括组合参数中的各系统参数的参数名称及其对应的参数值;该JAVA对象的形式请参考第一实施例中的JAVA对象2(JAVA对象2中仅包含各系统参数的参数名称)。In this embodiment, to convert the combined parameters from the JSON format to the JAVA format, a JSON-to-JAVA related function may be used for format conversion. The combination parameter in JSON format is actually a JAVA object after being converted into JAVA format, and the JAVA object includes the parameter name and corresponding parameter value of each system parameter in the combination parameter; please refer to the first implementation for the form of the JAVA object JAVA object 2 in the example (JAVA object 2 only includes the parameter name of each system parameter).

步骤304:从预设编程语言格式的组合参数中提取各系统参数。Step 304: Extract each system parameter from the combined parameters in the preset programming language format.

本实施例中,从JAVA对象中提取各系统参数;即,从JAVA对象中提取各系统参数的参 数名称及对应的参数值,并利用参数值对业务系统进行配置。In this embodiment, each system parameter is extracted from the JAVA object; that is, the parameter name and the corresponding parameter value of each system parameter are extracted from the JAVA object, and the business system is configured using the parameter value.

在某些业务系统中,还需要将获取的各系统参数显示出来,即将各系统参数的参数名称 及对应的参数值分别显示出来。例如,服务器上显示的某个网页系统中,需要在网页页面上 显示出该服务器的“版本信息”(“版本信息”可以理解为一个组合参数的描述,属于该组合 参数对应的数据记录),那么,服务器获取该组合参数后,会在网页页面上显示出来。In some business systems, it is also necessary to display the obtained system parameters, that is, to display the parameter names and corresponding parameter values of each system parameter. For example, in a certain webpage system displayed on the server, the "version information" of the server needs to be displayed on the webpage ("version information" can be understood as a description of a combination parameter, which belongs to the data record corresponding to the combination parameter), Then, after the server obtains the combination parameter, it will be displayed on the web page.

其中,当组合参数的获取命令是服务器接收到客户端的请求而生成时,通常表示客户端 需要该组合参数,因此,服务器从该组合参数中提取各系统参数后,会将各系统参数发送至 客户端,以供客户端至少根据各系统参数配置业务系统。Among them, when the acquisition command of the combined parameters is generated by the server receiving the request from the client, it usually means that the client needs the combined parameters. Therefore, after the server extracts each system parameter from the combined parameter, it will send each system parameter to the client. terminal, for the client to at least configure the business system according to various system parameters.

不难发现,本实施方式为与第一或第二实施方式相对应的实施例,即,本实施例中的数 据库中的业务系统的JSON格式的组合参数,实际上是按照第一或第二实施例所述的数据存 储方法进行存储的,因此从数据库中取出该组合参数的过程为存储该组合参数的逆向过程。 第一或第二实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里 不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第一实施方式中。It is not difficult to find that this embodiment is an embodiment corresponding to the first or second embodiment, that is, the combined parameters in the JSON format of the business system in the database in this embodiment are actually in accordance with the first or second The data storage method described in the embodiment is stored, so the process of fetching the combination parameter from the database is the reverse process of storing the combination parameter. The relevant technical details mentioned in the first or second embodiment are still valid in this embodiment, and will not be repeated here to reduce repetition. Correspondingly, the relevant technical details mentioned in this implementation manner can also be applied in the first implementation manner.

本发明第四实施方式涉及一种服务器,如图6所示,该服务器1包括至少一个处理器10; 以及,与至少一个处理器通信连接的存储器11;其中,存储器存储有可被至少一个处理器执 行的指令,所述指令被至少一个处理器执行,以使至少一个处理器能够执行第一或第二实施 例所述的数据存储方法。图6中仅以一个服务器10和一个存储器11为例进行说明,然不作 限制。The fourth embodiment of the present invention relates to a server. As shown in FIG. 6, the server 1 includes at least one processor 10; and a memory 11 communicatively connected to at least one processor; Instructions executed by a processor, the instructions are executed by at least one processor, so that at least one processor can execute the data storage method described in the first or second embodiment. In Fig. 6, only one server 10 and one storage 11 are taken as an example for illustration, but it is not limited thereto.

进一步的,该服务器1还包括通信连接器12,用于与数据库2通信连接。其中,通信连 接器可以为有线连接器或无线连接器。Further, the server 1 also includes a communication connector 12 for communicating with the database 2 . Wherein, the communication connector can be a wired connector or a wireless connector.

本发明第五实施方式涉及一种服务器,请参考图6所示,该服务器包括至少一个处理器; 以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行 的指令,所述指令被至少一个处理器执行,以使至少一个处理器能够执行第三实施例所述的 数据获取方法。The fifth embodiment of the present invention relates to a server, as shown in FIG. 6 , the server includes at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores information executable by the at least one processor. instructions, the instructions are executed by at least one processor, so that at least one processor can execute the data acquisition method described in the third embodiment.

较佳的,本发明第五实施方式所述的服务器也能够执行第一或第二实施例所述的数据存 储方法。Preferably, the server described in the fifth embodiment of the present invention can also execute the data storage method described in the first or second embodiment.

其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥, 总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如外围设备、稳 压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此, 本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个 元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装 置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,进一步,天线还接收 数据并将数据传送给处理器。Wherein, the memory and the processor are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory together. The bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein. The bus interface provides an interface between the bus and the transceivers. A transceiver may be one element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium. The data processed by the processor is transmitted on the wireless medium through the antenna, and further, the antenna receives the data and transmits the data to the processor.

处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压 调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的 数据。The processor manages the bus and general processing, and can also provide various functions including timing, peripheral interfacing, voltage regulation, power management, and other control functions. Instead, memory can be used to store data that the processor uses when performing operations.

本发明第六实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被 处理器执行时实现上述方法实施例。The sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.

即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程 序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设 备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部 或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM, Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各 种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, the program is stored in a storage medium, and includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实 际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those of ordinary skill in the art can understand that the above-mentioned embodiments are specific examples for realizing the present invention, and in practical applications, various changes can be made to it in form and details without departing from the spirit and spirit of the present invention. scope.

Claims (12)

1.一种数据存储方法,其特征在于,应用于服务器且所述服务器支持预设编程语言,所述方法包括:1. A data storage method, characterized in that it is applied to a server and the server supports a preset programming language, the method comprising: 获取选定的业务系统的至少两个系统参数作为组合参数;Obtaining at least two system parameters of the selected business system as combined parameters; 将所述组合参数封装成所述预设编程语言格式;Encapsulating the combined parameters into the preset programming language format; 将所述组合参数由所述预设编程语言格式转换成JSON格式;Converting the combined parameters from the preset programming language format into JSON format; 将所述业务系统的JSON格式的所述组合参数存储至数据库。storing the combined parameters in the JSON format of the business system in a database. 2.根据权利要求1所述的数据存储方法,其特征在于,所述预设编程语言为JAVA;所述将所述业务系统的JSON格式的所述组合参数存储至数据库,具体包括:2. The data storage method according to claim 1, characterized in that, the preset programming language is JAVA; and storing the combined parameters of the JSON format of the business system into a database specifically includes: 创建一JAVA对象;所述JAVA对象的属性至少包括关键字与实际值;Create a JAVA object; the attributes of the JAVA object at least include keywords and actual values; 获取表征所述组合参数的识别标志;Obtaining an identification mark characterizing the combined parameters; 将所述识别标志赋值给所述关键字,并将JSON格式的所述组合参数赋值给所述实际值;Assigning the identification mark to the keyword, and assigning the combination parameter in JSON format to the actual value; 将赋值后的所述JAVA对象存储至所述数据库。storing the assigned JAVA object in the database. 3.根据权利要求1所述的数据存储方法,其特征在于,在所述将所述组合参数封装成所述预设编程语言格式之前,所述方法还包括:3. The data storage method according to claim 1, characterized in that, before the said combined parameters are encapsulated into said preset programming language format, said method further comprises: 提供所述组合参数的配置界面,以通过所述配置界面配置所述组合参数。A configuration interface for the combination parameter is provided, so that the combination parameter can be configured through the configuration interface. 4.根据权利要求1所述的数据存储方法,其特征在于,选定的所述至少两个系统参数均为恒定参数。4. The data storage method according to claim 1, wherein the at least two selected system parameters are constant parameters. 5.一种数据获取方法,其特征在于,应用于服务器且所述服务器支持预设编程语言,所述方法包括:5. A data acquisition method, characterized in that it is applied to a server and the server supports a preset programming language, the method comprising: 当检测到业务系统的组合参数的获取命令时,从数据库获取所述业务系统的JSON格式的所述组合参数;其中,所述组合参数包括至少两个系统参数;When an acquisition command of the combination parameter of the business system is detected, the combination parameter of the JSON format of the business system is obtained from the database; wherein the combination parameter includes at least two system parameters; 将获取的所述组合参数由JSON格式转换成所述预设编程语言格式;Converting the obtained combined parameters from JSON format to the preset programming language format; 从所述预设编程语言格式的所述组合参数中提取各所述系统参数。Each of the system parameters is extracted from the combined parameters in the preset programming language format. 6.根据权利要求5所述的数据获取方法,其特征在于,所述从数据库获取所述业务系统的JSON格式的所述组合参数,具体包括:6. The data acquisition method according to claim 5, wherein said acquisition of the combined parameters in the JSON format of the business system from the database specifically comprises: 获取表征所述组合参数的识别标志;Obtaining an identification mark characterizing the combined parameters; 从所述数据库获取所述识别标志对应的JSON格式的所述组合参数。Obtain the combination parameter in JSON format corresponding to the identification mark from the database. 7.根据权利要求5所述的数据获取方法,其特征在于,所述业务系统的参数获取命令为从客户端接收到的业务系统的组合参数的获取命令;7. The data acquisition method according to claim 5, wherein the parameter acquisition command of the business system is an acquisition command of the combined parameters of the business system received from the client; 在所述从所述预设编程语言格式的所述组合参数中提取各所述系统参数之后,还包括:After extracting each of the system parameters from the combined parameters in the preset programming language format, it further includes: 将各所述系统参数发送至所述客户端,以供所述客户端至少根据各所述系统参数配置所述业务系统。sending each of the system parameters to the client, so that the client configures the service system at least according to each of the system parameters. 8.根据权利要求6所述的数据获取方法,其特征在于,所述预设编程语言为JAVA。8. The data acquisition method according to claim 6, wherein the preset programming language is JAVA. 9.一种服务器,其特征在于,包括:9. A server, characterized in that, comprising: 至少一个处理器;以及,at least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至4中任一所述的数据存储方法。The memory is stored with instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform any one of claims 1 to 4 data storage method. 10.一种服务器,其特征在于,包括:10. A server, characterized in that, comprising: 至少一个处理器;以及,at least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求5至8中任一所述的数据获取方法。The memory is stored with instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform any one of claims 5 to 8. data acquisition method. 11.一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至4中任一项所述的数据存储方法。11. A computer-readable storage medium storing a computer program, wherein the computer program implements the data storage method according to any one of claims 1 to 4 when executed by a processor. 12.一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求5至8中任一项所述的数据存储方法。12. A computer-readable storage medium storing a computer program, wherein the computer program implements the data storage method according to any one of claims 5 to 8 when executed by a processor.
CN201711072186.1A 2017-11-03 2017-11-03 Date storage method, acquisition methods and server Pending CN107977344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711072186.1A CN107977344A (en) 2017-11-03 2017-11-03 Date storage method, acquisition methods and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711072186.1A CN107977344A (en) 2017-11-03 2017-11-03 Date storage method, acquisition methods and server

Publications (1)

Publication Number Publication Date
CN107977344A true CN107977344A (en) 2018-05-01

Family

ID=62013015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711072186.1A Pending CN107977344A (en) 2017-11-03 2017-11-03 Date storage method, acquisition methods and server

Country Status (1)

Country Link
CN (1) CN107977344A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347696A (en) * 2019-05-28 2019-10-18 平安科技(深圳)有限公司 Data transfer device, device, computer equipment and storage medium
CN110971974A (en) * 2019-12-06 2020-04-07 北京小米移动软件有限公司 Configuration parameter creation method, device, terminal and storage medium
CN112202591A (en) * 2020-08-28 2021-01-08 网宿科技股份有限公司 Configuration management system, method and storage medium
CN113836177A (en) * 2020-06-23 2021-12-24 易保网络技术(上海)有限公司 Cache management of consumable business data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488677A (en) * 2013-07-22 2014-01-01 广州唯品会信息科技有限公司 Project configuration method and device
US9053117B2 (en) * 2012-04-11 2015-06-09 4Clicks Solutions, LLC Storing application data with a unique ID
CN105930390A (en) * 2016-04-14 2016-09-07 北京三快在线科技有限公司 Relation-type database expansion method and relation-type database expansion system
US20170185662A1 (en) * 2015-12-29 2017-06-29 International Business Machines Corporation Means to process hierarchical json data for use in a flat structure data system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9053117B2 (en) * 2012-04-11 2015-06-09 4Clicks Solutions, LLC Storing application data with a unique ID
CN103488677A (en) * 2013-07-22 2014-01-01 广州唯品会信息科技有限公司 Project configuration method and device
US20170185662A1 (en) * 2015-12-29 2017-06-29 International Business Machines Corporation Means to process hierarchical json data for use in a flat structure data system
CN105930390A (en) * 2016-04-14 2016-09-07 北京三快在线科技有限公司 Relation-type database expansion method and relation-type database expansion system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347696A (en) * 2019-05-28 2019-10-18 平安科技(深圳)有限公司 Data transfer device, device, computer equipment and storage medium
CN110347696B (en) * 2019-05-28 2024-03-26 平安科技(深圳)有限公司 Data conversion method, device, computer equipment and storage medium
CN110971974A (en) * 2019-12-06 2020-04-07 北京小米移动软件有限公司 Configuration parameter creation method, device, terminal and storage medium
CN110971974B (en) * 2019-12-06 2022-02-15 北京小米移动软件有限公司 Configuration parameter creating method, device, terminal and storage medium
CN113836177A (en) * 2020-06-23 2021-12-24 易保网络技术(上海)有限公司 Cache management of consumable business data
CN113836177B (en) * 2020-06-23 2023-05-05 易保网络技术(上海)有限公司 Cache management of consumable business data
CN112202591A (en) * 2020-08-28 2021-01-08 网宿科技股份有限公司 Configuration management system, method and storage medium

Similar Documents

Publication Publication Date Title
US11669503B2 (en) Building and managing data-processing attributes for modeled data sources
JP6761112B2 (en) Methods and systems for server-side rendering of native content for presentation
EP3252592A1 (en) Method and device for storing and reading data
US20190340230A1 (en) System and method for generating websites from predefined templates
CN107977344A (en) Date storage method, acquisition methods and server
US20170099507A1 (en) Method and apparatus for transmitting data in intelligent terminal to television terminal
US20160259781A1 (en) Language translation for multi-function peripherals
CN117171108B (en) Virtual model mapping method and system
US8447857B2 (en) Transforming HTTP requests into web services trust messages for security processing
CN110992131B (en) Form processing method, form processing device and storage medium
US20140316828A1 (en) System and method for exchanging an electronic ticket
CN107463536A (en) A kind of method and system for realizing document in online preview server in Android device
JP6529559B2 (en) Learning apparatus, generating apparatus, learning method, generating method, learning program, generating program, and model
CN104598554A (en) Webpage page loading method and device
US10509826B2 (en) Server device, client device, information processing method, and recording medium
US10282403B2 (en) Server device, client device, information processing method, and recording medium
US12001458B2 (en) Multi-cloud object store access
US9002870B2 (en) System, method and computer program product for EDI-to-EDI translations
US10819784B1 (en) API mediation for online services
CN116992850A (en) Enterprise report text generation method and device and electronic equipment
US20160062957A1 (en) Remotely providing fonts for an electronic document
CN106446272A (en) Method and device for sending data
KR20120016334A (en) Web page precaching system and method for offline execution
JP2015095092A (en) Information processing system, information processing device, information processing method, and program
CN110855539A (en) Device discovery method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180501

RJ01 Rejection of invention patent application after publication