CN107341025B - Application updating method and device - Google Patents

Application updating method and device Download PDF

Info

Publication number
CN107341025B
CN107341025B CN201610286979.2A CN201610286979A CN107341025B CN 107341025 B CN107341025 B CN 107341025B CN 201610286979 A CN201610286979 A CN 201610286979A CN 107341025 B CN107341025 B CN 107341025B
Authority
CN
China
Prior art keywords
configuration file
application
updated
configuration
template
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.)
Active
Application number
CN201610286979.2A
Other languages
Chinese (zh)
Other versions
CN107341025A (en
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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610286979.2A priority Critical patent/CN107341025B/en
Publication of CN107341025A publication Critical patent/CN107341025A/en
Application granted granted Critical
Publication of CN107341025B publication Critical patent/CN107341025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an application updating method and device. One embodiment of the method comprises: reading configuration items under the namespaces of the applications to be updated with the use permissions, wherein each configuration item is respectively arranged under each namespace, and the use permissions of each application to each namespace are preset; according to the reference relation information recorded in the template configuration file of the application to be updated, configuring the parameters to be configured in the template configuration file by using the configuration items to generate a configuration file, wherein the reference relation information is used for recording the identification of the configuration items referenced by the parameters to be configured in the template configuration file; and pushing the configuration file to an application server deploying the application to be updated so that the application server updates the application to be updated by using the configuration file. The embodiment realizes automatic updating of the application program.

Description

Application updating method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for updating an application.
Background
The application program usually needs to be supported by a configuration file, and the configuration file can provide a correct and reliable execution direction for the application program and ensure the stable operation of the application program.
However, in the prior art, before an application program is released online, a developer or a professional configurator needs to add relevant configuration information required by the application program to a corresponding program configuration file, so that the application program can be updated and valid under the action of the configuration file.
Disclosure of Invention
It is an object of the present application to propose an improved application update method and apparatus to solve the technical problems mentioned in the background section above.
In a first aspect, the present application provides an application update method, including: reading configuration items under the namespaces of the applications to be updated with the use permissions, wherein each configuration item is respectively arranged under each namespace, and the use permissions of each application to each namespace are preset; according to the reference relation information recorded in the template configuration file of the application to be updated, configuring the parameters to be configured in the template configuration file by using the configuration items to generate a configuration file, wherein the reference relation information is used for recording the identification of the configuration items referenced by the parameters to be configured in the template configuration file; and pushing the configuration file to an application server deploying the application to be updated so that the application server updates the application to be updated by using the configuration file.
In some embodiments, the performing, by using the configuration item, parameter configuration on a template configuration file that is stored in advance and is associated with the application to be updated, and generating the configuration file includes: determining that the configuration items referenced by the parameters to be configured in the template configuration file are updated by utilizing the reference relation information recorded in the template configuration file of the application to be updated; and configuring the parameters to be configured by using the updated configuration items to generate a configuration file.
In some embodiments, the configuration item is used to document information of sensitive parameters in an application.
In some embodiments, after the pushing the configuration file to an application server deploying the application to be updated to cause the application server to update the application to be updated with the configuration file, the method further includes: and receiving the updating result information generated by the application server executing the updating.
In a second aspect, the present application provides a further application updating method, including: receiving a configuration file sent by a configuration file server, wherein the configuration file is generated by the configuration file server reading a configuration item under a namespace with use permission of an application to be updated and then configuring parameters to be configured in a template configuration file by using the configuration item according to reference relation information recorded in the template configuration file of the application to be updated; updating the application to be updated by using the configuration file; sending update result information generated by executing the update to the configuration file server; the configuration items in the configuration file server are respectively arranged under each name space, the use permission of each application to each name space is preset, and the reference relation information is used for recording the identification of the configuration item referenced by the parameter to be configured in the template configuration file.
In some embodiments, the receiving the configuration file sent by the configuration file server includes: receiving the configuration file and storing the configuration file in a preset configuration file directory; and the updating the application to be updated by using the configuration file comprises the following steps: and monitoring the updating of the configuration files in the configuration file directory, and updating the application to be updated by using the updated configuration files when the configuration files are updated.
In a third aspect, the present application provides an application update apparatus, comprising: the device comprises a reading unit, a storage unit and a processing unit, wherein the reading unit is used for reading configuration items under namespaces of applications to be updated with use permissions, each configuration item is respectively arranged under each namespace, and the use permissions of each application to each namespace are preset; a generating unit, configured to configure, according to reference relationship information recorded in a template configuration file of the application to be updated, a parameter to be configured in the template configuration file by using the configuration item, and generate a configuration file, where the reference relationship information is used to record an identifier of a configuration item referenced by the parameter to be configured in the template configuration file; and the pushing unit is used for pushing the configuration file to an application server deploying the application to be updated so that the application server updates the application to be updated by using the configuration file.
In some embodiments, the determining subunit is configured to determine, by using the reference relationship information recorded in the template configuration file of the application to be updated, that the configuration item referenced by the parameter to be configured in the template configuration file has been updated; and the generating subunit is used for configuring the parameter to be configured by using the updated configuration item to generate a configuration file.
In some embodiments, the configuration item is used to document information of sensitive parameters in an application.
In some embodiments, the apparatus further comprises: a receiving unit, configured to receive update result information generated by the application server executing the update after the configuration file is pushed to an application server deploying the application to be updated so that the application server updates the application to be updated by using the configuration file.
In a fourth aspect, the present application provides a further application update apparatus, the apparatus comprising: a receiving unit, configured to receive a configuration file sent by a configuration file server, where the configuration file is generated by the configuration file server after reading a configuration item in a namespace in which an application to be updated has a use permission, and configuring a parameter to be configured in a template configuration file according to reference relationship information recorded in the template configuration file of the application to be updated by using the configuration item; the updating unit is used for updating the application to be updated by using the configuration file; a sending unit configured to send update result information generated by performing an update to the profile server; the configuration items in the configuration file server are respectively arranged under each name space, the use permission of each application to each name space is preset, and the reference relation information is used for recording the identification of the configuration item referenced by the parameter to be configured in the template configuration file.
In some embodiments, the receiving unit is further configured to: receiving the configuration file and storing the configuration file in a preset configuration file directory; and the update unit is further configured to: and monitoring the updating of the configuration files in the configuration file directory, and updating the application to be updated by using the updated configuration files when the configuration files are updated.
According to the application updating method and device, the configuration file is templated, the complete configuration file can be generated through the template configuration file and the configuration items under the corresponding setting naming space, and the configuration file can be distributed to each application server to enable the application server to update the corresponding application program by using the configuration file, so that the automatic updating of the application program is realized, and the labor maintenance cost is reduced.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of an application update method according to the present application;
FIG. 3 is a flow diagram of yet another embodiment of an application update method according to the present application;
FIG. 4 is a schematic block diagram of one embodiment of an application update apparatus according to the present application;
FIG. 5 is a schematic diagram of a structure of yet another embodiment of an application update apparatus according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing a user terminal or server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the application update method or application update apparatus of the present application may be applied.
As shown in fig. 1, system architecture 100 may include application servers 101, 102, 103, network 104, and profile server 105. Network 104 is the medium used to provide communication links between application servers 101, 102, 103 and profile server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The application servers 101, 102, 103 may be servers running various server applications that may provide services to various terminal devices (not shown) through the running server applications, which may be web browser applications, shopping-type applications, search-type applications, instant messenger service programs, mailbox service programs, social platform service programs.
The profile server 105 may be a server providing profiles, e.g. a server providing profile support for applications running on the application servers 101, 102, 103. The configuration file server may distribute the configuration file to the corresponding application server to enable the application server to validate or update the deployed application using the configuration file.
It should be noted that, the application update method provided by the embodiment corresponding to fig. 2 of the present application is generally executed by the profile server 105, and accordingly, the application update apparatus corresponding to fig. 4 is generally disposed in the profile server 105; the application updating method provided by the embodiment corresponding to fig. 3 is generally executed by the application server 101, and accordingly, the application updating apparatus corresponding to fig. 5 is generally disposed in the application server 101.
It should be understood that the number of application servers, networks, and profile servers in fig. 1 is merely illustrative. There may be any number of application servers, networks, and profile servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of an application update method according to the present application is shown. The application updating method comprises the following steps:
step 201, reading a configuration item under a namespace of which the application to be updated has a use right.
In this embodiment, an electronic device (for example, the configuration file server shown in fig. 1) on which the application update method operates may create and configure a namespace for classifying the set configuration items in advance, and the configuration items are respectively set under the corresponding namespaces. Each configuration item can record basic information such as types and values corresponding to the configuration items, and a user can check and update the information in the configuration items after connecting the electronic equipment through the terminal equipment. Wherein, the use authority of each application to each namespace is preset. The authority of each namespace can be set to public, shared, private and the like.
The electronic equipment can read the configuration items under the namespaces with the use permission of the application to be updated according to the application to be updated. The application to be updated may be specified by a user or determined by the electronic device through a preset method.
Step 202, according to the reference relation information recorded in the template configuration file of the application to be updated, configuring the parameters to be configured in the template configuration file by using the configuration items, and generating the configuration file.
In this embodiment, the electronic device may perform merging processing on the template configuration file of the application to be updated and the configuration item read based on step 201, so as to generate the configuration file. For example, a velocity template engine may be used to automatically perform a merging calculation on the information in the configuration items and the content of the configuration file template and generate a new configuration file. The template configuration file can be pre-stored in the electronic device, and the user can create a new template configuration file or modify an existing template configuration file based on actual needs. The template configuration file may not implement configuring actual values for some parameters, but record the identifiers of the configuration items referenced by the parameters to be configured by referencing the relationship information. In this way, the electronic device may determine the configuration items referenced by each parameter to be configured according to the reference relationship information recorded in the template configuration file, so that the configuration items read in step 201 may be used to configure values for the corresponding parameters to be configured according to the reference relationship.
Step 203, pushing the configuration file to an application server deploying the application to be updated, so that the application server updates the application to be updated by using the configuration file.
In this embodiment, the electronic device may send the configuration file generated in step 202 to an application server deploying the application to be updated in a wired connection manner or a wireless connection manner. Generally, the association relationship between the identifier of each application program and the server identifier of the application server deploying the application program can be recorded in the electronic device in advance, wherein the server identifier can be the address of the server. Therefore, after generating the configuration file of the application program, the electronic device may determine, according to the association relationship, each application server to which the application program is deployed, and thereby distribute the configuration file to the application servers.
It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
In some optional implementations of this embodiment, the step 202 may be specifically performed by the following steps: determining that the configuration items referenced by the parameters to be configured in the template configuration file are updated by utilizing the reference relation information recorded in the template configuration file of the application to be updated; and configuring the parameters to be configured by using the updated configuration items to generate a configuration file. In this implementation manner, after reading the configuration item based on step 201, the electronic device first checks whether the configuration item referenced by the parameter to be configured in the template configuration file is updated according to the reference relationship information recorded in the template configuration file that utilizes the application to be updated, and executes the subsequent operation to generate the configuration file when it is determined that the update has occurred. In the implementation manner, the electronic device can monitor the change of the configuration item, so that the application can be updated in time when the configuration item changes, that is, the blind reading of a new configuration file generated to update the application when the configuration item does not change is avoided, and the change of the configuration item can be found in time to ensure the timely update of the application.
In some optional implementation manners of this embodiment, the configuration item is used to record information of a sensitive parameter in an application, and in this implementation manner, the sensitive parameter may be isolated from a configuration file by the configuration item, so that security may be improved. The electronic equipment can also set the access authority of various users to the configuration items under various namespaces, so that specific sensitive parameters are only exposed to the users with corresponding authorities, and the security risk is further reduced.
In some optional implementations of this embodiment, after step 203, the method further includes: and receiving the updating result information generated by the application server executing the updating. In this implementation manner, the application server may also feed back the update result information, so that the electronic device receives the update result information, and may further process the update result information. In general, the update result information may generally include an identifier of the application server and information on whether the application server successfully performs the update, and may also include information on a reason why the update failed, and the like. Optionally, the electronic device may further send the update result information to the user terminal for displaying, so that the user knows the update progress, and the client may make a corresponding decision according to the update result information.
The method provided by the embodiment of the application makes the configuration file templated, can generate the complete configuration file through the template configuration file and the configuration items under the corresponding setting naming space, and the configuration file can be distributed to each application server to enable the application server to update the corresponding application program by using the configuration file, thereby realizing the automatic update of the application program and reducing the labor maintenance cost.
With further reference to FIG. 3, a flow 300 of yet another embodiment of an application update method is illustrated. The process 300 of the application update method includes the following steps:
step 301, receiving a configuration file sent by a configuration file server.
In this embodiment, the electronic device (for example, the application server shown in fig. 1) on which the application update method operates may receive the configuration file from the configuration file server through a wired connection manner or a wireless connection manner.
The configuration file can be generated by the configuration file server through the following steps: firstly, a configuration file server reads a configuration item under a namespace that an application to be updated has a use authority; and secondly, the electronic equipment reads the content of the template configuration file of the application to be updated, and configures the parameters to be configured in the template configuration file by using the read configuration items according to the reference relation information recorded in the template configuration file of the application to be updated to generate the configuration file. In the configuration file server, each configuration item is respectively arranged under each name space, and the use permission of each application to each name space is preset. And the reference relation information recorded in the template configuration file is used for recording the identification of the configuration item referenced by the parameter to be configured in the template configuration file.
Step 302, updating the application to be updated by using the configuration file.
In this embodiment, based on the configuration file read in step 301, the electronic device may update the application deployed on the electronic device using the corresponding configuration file. In this way, the electronic device can complete the update of the application without restarting the application, does not change the original running mode of the application, and is non-intrusive to the application.
Step 303, sending the update result information generated by executing the update to the configuration file server.
In this embodiment, based on the update of the application using the profile in step 302, the electronic device may record update result information of the executed update and return the recorded update result information to the profile server for further processing by the profile server. Generally, the profile server may transmit the update result information to the user terminal so that the user can know the update result information in time.
In some optional implementations of this embodiment, step 301 may include: when receiving the configuration file pushed by the configuration file server, the configuration file can be stored in a preset configuration file directory. Meanwhile, the applying to be updated in step 302 may include: and monitoring the updating of the configuration files in the configuration file directory, and updating the application to be updated by using the updated configuration files when the configuration files are updated. In this embodiment, the electronic device may monitor updates of the configuration file in the configuration file directory through a pre-installed plug-in SDK (Software Development Kit) and perform application updates using the updated configuration file, so that the operation is performed asynchronously with the configuration file pushed by the receiving configuration file server. Whether the monitoring configuration file is updated or not can be judged by detecting whether the timestamp of the configuration file is changed or not.
The method provided by the embodiment of the application makes the configuration file templated, can generate the complete configuration file through the template configuration file and the configuration items under the corresponding setting naming space, and the configuration file can be distributed to each application server to enable the application server to update the corresponding application program by using the configuration file, thereby realizing the automatic update of the application program and reducing the labor maintenance cost.
With further reference to fig. 4, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an application updating apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which can be specifically applied to various profile servers.
As shown in fig. 4, the application apparatus 400 according to this embodiment includes: reading unit 401, generating unit 402, and pushing unit 403. The reading unit 401 is configured to read configuration items in namespaces to which applications to be updated have usage rights, where each configuration item is set in each namespace, and the usage rights of each application to each namespace are preset; the generating unit 402 is configured to configure the parameter to be configured in the template configuration file by using the configuration item according to the reference relationship information recorded in the template configuration file of the application to be updated, and generate the configuration file, where the reference relationship information is used to record an identifier of the configuration item referenced by the parameter to be configured in the template configuration file; the pushing unit 403 is configured to push the configuration file to an application server that deploys the application to be updated, so that the application server updates the application to be updated by using the configuration file.
In this embodiment, for specific processing of the reading unit 401, the generating unit 402, and the pushing unit 403 of the application updating apparatus 400, reference may be made to step 201, step 202, and step 203 in the corresponding embodiment of fig. 2, which is not described herein again.
In some optional implementations of the present embodiment, the generating subunit 402 includes: a determining subunit (not shown) configured to determine, by using the reference relationship information recorded in the template configuration file of the application to be updated, that the configuration item referenced by the parameter to be configured in the template configuration file has been updated; and a generating subunit (not shown) configured to configure the parameters to be configured by using the updated configuration items, and generate a configuration file. The specific processing of this implementation may refer to a corresponding implementation in the corresponding embodiment of fig. 2, which is not described herein again.
In some optional implementations of the present embodiment, the configuration item is used to document information of sensitive parameters in the application. The specific processing of this implementation may refer to a corresponding implementation in the corresponding embodiment of fig. 2, which is not described herein again.
In some optional implementations of the present embodiment, the application updating apparatus 400 further includes: a receiving unit (not shown) configured to receive update result information generated by the application server performing the update after pushing the configuration file to the application server deploying the application to be updated so that the application server updates the application to be updated by using the configuration file. The specific processing of this implementation may refer to a corresponding implementation in the corresponding embodiment of fig. 2, which is not described herein again.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an application updating apparatus, which corresponds to the embodiment of the method shown in fig. 3, and which can be specifically applied to various application servers.
As shown in fig. 5, the application device 500 according to the present embodiment includes: receiving section 501, updating section 502, and transmitting section 503. The receiving unit 501 is configured to receive a configuration file sent by a configuration file server, where the configuration file is generated by the configuration file server after reading a configuration item in a namespace in which an application to be updated has a use right, and configuring a parameter to be configured in a template configuration file according to reference relationship information recorded in the template configuration file of the application to be updated by using the configuration item; the updating unit 502 is configured to update an application to be updated by using a configuration file; the sending unit 503 is configured to send update result information generated by performing the update to the profile server. The configuration items in the configuration file server are respectively arranged under each name space, the use permission of each application to each name space is preset, and the reference relation information is used for recording the identification of the configuration item referenced by the parameter to be configured in the template configuration file.
In this embodiment, the specific processing of the receiving unit 501, the updating unit 502, and the sending unit 503 of the application updating apparatus 500 may refer to step 301, step 302, and step 303 in the embodiment corresponding to fig. 3, which is not described herein again.
In some optional implementations of this embodiment, the receiving unit 501 is further configured to: receiving a configuration file and storing the configuration file in a preset configuration file directory; and the updating unit 502 is further configured to: and monitoring the updating of the configuration files in the configuration file directory, and updating the application to be updated by using the updated configuration files when the configuration files are updated. The specific processing of this implementation may refer to a corresponding implementation in the embodiment corresponding to fig. 3, which is not described herein again.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for implementing a user terminal or server is shown.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block 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 will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, an updating unit, and a transmitting unit. The names of these units do not form a limitation on the unit itself in some cases, for example, an updating unit may also be described as a "unit that updates the application to be updated using the configuration file".
As another aspect, the present application also provides a non-volatile computer storage medium, which may be the non-volatile computer storage medium included in the apparatus in the above-described embodiments; or it may be a non-volatile computer storage medium that exists separately and is not incorporated into the terminal. The non-transitory computer storage medium stores one or more programs that, when executed by a device, cause the device to: reading configuration items under the namespaces of the applications to be updated with the use permissions, wherein each configuration item is respectively arranged under each namespace, and the use permissions of each application to each namespace are preset; according to the reference relation information recorded in the template configuration file of the application to be updated, configuring the parameters to be configured in the template configuration file by using the configuration items to generate a configuration file, wherein the reference relation information is used for recording the identification of the configuration items referenced by the parameters to be configured in the template configuration file; and pushing the configuration file to an application server deploying the application to be updated so that the application server updates the application to be updated by using the configuration file. Alternatively, the non-volatile computer storage medium stores one or more programs that, when executed by a device, cause the device to: receiving a configuration file sent by a configuration file server, wherein the configuration file is generated by the configuration file server reading a configuration item under a namespace with use permission of an application to be updated and then configuring parameters to be configured in a template configuration file by using the configuration item according to reference relation information recorded in the template configuration file of the application to be updated; updating the application to be updated by using the configuration file; sending update result information generated by executing the update to the configuration file server; the configuration items in the configuration file server are respectively arranged under each name space, the use permission of each application to each name space is preset, and the reference relation information is used for recording the identification of the configuration item referenced by the parameter to be configured in the template configuration file.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (12)

1. An application update method, the method comprising:
reading configuration items under the namespaces of the applications to be updated with the use permissions, wherein each configuration item is respectively arranged under each namespace, and the use permissions of each application to each namespace are preset;
according to the reference relation information recorded in the template configuration file of the application to be updated, configuring the parameters to be configured in the template configuration file by using the configuration items to generate a configuration file, wherein the reference relation information is used for recording the identification of the configuration items referenced by the parameters to be configured in the template configuration file;
and pushing the configuration file to an application server deploying the application to be updated so that the application server updates the application to be updated by using the configuration file.
2. The method according to claim 1, wherein the using the configuration item to perform parameter configuration on a template configuration file stored in advance and associated with the application to be updated, and generating a configuration file comprises:
determining that the configuration items referenced by the parameters to be configured in the template configuration file are updated by utilizing the reference relation information recorded in the template configuration file of the application to be updated;
and configuring the parameters to be configured by using the updated configuration items to generate a configuration file.
3. The method of claim 1, wherein the configuration item is used to document information of sensitive parameters in an application.
4. The method of claim 1, wherein after the pushing the configuration file to an application server deploying the application to be updated to cause the application server to update the application to be updated with the configuration file, the method further comprises:
and receiving the updating result information generated by the application server executing the updating.
5. An application update method, the method comprising:
receiving a configuration file sent by a configuration file server, wherein the configuration file is generated by the configuration file server reading a configuration item under a namespace with use permission of an application to be updated and then configuring parameters to be configured in a template configuration file by using the configuration item according to reference relation information recorded in the template configuration file of the application to be updated;
updating the application to be updated by using the configuration file;
sending update result information generated by executing the update to the configuration file server;
the configuration items in the configuration file server are respectively arranged under each name space, the use permission of each application to each name space is preset, and the reference relation information is used for recording the identification of the configuration item referenced by the parameter to be configured in the template configuration file.
6. The method of claim 5, wherein receiving the configuration file sent by the configuration file server comprises:
receiving the configuration file and storing the configuration file in a preset configuration file directory; and
the updating the application to be updated by using the configuration file comprises the following steps:
and monitoring the updating of the configuration files in the configuration file directory, and updating the application to be updated by using the updated configuration files when the configuration files are updated.
7. An application update apparatus, the apparatus comprising:
the device comprises a reading unit, a storage unit and a processing unit, wherein the reading unit is used for reading configuration items under namespaces of applications to be updated with use permissions, each configuration item is respectively arranged under each namespace, and the use permissions of each application to each namespace are preset;
a generating unit, configured to configure, according to reference relationship information recorded in a template configuration file of the application to be updated, a parameter to be configured in the template configuration file by using the configuration item, and generate a configuration file, where the reference relationship information is used to record an identifier of a configuration item referenced by the parameter to be configured in the template configuration file;
and the pushing unit is used for pushing the configuration file to an application server deploying the application to be updated so that the application server updates the application to be updated by using the configuration file.
8. The apparatus of claim 7, wherein the generating unit comprises:
the determining subunit is configured to determine, by using the reference relationship information recorded in the template configuration file of the application to be updated, that the configuration item referenced by the parameter to be configured in the template configuration file has been updated;
and the generating subunit is used for configuring the parameter to be configured by using the updated configuration item to generate a configuration file.
9. The apparatus of claim 7, wherein the configuration item is used to document information of sensitive parameters in an application.
10. The apparatus of claim 7, further comprising:
a receiving unit, configured to receive update result information generated by the application server executing the update after the configuration file is pushed to an application server deploying the application to be updated so that the application server updates the application to be updated by using the configuration file.
11. An application update apparatus, the apparatus comprising:
a receiving unit, configured to receive a configuration file sent by a configuration file server, where the configuration file is generated by the configuration file server after reading a configuration item in a namespace in which an application to be updated has a use permission, and configuring a parameter to be configured in a template configuration file according to reference relationship information recorded in the template configuration file of the application to be updated by using the configuration item;
the updating unit is used for updating the application to be updated by using the configuration file;
a sending unit configured to send update result information generated by performing an update to the profile server;
the configuration items in the configuration file server are respectively arranged under each name space, the use permission of each application to each name space is preset, and the reference relation information is used for recording the identification of the configuration item referenced by the parameter to be configured in the template configuration file.
12. The apparatus of claim 11, wherein the receiving unit is further configured to: receiving the configuration file and storing the configuration file in a preset configuration file directory; and
the update unit is further to: and monitoring the updating of the configuration files in the configuration file directory, and updating the application to be updated by using the updated configuration files when the configuration files are updated.
CN201610286979.2A 2016-05-03 2016-05-03 Application updating method and device Active CN107341025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610286979.2A CN107341025B (en) 2016-05-03 2016-05-03 Application updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610286979.2A CN107341025B (en) 2016-05-03 2016-05-03 Application updating method and device

Publications (2)

Publication Number Publication Date
CN107341025A CN107341025A (en) 2017-11-10
CN107341025B true CN107341025B (en) 2021-09-03

Family

ID=60222955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610286979.2A Active CN107341025B (en) 2016-05-03 2016-05-03 Application updating method and device

Country Status (1)

Country Link
CN (1) CN107341025B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108037961B (en) * 2017-12-07 2021-01-19 北京锐安科技有限公司 Application program configuration method, device, server and storage medium
CN108898230B (en) * 2018-05-24 2022-08-16 超聚变数字技术有限公司 Equipment management method and management server
CN108881476A (en) * 2018-07-16 2018-11-23 众安信息技术服务有限公司 Block chain dispositions method and system
CN110795140A (en) * 2019-09-26 2020-02-14 连连银通电子支付有限公司 Configuration file generation method and device
CN111708582B (en) * 2020-05-21 2023-06-23 北京百度网讯科技有限公司 Online configuration method and device and electronic equipment
CN111831325B (en) * 2020-07-17 2023-08-22 中国工商银行股份有限公司 Method, device, system and medium for updating configuration file in application

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7933871B2 (en) * 2007-12-28 2011-04-26 Microsoft Corporation Discovering and updating templates
CN201886473U (en) * 2010-02-08 2011-06-29 阿里巴巴集团控股有限公司 Configuration file-updating system, configuration server and application servers
CN103645900A (en) * 2013-12-13 2014-03-19 上海浦东物流云计算有限公司 Method and device for releasing software
CN104199666A (en) * 2014-09-09 2014-12-10 北京京东尚科信息技术有限公司 Dynamic configuration method and device for application program
CN104298686A (en) * 2013-07-18 2015-01-21 深圳市腾讯计算机***有限公司 Method and device for modifying server configuration file
CN105224344A (en) * 2014-05-28 2016-01-06 济南政和科技有限公司 A kind of software upgrading file configuration method realized based on XML

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7933871B2 (en) * 2007-12-28 2011-04-26 Microsoft Corporation Discovering and updating templates
CN201886473U (en) * 2010-02-08 2011-06-29 阿里巴巴集团控股有限公司 Configuration file-updating system, configuration server and application servers
CN104298686A (en) * 2013-07-18 2015-01-21 深圳市腾讯计算机***有限公司 Method and device for modifying server configuration file
CN103645900A (en) * 2013-12-13 2014-03-19 上海浦东物流云计算有限公司 Method and device for releasing software
CN105224344A (en) * 2014-05-28 2016-01-06 济南政和科技有限公司 A kind of software upgrading file configuration method realized based on XML
CN104199666A (en) * 2014-09-09 2014-12-10 北京京东尚科信息技术有限公司 Dynamic configuration method and device for application program

Also Published As

Publication number Publication date
CN107341025A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN107341025B (en) Application updating method and device
US11716356B2 (en) Application gateway architecture with multi-level security policy and rule promulgations
JP6629697B2 (en) Method and apparatus for extracting a virtual machine image file
US20190230130A1 (en) System and method for updating downloaded applications using managed container
US9979751B2 (en) Application gateway architecture with multi-level security policy and rule promulgations
CN106843976B (en) Method and apparatus for generating image file
CN105739968B (en) Method and device for reviewing updated content based on distributed version control system Git
CN102710753B (en) A kind of dissemination method of internet, applications, Apparatus and system
CN102306256A (en) The file that obtains is carried out the prestige inspection
US20100058318A1 (en) Rolling upgrades in distributed applications
CN104219246A (en) Method and device for controlling display interface of client
CN110895603B (en) Multi-system account information integration method and device
US20150113423A1 (en) System and method to configure a field device
WO2018033094A1 (en) Rich communication suite release platform, method and system for version update, and mobile terminal
CN109617694B (en) Application program publishing method and device
CN112954040B (en) Method, system, device and storage medium for embedding application release server
KR101086620B1 (en) Smart office system and server for managing the sames and method for managing the sames
CN105553671B (en) A kind of management method of digital certificate, apparatus and system
CN112748962A (en) Application loading method and device, electronic equipment and computer readable medium
CN114860213A (en) Application package generation method, device, equipment and medium
CN114282210A (en) Sandbox automatic construction method and system, computer equipment and readable storage medium
CN114385570A (en) Data synchronization method and device, electronic equipment and readable medium
KR20150024454A (en) Advertising methods using template-type theme creation tool for mobile messenger app
US20220206763A1 (en) Information processing system, information processing apparatus information processing method, and program
CN112947951A (en) Software installation method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant