Multi-site public attribute dynamic configuration method

A public attribute and dynamic configuration technology, applied in the field of Web development, can solve problems such as error-prone operation process and cumbersome

Inactive Publication Date: 2016-06-01
G CLOUD TECH
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the public property configuration files under all sites are consistent and identical, the traditional method is to manually co

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-site public attribute dynamic configuration method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Such as figure 1 As shown, the present invention specifically comprises the following steps:

[0022] Step 1: Create a new site public property configuration file and set it as writable;

[0023] Step 2: Edit the content format of the configuration file, and save the public properties of the site in the form of key-value pairs;

[0024] Step 3: Write public methods for manipulating attribute configuration files and their contents;

[0025] Step 4: Call the public method of manipulating the content of the configuration file to edit the public properties under this site;

[0026] Step 5: Obtain the storage path of configuration files under other sites, and save them as array data;

[0027] Step 6: Obtain the edited configuration file under this site for temporary storage;

[0028] Step 7: Based on the configuration files temporarily saved in this site, overwrite the storage paths of configuration files in other sites in batches;

[0029] Step 8: Complete the unified ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of Web development, in particular to a multi-site public attribute dynamic configuration method. The method includes the following steps that firstly, site public attribute configuration files are built and set to be writeable; secondly, content formats of the configuration files are edited so that public attributes of sites can be saved in a key-value pair mode; thirdly, a public method for operating the configuration files and content of the configuration files is written; fourthly, the public method for operating the content of the configuration files is called for editing the public attributes of the configuration files at the current site; fifthly, storage paths of the configuration files at other sites are obtained and saved in multiple groups of data; sixthly, the edited configuration files at the current site are obtained and temporarily saved; seventhly, the configuration files temporarily saved at the current site serve as a basis for cyclic covering of the storage paths of the configuration files at other sites; eighthly, the configuration files at all the sites are maintained in a unified mode, and resources are released; ninthly, the public attributes of the configuration files are read through a public reading method of the configuration files during loading of the sites. The method is convenient in public attribute configuration and maintenance operation, high in efficiency and capable of being widely used in the WEB development process of the sites, and errors are not prone to occur.

Description

technical field [0001] The invention relates to the technical field of Web development, in particular to a dynamic configuration method of multi-site public attributes. Background technique [0002] In multi-site WEB development, the public properties and configurations of all sites under the same domain name are the same, and the public properties of each site must be read and loaded from the configuration file under the site. Since each site is distributed independently, the configuration files under each site are also independent from each other. When it is necessary to modify these common attributes and configurations, the traditional method is to find these configuration files in the root directory of each site and modify them one by one. Save to make the content of these configuration files consistent across sites. Since the public attribute configuration files under all sites are consistent and identical, the traditional method is to manually configure the public att...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
CPCG06F8/38
Inventor 丁继锋徐震宇季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products