CN108268289A - Method for parameter configuration, the apparatus and system of web applications - Google Patents
Method for parameter configuration, the apparatus and system of web applications Download PDFInfo
- Publication number
- CN108268289A CN108268289A CN201611254000.XA CN201611254000A CN108268289A CN 108268289 A CN108268289 A CN 108268289A CN 201611254000 A CN201611254000 A CN 201611254000A CN 108268289 A CN108268289 A CN 108268289A
- Authority
- CN
- China
- Prior art keywords
- parameter
- configuration
- web applications
- bean
- web
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Abstract
The embodiment of the present application discloses a kind of method for parameter configuration, the apparatus and system of web applications, is related to parameter configuration technical field.The system comprises configuration management console and parameter configuration equipment, the configuration management console is used for:The first web applications to be configured are determined from database, determine the configurable parameter of the first web applications, and provide the configuration interface of the first web applications, configurable parameter is at least shown in the configuration interface, user is received on the configuration interface to the configuration modification information of configurable parameter input, the parameter configuration equipment that modification request is applied to the first web is sent, to carry out parameter configuration to the first web applications;The parameter configuration equipment is used for:Receive the modification request that the configuration management console is sent, the parameter applied according to the modification request modification the first web.It, can be with the simple operation of lifting system, reduction error rate using the embodiment of the present application.
Description
Technical field
The application belongs to the method for parameter configuration of parameter configuration technical field more particularly to a kind of web applications, device and is
System.
Background technology
In web applications, it is often necessary to function setting switch or modification parameter to system.At present, generally pass through collection
Push is configured to realize in the configuration center of Chinese style, while web does corresponding code process using Rigen according to parameter, needs by special
The program of door goes the parameter configuration in modification memory, is changed by way of trigger on the server during operation.It is this
Method lacks uniformity, will be difficult to safeguard when parameter configuration is too many, and simple operation is very poor, easily malfunctions.
Therefore, how to research and develop out a kind of new scheme is with the simple operation of lifting system, reduction error rate
Urgent technical problem to be solved in the field.
Invention content
The purpose of the embodiment of the present application is to provide a kind of method for parameter configuration, the apparatus and system of web applications, can be promoted
The simple operation of system reduces error rate.
In order to solve the above technical problems, what the embodiment of the present application was realized in:
According to the first aspect of the application, it is proposed that a kind of parameter configuring system of web applications is controlled including configuration management
Platform and parameter configuration equipment;
Wherein, the configuration management console is used for:The first web applications to be configured are determined from database, are determined
The configurable parameter of the first web applications, and the configuration interface of the first web applications is provided, in the configuration interface extremely
Configurable parameter is shown less, receives the configuration modification information that user inputs the configurable parameter on the configuration interface,
The parameter configuration equipment that modification request is applied to the first web is sent, to carry out parameter configuration to the first web applications;
The parameter configuration equipment is used for:The modification request that the configuration management console is sent is received, according to institute
State the parameter that the first web applications are changed in modification request.
According to the second aspect of the application, it is proposed that a kind of configuration management console, including:
Web application determining modules, for determining to be configured first from the database of the configuration management console
Web is applied;
Parameter information determining module, for determining the configurable parameter information of the first web applications;
Configuration interface provides module, for providing the first web configuration interface of application, in the configuration interface at least
Show configurable parameter;
Modification information receiving module matches the configurable parameter input on the configuration interface for receiving user
Put modification information;
Request sending module is changed, for sending the parameter configuration equipment that modification request is applied to the first web, with right
The first web applications carry out parameter configuration.
According to the third aspect of the application, it is proposed that a kind of parameter configuration equipment, including:
Request receiving module is changed, for receiving the modification request of configuration management console transmission;
Parameter adapting module, for the parameter applied according to the first web of the modification request modification.
According to the fourth aspect of the application, it is proposed that a kind of method for parameter configuration of web applications, including:
Configuration management console determines the first web applications to be configured from database;
It determines the configurable parameter of the first web applications, and the configuration interface of the first web applications is provided, it is described
Configurable parameter is at least shown in configuration interface;
User is received on the configuration interface to the configuration modification information of configurable parameter input;
The parameter configuration equipment that modification request is applied to the first web is sent, to join to the first web applications
Number configuration.
According to the 5th of the application the aspect, it is proposed that a kind of method for parameter configuration of web applications, including:
Parameter configuration equipment receives the modification request that configuration management console is sent;
The parameter applied according to the first web of the modification request modification.
By above technical solution provided by the embodiments of the present application as it can be seen that the embodiment of the present application when needing to change configuration, is led to
It crosses a configuration management console and far call is carried out to the parameter configuration equipment that web is applied, pass through bean titles and attribute-name
Title navigates to bean objects, performs memory modification, realizes the dynamic modification of parameter, effectively promotes the readability of configuration and can safeguard
Property, the simple operation of lifting system reduces error rate.
Above and other objects, features and advantages to allow the application can be clearer and more comprehensible, preferred embodiment cited below particularly,
And coordinate institute's accompanying drawings, it is described in detail below.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or it will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments described in application, for those of ordinary skill in the art, in the premise of not making the creative labor property
Under, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is shown to be shown according to a kind of scene of web of one exemplary embodiment of the application parameter configuring systems applied
It is intended to;
Fig. 2 shows a kind of structure diagrams of the configuration management console according to one exemplary embodiment of the application;
Fig. 3 shows a kind of structure diagram of parameter configuration equipment according to one exemplary embodiment of the application;
Fig. 4 shows the flow chart according to a kind of web of one exemplary embodiment of the application method for parameter configuration applied;
Fig. 5 shows the flow chart according to a kind of web of one exemplary embodiment of the application method for parameter configuration applied;
Fig. 6 is shown to be shown according to a kind of structure of web of one exemplary embodiment of the application parameter configuring systems applied
It is intended to;
Fig. 7 shows the interaction figure according to a kind of web of one exemplary embodiment of the application parameter configuring systems applied;
Fig. 8 is shown according to the statement of parameter configuration equipment in one exemplary embodiment of the application and registration process signal
Figure.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical solution in the embodiment of the present application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
Technical staff's all other embodiments obtained without creative efforts should all belong to the application protection
Range.
Specifically, Fig. 1 is shown according to a kind of web of one exemplary embodiment of the application parameter configuring systems applied
Schematic diagram of a scenario, referring to Fig. 1, the system includes configuration management console 100 and parameter configuration equipment 200.In the application
Embodiment in, parameter configuration equipment can be applied in web using upper, and it is outer to be arranged on web applications, with web application phases
The technical solution of communication namely the embodiment of the present application is realized between configuration management console and parameter configuration equipment, to web
Using real-time Dynamical parameter configuration is carried out, Fig. 7 is please referred to:
The configuration management console 100 is used for:The first web applications to be configured are determined from database, determine institute
The configurable parameter of the first web applications is stated, and the configuration interface of the first web applications is provided, in the configuration interface at least
It shows configurable parameter, receives user on the configuration interface to the configuration modification information of configurable parameter input, hair
The modification parameter configuration equipment that request is applied to the first web is sent, to carry out parameter configuration to the first web applications.
The parameter configuration equipment 200 is used for:The modification request that the configuration management console is sent is received, according to
The parameter of the first web applications is changed in the modification request.
The modification request includes the configurable parameter and parameter modified values of needs modification configuration, the configurable parameter packet
Include bean titles and Property Name.
Before the parameter configuration for changing the first web applications in the application, the parameter configuration equipment carries out parameter and matches first
It puts, specifically, referring to Fig. 8, acquisition needs to carry out dynamic configuration from the first web applications according to dynamic configuration information
Parameter, the dynamic configuration information are used to indicate the parameter for needing to carry out dynamic configuration, need to carry out dynamic configuration described
It marks java in parameter to explain, the java is explained as Switch.
In another embodiment herein, the parameter configuration equipment is additionally operable to be added in the@Switch
Configuration name.Configuration name herein is readable strong Chinese description.
In the another embodiment of the application, the parameter configuration equipment is additionally operable to parameter identification, specifically, please referring to
Fig. 8 initializes Spring containers, traverses java bean all in the Spring containers, is explained and known according to java
Do not go out java bean and attribute with@Switch, the java bean with@Switch and attribute that will identify that by
It is stored in allocation list according to predetermined format, the predetermined format includes bean titles, Property Name and java bean, such as
According to Map<BeanName+fieldName, beanObj>It is preserved.Parameter configuration and parameter identification are discovery and registration
Process starts to initialize configuration Filter, at this after completing all initialization in Spring containers during being somebody's turn to do
Bean and attribute with Switch labels of automatic identification and searching in the process, while save it in a Map in memory
In, for the addressing of configuration management.
During the actual implementation of the application, as shown in fig. 6, when parameter configuration equipment application in the first web in application,
Application programming interface API in being applied first by the first web adds corresponding filter F ilter in web.xml,
The variable for needing dynamic configuration is labeled in the process of application and development so that parameter is explained with java, and web is applied
Ip addresses be added in configuration management console.Due to carrying out unified definition configuration beforehand through the mode that java is explained,
The configurable parameter is labeled with java notes, and when subsequent modification parameter configuration may be such that the maintainability of system and ease for use are big
It is big to be promoted.
In this application, the configuration management console determines the first web to be configured using including from database:
The IP address information of the machine where the first web applications to be configured that user determines is received, according to the IP address information, from
The first web applications to be configured are oriented in the database of the console.
The configuration management console determines that the configurable parameter of the first web applications is controlled including the configuration management
Platform obtains the allocation list of the first web applications, identifies with the parameter explained in the parameter, the parameter that the band is explained
It is determined as configurable parameter.
The parameter that the parameter configuration equipment changes the first web applications according to the modification request includes the parameter
Equipment is configured, allocation list is searched according to the bean titles and Property Name, orient the configurable parameter of needs modification configuration
Bean titles and the corresponding bean objects of Property Name, by java reflection technologies according to parameter modified values modification
Parameter in bean objects.In the specific application scenarios of the application, such as in the applications of the web with function of search
Multiple variables are provided with, wherein representing cache-time there are one variable.Java notes are carried out to the variable beforehand through API,
This variable adds corresponding java and explains, then the variable can be automatically recognized as a controllable parameter configuration by web applications.
When user has found to need in the configuration management console real time modifying variable, for example it is 1 to give tacit consent to the variable after starting
Minute, it needs to be adjusted to 10 minutes at runtime.Then, user inputs modified values 10 minutes by configuration management console,
Configuration management console sends the parameter configuration equipment that modification request is applied to web, to carry out real time modifying and life to web applications
Effect.
Fig. 2 shows a kind of structure diagrams of the configuration management console according to one exemplary embodiment of the application, please join
Fig. 2 is read, configuration management console 100 includes:
Web applications determining module 101, for determining to be configured from the database of the configuration management console
One web is applied.In a kind of embodiment of the application, the web applications determining module includes:Address information receiving module,
For receiving the IP address information of the machine at the first web applications place to be configured that user determines;Web application locating modules,
For according to the IP address information, the first web applications to be configured to be oriented from the database of the console.
Parameter information determining module 102, for determining the configurable parameter information of the first web applications.In the application
A kind of embodiment in, the parameter information determining module includes:Allocation list acquisition module, for obtaining the first web
The allocation list of application;Parameter identification module, for identifying with the parameter explained in the parameter, the parameter that the band is explained
It is determined as configurable parameter.
Configuration interface provides module 103, for providing the first web configuration interface of application, in the configuration interface
At least show configurable parameter;
Modification information receiving module 104 inputs the configurable parameter on the configuration interface for receiving user
Configuration modification information;
Request sending module 105 is changed, for sending the parameter configuration equipment that modification request is applied to the first web,
To carry out parameter configuration to the first web applications.
In a kind of embodiment of the application, as shown in fig. 6, when parameter configuration equipment is set to web in application, configuration
List interfaces apply by web of management console read this apply bean titles corresponding to upper all configuration parameters and
Property Name orients the bean titles and Property Name for needing the parameter for changing configuration, and automatically according to the bean oriented
Title and Property Name generation configuration interface, so that user exports corresponding modified values by the configuration interface.Therefore, the application
Scheme in, user only needs to input modified values by the configuration interface, is subsequently changed corresponding parameter by web applications automatically and is matched
It puts, special program is write by console without user and goes modification parameter configuration.
Fig. 3 shows a kind of structure diagram of parameter configuration equipment according to one exemplary embodiment of the application, please join
Fig. 3 is read, the parameter configuration equipment 200 includes:
Request receiving module 201 is changed, for receiving the modification request of configuration management console transmission, the modification request
Configurable parameter and parameter modified values, the configurable parameter including needing modification configuration include the bean names of configurable parameter
Title and Property Name.
Parameter adapting module 202, for the parameter applied according to the first web of the modification request modification.The parameter is repaiied
Change module to include:Object-location for searching allocation list according to the bean titles and Property Name, is oriented needs and is repaiied
Change the bean titles of the configurable parameter of configuration and the corresponding bean objects of Property Name;Object modification module, for passing through
Java reflection technologies change the parameter in the bean objects according to the parameter modified values.
In a kind of embodiment of the application, when parameter configuration equipment is set to web in application, referring to Fig. 7, web
After the modification instruction sent by modify interfaces to configuration management console, according to beanName+
FieldName finds corresponding bean objects from allocation list, then realizes configuration with reflection technology real time modifying memory value
Dynamic is changed.In this way, realize the dynamic adjustment of parameter.
In a kind of embodiment of the application, parameter configuration equipment further includes:
Parameter labeling module is needed for being acquired from the first web applications according to dynamic configuration information into Mobile state
The parameter of configuration, the dynamic configuration information are used to indicate the parameter for needing to carry out dynamic configuration, are needed described into Mobile state
It marks java in the parameter of configuration to explain, the java is explained as Switch.In a kind of embodiment of the application, parameter
Labeling module can be realized by the API application programming interfaces that web is applied.
In a kind of embodiment of the application, the parameter labeling module is additionally operable to be added in the@Switch
Configuration name.Configuration name herein is readable strong Chinese description.
As shown in fig. 6, the API in web applications is the external interface of web applications, variable is labeled for engineer,
Dynamic configuration is automatically become after mark.During configuration statement, it is only necessary to need to become on the variable of dynamic configuration
In addition specific java explains@Switch.
In a kind of embodiment of the application, the parameter configuration equipment further includes:Parameter identification module, for pair
Spring containers are initialized, and traverse java bean all in the Spring containers, and band is identified according to java notes
There are the java bean and attribute of@Switch, the java bean with@Switch and attribute that will identify that are according to predetermined
Form is stored in allocation list, and the predetermined format includes bean titles, Property Name and java bean, such as according to Map
<BeanName+fieldName, beanObj>It is preserved.Allocation list automatically generates in web application start-up courses, uses
All configurations in maintenance application.
Parameter identification module is that configuration is found and the process of registration, should during completed in Spring containers it is all initial
Start to initialize configuration Filter after change, automatic identification and searching in this process carries Switch labels
Bean and attribute, while save it in in memory Map, for the addressing of configuration management.
As described above, the application is based on java notes and Spring containers, pass through traversal when web applications start
All bean finds bean with specific note and attribute to carry out configuration automatic identification, and be saved into Spring containers
In one Map;When needing modification configuration, far call is carried out to web applications by a configuration management console, it should to web
With modified values are sent, web is applied navigates to bean by bean titles and Property Name in Map, performs memory modification, realizes
The dynamic modification of parameter.
In the system for describing the application, after equipment, next, what refer to the attached drawing applied a kind of web of the application
Method for parameter configuration is introduced.The implementation of this method may refer to the implementation of above equipment, and overlaps will not be repeated.
Fig. 4 shows the flow chart according to a kind of web of one exemplary embodiment of the application method for parameter configuration applied,
Referring to Fig. 4, the method includes:
S101:Configuration management console determines the first web applications to be configured from database.
In a kind of embodiment of the application, which includes:The configuration management console receives what user determined
The IP address information of machine where the first web applications to be configured;
According to the IP address information, the first web to be configured is oriented from the database of the console should
With.
S102:It determines the configurable parameter of the first web applications, and the configuration interface of the first web applications is provided,
Configurable parameter is at least shown in the configuration interface.
In a kind of embodiment of the application, the configuration management console determines matching for the first web applications
It puts parameter and includes the allocation list that the configuration management console obtains the first web applications;
It identifies in the parameter with the parameter explained, the parameter that the band is explained is determined as configurable parameter.
S103:User is received on the configuration interface to the configuration modification information of configurable parameter input;
S104:The parameter configuration equipment that modification request is applied to the first web is sent, to be applied to the first web
Carry out parameter configuration.
In a kind of embodiment of the application, as shown in fig. 6, when parameter configuration equipment is set to web in application, configuration
List interfaces apply by web of management console read this apply bean titles corresponding to upper all configuration parameters and
Property Name orients the bean titles and Property Name for needing the parameter for changing configuration, and automatically according to the bean oriented
Title and Property Name generation configuration interface, so that user exports corresponding modified values by the configuration interface.Therefore, the application
Scheme in, user only needs to input modified values by the configuration interface, is subsequently changed corresponding parameter by web applications automatically and is matched
It puts, special program is write by console without user and goes modification parameter configuration.
Fig. 5 shows the flow chart according to a kind of web of one exemplary embodiment of the application method for parameter configuration applied,
Referring to Fig. 5, this method includes:
S201:Parameter configuration equipment receives the modification request that configuration management console is sent, and the modification request includes needing
Change configuration the first web application configurable parameter and parameter modified values, the configurable parameter include bean titles and
Property Name.
S202:According to the parameter that the first web of the modification request modification is applied, which includes:
The parameter configuration equipment searches allocation list according to the bean titles and Property Name, orients needs and changes and matches
The corresponding bean objects of bean titles and Property Name for the configurable parameter put;
Pass through parameter of the java reflection technologies in the parameter modified values modification bean objects.In the embodiment party
Formula is configured come unified definition by way of java notes, then carries out automatic identification and unified management to configuration first, when needing
When changing configuration, by the way that web is called to realize configuration change using inner unified gateway so that web applications are safeguarded
Property and ease for use greatly promote.
In a kind of embodiment of the application, when parameter configuration equipment is set to web in application, referring to Fig. 7, web
After the modification instruction sent by modify interfaces to configuration management console, according to beanName+
FieldName finds corresponding bean objects from allocation list, then realizes configuration with reflection technology real time modifying memory value
Dynamic is changed.In this way, realize the dynamic adjustment of parameter.
In a kind of embodiment of the application, the method further includes configuration statement process, as shown in figure 8, specifically:
According to dynamic configuration information, the acquisition from the first web applications needs to match into Mobile state the parameter configuration equipment
The parameter put, the dynamic configuration information are used to indicate the parameter for needing to carry out dynamic configuration;
Need to carry out mark java notes in the parameter of dynamic configuration described, it is Switch that the java, which is explained,.
In the another embodiment of the application, the method further includes:The addition configuration name in the@Switch
Claim.Configuration name herein is readable strong Chinese description.
API in web applications is the external interface of web applications, and variable is labeled for engineer, after mark i.e. certainly
It is dynamic to become dynamic configuration.During configuration statement, it is only necessary to plus specific on the variable for needing to become dynamic configuration
Java explains@Switch.
In a kind of embodiment of the application, this method further includes the process that configuration finds and registers, specifically, please join
Read Fig. 8:
The parameter configuration equipment initializes Spring containers, traverses java all in the Spring containers
Bean identifies java bean and attribute with@Switch according to java notes;
The java bean with@Switch and attribute that will identify that are stored according to predetermined format in allocation list, institute
It states predetermined format and includes bean titles, Property Name and java bean.Such as according to Map<BeanName+fieldName,
beanObj>It is preserved.Allocation list automatically generates in web application start-up courses, matches for all in maintenance application
It puts.
During configuration is found and is registered, start after all initialization are completed in Spring containers to configuration
Filter is initialized, in this process bean and attribute with Switch labels of automatic identification and searching, simultaneously will
It is stored in a Map in memory, for the addressing of configuration management.
As described above, the application is based on java notes and Spring containers, pass through traversal when web applications start
All bean finds bean with specific note and attribute to carry out configuration automatic identification, and be saved into Spring containers
In one Map;When needing modification configuration, far call is carried out to web applications by a console, applies to send to web and repair
Revaluate, web is applied navigates to bean by bean titles and Property Name in Map, performs memory modification, realizes the dynamic of parameter
State is changed.That is, the application realizes configuration and the association of code by explaining mode, it can effectively be promoted match in this way
The readability and maintainability put.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow is programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming a digital display circuit " integrated " on a piece of PLD, designs and make without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also should
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer of computer readable program code (such as software or firmware) that device and storage can be performed by (micro-) processor can
Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller include but not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact
Existing identical function.Therefore this controller is considered a kind of hardware component, and various to being used to implement for including in it
The device of function can also be considered as the structure in hardware component.Or even, the device for being used to implement various functions can be regarded
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by having the function of certain product.A kind of typical realization equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit is realized can in the same or multiple software and or hardware during application.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM read-only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, available for storing the information that can be accessed by a computing device.It defines, calculates according to herein
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements are not only including those elements, but also wrap
Include other elements that are not explicitly listed or further include for this process, method, commodity or equipment it is intrinsic will
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
Also there are other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or the embodiment in terms of combining software and hardware can be used in the application
Form.It is deposited moreover, the application can be used to can be used in one or more computers for wherein including computer usable program code
The shape of computer program product that storage media is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The application can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environment, by
Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage device.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for system reality
For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The foregoing is merely embodiments herein, are not limited to the application.For those skilled in the art
For, the application can have various modifications and variations.All any modifications made within spirit herein and principle are equal
Replace, improve etc., it should be included within the scope of claims hereof.
Claims (21)
1. a kind of parameter configuring system of web applications, which is characterized in that the system comprises configuration management console and parameters
Equipment is configured;
Wherein, the configuration management console is used for:The first web applications to be configured are determined from database, are determined described
The configurable parameter of first web applications, and the configuration interface of the first web applications is provided, it is at least aobvious in the configuration interface
Show configurable parameter, receive user on the configuration interface to the configuration modification information of configurable parameter input, send
The parameter configuration equipment that modification request is applied to the first web, to carry out parameter configuration to the first web applications;
The parameter configuration equipment is used for:The modification request that the configuration management console is sent is received, is repaiied according to described
Change the parameter that the first web applications are changed in request.
2. system according to claim 1, which is characterized in that the modification request includes the configurable of needs modification configuration
Parameter and parameter modified values, the configurable parameter include bean titles and Property Name, and the configurable parameter is labeled with
Java is explained.
3. system according to claim 2, which is characterized in that the configuration management console is determined to treat from database
First web of configuration, which is applied, to be included:Receive the IP address letter of the machine at the first web applications place to be configured that user determines
Breath according to the IP address information, orients the first web applications to be configured from the database of the console.
4. system according to claim 2, which is characterized in that the configuration management console determines that the first web should
Configurable parameter includes:The allocation list of the first web applications is obtained, identifies the parameter with note in the parameter,
The parameter that the band is explained is determined as configurable parameter.
5. system according to claim 4, which is characterized in that the parameter configuration equipment is according to the modification request modification
The parameter of the first web applications includes:Allocation list is searched according to the bean titles and Property Name, orienting needs to change
The corresponding bean objects of bean titles and Property Name of the configurable parameter of configuration, by java reflection technologies according to the ginseng
Number modified values change the parameter in the bean objects.
6. system according to claim 5, which is characterized in that the parameter configuration equipment is additionally operable to:According to dynamic configuration
Information acquisition from the first web applications needs to carry out the parameter of dynamic configuration, and the dynamic configuration information, which is used to indicate, to be needed
The parameter of dynamic configuration is carried out, needs to carry out mark java notes in the parameter of dynamic configuration, the java notes described
For@Switch.
7. system according to claim 6, which is characterized in that the parameter configuration equipment is additionally operable in the@Switch
In be added with configuration name.
8. the system described according to claim 6 or 7, which is characterized in that the parameter configuration equipment is additionally operable to:Spring is held
Device is initialized, and traverses java bean all in the Spring containers, is identified according to java notes with@
The java bean and attribute of Switch, the java bean with Switch and attribute that will identify that according to fixing in advance
Formula is stored in allocation list, and the predetermined format includes bean titles, Property Name and java bean.
9. a kind of configuration management console, which is characterized in that the configuration management console includes:
Web application determining modules, for determining that the first web to be configured should from the database of the configuration management console
With;
Parameter information determining module, for determining the configurable parameter information of the first web applications;
Configuration interface provides module, for providing the configuration interface of the first web applications, is at least shown in the configuration interface
Configurable parameter;
Modification information receiving module is repaiied for receiving the configuration that user inputs the configurable parameter on the configuration interface
Convert to breath;
Request sending module is changed, for sending the parameter configuration equipment that modification request is applied to the first web, with to described
First web applications carry out parameter configuration.
10. a kind of parameter configuration equipment, which is characterized in that the parameter configuration equipment includes:
Request receiving module is changed, for receiving the modification request of configuration management console transmission;
Parameter adapting module, for the parameter applied according to the first web of the modification request modification.
11. parameter configuration equipment according to claim 10, which is characterized in that the modification request includes needs modification and matches
The configurable parameter and parameter modified values put, the configurable parameter include the bean titles and Property Name of configurable parameter.
12. parameter configuration equipment according to claim 11, which is characterized in that the parameter adapting module includes:
Object-location for searching allocation list according to the bean titles and Property Name, orients needs and changes configuration
The bean titles of configurable parameter and the corresponding bean objects of Property Name;
Object modification module, for passing through ginseng of the java reflection technologies in the parameter modified values modification bean objects
Number.
13. a kind of method for parameter configuration of web applications, which is characterized in that the method includes:
Configuration management console determines the first web applications to be configured from database;
It determines the configurable parameter of the first web applications, and the configuration interface of the first web applications, the configuration is provided
Configurable parameter is at least shown in interface;
User is received on the configuration interface to the configuration modification information of configurable parameter input;
The parameter configuration equipment that modification request is applied to the first web is sent, is matched with carrying out parameter to the first web applications
It puts.
14. according to the method for claim 13, which is characterized in that the configuration management console is determined from database
First web to be configured, which is applied, to be included:
The configuration management console receives the IP address letter of the machine where the first web applications to be configured that user determines
Breath;
According to the IP address information, the first web applications to be configured are oriented from the database of the console.
15. according to the method for claim 13, which is characterized in that the configuration management console determines the first web
The configurable parameter of application includes:
The configuration management console obtains the allocation list of the first web applications;
It identifies in the parameter with the parameter explained, the parameter that the band is explained is determined as configurable parameter.
16. a kind of method for parameter configuration of web applications, which is characterized in that the method includes:
Parameter configuration equipment receives the modification request that configuration management console is sent;
The parameter applied according to the first web of the modification request modification.
17. according to the method for claim 16, which is characterized in that the modification request includes the first of needs modification configuration
The configurable parameter and parameter modified values of web applications, the configurable parameter include bean titles and Property Name.
18. according to the method for claim 17, which is characterized in that the parameter configuration equipment is repaiied according to the modification request
The parameter for changing the first web applications includes:
The parameter configuration equipment searches allocation list according to the bean titles and Property Name, and orienting needs to change configuration
The corresponding bean objects of bean titles and Property Name of configurable parameter;
Pass through parameter of the java reflection technologies in the parameter modified values modification bean objects.
19. according to the method for claim 18, which is characterized in that the method further includes:
According to dynamic configuration information, the acquisition from the first web applications needs to carry out dynamic configuration the parameter configuration equipment
Parameter, the dynamic configuration information are used to indicate the parameter for needing to carry out dynamic configuration;
Need to carry out mark java notes in the parameter of dynamic configuration described, it is Switch that the java, which is explained,.
20. according to the method for claim 19, which is characterized in that the method further includes:
Configuration name is added in the@Switch.
21. the method according to claim 19 or 20, which is characterized in that the method further includes:
The parameter configuration equipment initializes Spring containers, traverses java all in the Spring containers
Bean identifies java bean and attribute with@Switch according to java notes;
The java bean with@Switch and attribute that will identify that are stored according to predetermined format in allocation list, described pre-
The formula that fixes includes bean titles, Property Name and java bean.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611254000.XA CN108268289B (en) | 2016-12-30 | 2016-12-30 | Parameter configuration method, device and system for web application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611254000.XA CN108268289B (en) | 2016-12-30 | 2016-12-30 | Parameter configuration method, device and system for web application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108268289A true CN108268289A (en) | 2018-07-10 |
CN108268289B CN108268289B (en) | 2022-01-28 |
Family
ID=62754271
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611254000.XA Active CN108268289B (en) | 2016-12-30 | 2016-12-30 | Parameter configuration method, device and system for web application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108268289B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634655A (en) * | 2018-12-10 | 2019-04-16 | 江苏满运软件科技有限公司 | Variable configuration method based on heat deployment, device, electronic equipment, storage medium |
CN109857496A (en) * | 2018-12-30 | 2019-06-07 | 贝壳技术有限公司 | More application navigation configuration methods and system in a kind of ERP system |
CN110661873A (en) * | 2019-09-27 | 2020-01-07 | 南京博联智能科技有限公司 | Internet of things platform parameter conversion method, device, equipment, medium and system |
CN111694586A (en) * | 2020-06-05 | 2020-09-22 | 平安科技(深圳)有限公司 | Program initialization method, program initialization device, terminal device, and storage medium |
CN111857863A (en) * | 2020-06-19 | 2020-10-30 | 微梦创科网络科技(中国)有限公司 | Dynamic configuration method and system |
CN114356427A (en) * | 2022-01-06 | 2022-04-15 | 成都新希望金融信息有限公司 | Scanning filtering method and device, electronic equipment and storage medium |
CN114489830A (en) * | 2021-12-23 | 2022-05-13 | 阿里巴巴(中国)有限公司 | Configuration page operation method, processing method and computing device |
Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002050670A1 (en) * | 2000-12-21 | 2002-06-27 | Crossmarx B.V. | Software application and method for building software applications |
CN1578943A (en) * | 2001-09-21 | 2005-02-09 | Bea系统公司 | Method and apparatus for smart directories for application deployment |
CN1577322A (en) * | 2003-07-17 | 2005-02-09 | 国际商业机器公司 | Method and system for application installation and management using an application-based naming system including aliases |
US20060064673A1 (en) * | 2004-08-17 | 2006-03-23 | National Instruments Corporation | Variable abstraction |
CN1918572A (en) * | 2004-02-26 | 2007-02-21 | 国际商业机器公司 | Apparatus, system, method for enabling web-applications to access enterprise managed data |
CN101042767A (en) * | 2006-02-28 | 2007-09-26 | 国际商业机器公司 | Web services database cluster structure and method thereof |
CN101187868A (en) * | 2006-11-23 | 2008-05-28 | 国际商业机器公司 | Method and system for configuration application in door circumstance based on Web |
CN101216838A (en) * | 2008-01-15 | 2008-07-09 | 中兴通讯股份有限公司 | XML interface configuration file distribute system and method based on WEB marker |
CN101276271A (en) * | 2007-03-29 | 2008-10-01 | 北京邮电大学 | Method and interceptor system facing to tangent plane programming |
CN101414949A (en) * | 2008-11-28 | 2009-04-22 | 阿里巴巴集团控股有限公司 | Chain data transmission method, node and system |
US20100293168A1 (en) * | 2009-05-13 | 2010-11-18 | International Business Machines Corporation | Determining configuration parameter dependencies via analysis of configuration data from multi-tiered enterprise applications |
CN101901267A (en) * | 2010-08-02 | 2010-12-01 | 中兴通讯股份有限公司 | Method and device for managing configuration files |
CN102110048A (en) * | 2009-12-28 | 2011-06-29 | 国际商业机器公司 | Regression testing selection method and device for frame-based application program |
CN102323884A (en) * | 2011-09-07 | 2012-01-18 | 山东中创软件工程股份有限公司 | Web service container and method for issuing multiple Web services |
CN102508673A (en) * | 2011-12-02 | 2012-06-20 | 方正国际软件有限公司 | System and method for rapidly developing and configuring platform software |
CN102566992A (en) * | 2010-12-17 | 2012-07-11 | 卓望数码技术(深圳)有限公司 | Dependency injection method and dependency injection device based on system running |
CN103064707A (en) * | 2012-12-25 | 2013-04-24 | 广州杰赛科技股份有限公司 | Method and system for configuring parameters of intelligent terminal |
CN103577321A (en) * | 2012-08-07 | 2014-02-12 | 阿里巴巴集团控股有限公司 | Multi-version parallel test method for web pages and server |
CN104360853A (en) * | 2014-11-03 | 2015-02-18 | 中国农业银行股份有限公司 | Method and device for configuration information management and information system |
CN105549982A (en) * | 2016-01-14 | 2016-05-04 | 国网山东省电力公司物资公司 | Automated development platform based on model configuration |
-
2016
- 2016-12-30 CN CN201611254000.XA patent/CN108268289B/en active Active
Patent Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002050670A1 (en) * | 2000-12-21 | 2002-06-27 | Crossmarx B.V. | Software application and method for building software applications |
CN1578943A (en) * | 2001-09-21 | 2005-02-09 | Bea系统公司 | Method and apparatus for smart directories for application deployment |
CN1577322A (en) * | 2003-07-17 | 2005-02-09 | 国际商业机器公司 | Method and system for application installation and management using an application-based naming system including aliases |
CN1918572A (en) * | 2004-02-26 | 2007-02-21 | 国际商业机器公司 | Apparatus, system, method for enabling web-applications to access enterprise managed data |
US20060064673A1 (en) * | 2004-08-17 | 2006-03-23 | National Instruments Corporation | Variable abstraction |
CN101042767A (en) * | 2006-02-28 | 2007-09-26 | 国际商业机器公司 | Web services database cluster structure and method thereof |
CN101187868A (en) * | 2006-11-23 | 2008-05-28 | 国际商业机器公司 | Method and system for configuration application in door circumstance based on Web |
CN101276271A (en) * | 2007-03-29 | 2008-10-01 | 北京邮电大学 | Method and interceptor system facing to tangent plane programming |
CN101216838A (en) * | 2008-01-15 | 2008-07-09 | 中兴通讯股份有限公司 | XML interface configuration file distribute system and method based on WEB marker |
CN101414949A (en) * | 2008-11-28 | 2009-04-22 | 阿里巴巴集团控股有限公司 | Chain data transmission method, node and system |
US20100293168A1 (en) * | 2009-05-13 | 2010-11-18 | International Business Machines Corporation | Determining configuration parameter dependencies via analysis of configuration data from multi-tiered enterprise applications |
CN102110048A (en) * | 2009-12-28 | 2011-06-29 | 国际商业机器公司 | Regression testing selection method and device for frame-based application program |
CN101901267A (en) * | 2010-08-02 | 2010-12-01 | 中兴通讯股份有限公司 | Method and device for managing configuration files |
CN102566992A (en) * | 2010-12-17 | 2012-07-11 | 卓望数码技术(深圳)有限公司 | Dependency injection method and dependency injection device based on system running |
CN102323884A (en) * | 2011-09-07 | 2012-01-18 | 山东中创软件工程股份有限公司 | Web service container and method for issuing multiple Web services |
CN102508673A (en) * | 2011-12-02 | 2012-06-20 | 方正国际软件有限公司 | System and method for rapidly developing and configuring platform software |
CN103577321A (en) * | 2012-08-07 | 2014-02-12 | 阿里巴巴集团控股有限公司 | Multi-version parallel test method for web pages and server |
CN103064707A (en) * | 2012-12-25 | 2013-04-24 | 广州杰赛科技股份有限公司 | Method and system for configuring parameters of intelligent terminal |
CN104360853A (en) * | 2014-11-03 | 2015-02-18 | 中国农业银行股份有限公司 | Method and device for configuration information management and information system |
CN105549982A (en) * | 2016-01-14 | 2016-05-04 | 国网山东省电力公司物资公司 | Automated development platform based on model configuration |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634655A (en) * | 2018-12-10 | 2019-04-16 | 江苏满运软件科技有限公司 | Variable configuration method based on heat deployment, device, electronic equipment, storage medium |
CN109857496A (en) * | 2018-12-30 | 2019-06-07 | 贝壳技术有限公司 | More application navigation configuration methods and system in a kind of ERP system |
CN110661873A (en) * | 2019-09-27 | 2020-01-07 | 南京博联智能科技有限公司 | Internet of things platform parameter conversion method, device, equipment, medium and system |
CN110661873B (en) * | 2019-09-27 | 2022-06-03 | 南京博联智能科技有限公司 | Internet of things platform parameter conversion method, device, equipment, medium and system |
CN111694586A (en) * | 2020-06-05 | 2020-09-22 | 平安科技(深圳)有限公司 | Program initialization method, program initialization device, terminal device, and storage medium |
CN111857863A (en) * | 2020-06-19 | 2020-10-30 | 微梦创科网络科技(中国)有限公司 | Dynamic configuration method and system |
CN111857863B (en) * | 2020-06-19 | 2023-10-27 | 微梦创科网络科技(中国)有限公司 | Dynamic configuration method and system |
CN114489830A (en) * | 2021-12-23 | 2022-05-13 | 阿里巴巴(中国)有限公司 | Configuration page operation method, processing method and computing device |
CN114356427A (en) * | 2022-01-06 | 2022-04-15 | 成都新希望金融信息有限公司 | Scanning filtering method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108268289B (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108268289A (en) | Method for parameter configuration, the apparatus and system of web applications | |
CN107239479A (en) | A kind of method and device of data storage and inquiry based on block chain | |
CN111767143B (en) | Transaction data processing method, device, equipment and system | |
CN107450972A (en) | A kind of dispatching method, device and electronic equipment | |
CN107562775A (en) | A kind of data processing method and equipment based on block chain | |
CN107562467A (en) | Page rendering method, apparatus and equipment | |
CN109002362A (en) | A kind of method of servicing, device, system and electronic equipment | |
CN106970822A (en) | A kind of container creation method and device | |
CN108959341A (en) | A kind of method, device and equipment that data are synchronous | |
CN108549562A (en) | A kind of method and device of image load | |
CN107506181A (en) | Business processing, data processing method, device and electronic equipment | |
CN109582485A (en) | A kind of configuration change method for detecting abnormality and device | |
CN108282518A (en) | A kind of customer terminal webpage generation method and device | |
CN108173706A (en) | Service marker method, apparatus and equipment under a kind of multiservice system | |
CN110134668A (en) | Data migration method, device and equipment applied to block chain | |
CN108334515A (en) | The method, apparatus and system of stack address in file are collapsed in a kind of processing | |
CN109241026A (en) | The method, apparatus and system of data management | |
CN109947643A (en) | A kind of configuration method, device and the equipment of the experimental program based on A/B test | |
CN108710630A (en) | A kind of page navigation method, device and equipment | |
CN104423961A (en) | Method and system for generating testing script | |
CN110032409A (en) | A kind of client screen adaptation method, device and electronic equipment | |
CN108320071A (en) | A kind of Operational Risk management method, apparatus and equipment | |
CN109710622A (en) | A kind of data-updating method, device and system | |
CN109739474A (en) | A kind of processing method of service request, device, equipment and medium | |
CN107038058A (en) | A kind of code process method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |