CN110580173A - configuration-based dynamic route registration method and system - Google Patents
configuration-based dynamic route registration method and system Download PDFInfo
- Publication number
- CN110580173A CN110580173A CN201910871289.7A CN201910871289A CN110580173A CN 110580173 A CN110580173 A CN 110580173A CN 201910871289 A CN201910871289 A CN 201910871289A CN 110580173 A CN110580173 A CN 110580173A
- Authority
- CN
- China
- Prior art keywords
- routing
- service
- configuration
- route
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000007246 mechanism Effects 0.000 claims abstract description 19
- 238000004458 analytical method Methods 0.000 claims description 18
- 239000012141 concentrate Substances 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- 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/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- 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/4401—Bootstrapping
- G06F9/4416—Network booting; Remote initial program loading [RIPL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
- H04L41/0843—Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a configuration-based dynamic route registration method and a configuration-based dynamic route registration system, and belongs to the technical field of enterprise management software. The dynamic route registration method based on configuration is based on the self-defined configuration route, the self-defined route is configured to the host machine through automatic scanning during starting, and the registration mechanism of the route is expanded. The dynamic route registration method based on configuration can expand the registration mechanism of the route, improve the flexibility of route registration, solve the limitation of route registration and have good popularization and application values.
Description
Technical Field
The invention relates to the technical field of enterprise management software, and particularly provides a configuration-based dynamic route registration method and system.
Background
With the continuous deep research of software technology and the wide application of network technology, Enterprise management software (ERP) like Enterprise Resource Planning (Enterprise Resource Planning) is also widely applied. However, as more and more modules are managed by an enterprise, the managed service becomes more and more complex, and each module needs to plan its own routing address, so that a dynamic routing rule registration mechanism is very important.
The net core itself provides a set of route registration mechanism, but the mechanism has the following problems: firstly, the mechanism scans and analyzes the annotation tag of the loaded service through an analysis service based on the loaded service to obtain a routing address and then registers, so that if the routing address is modified, the service needs to be released again, and the flexibility is not enough; secondly, the mechanism has certain limitation, because only the referenced service can be loaded based on the default scanning mechanism, the coupling between the host and each service is high, and the independence of each service cannot be satisfied.
disclosure of Invention
the technical task of the present invention is to provide a dynamic route registration method based on configuration, which can extend the registration mechanism of the route, improve the flexibility of the route registration, and solve the limitation of the route registration.
It is a further technical task of the present invention to provide a configuration-based dynamic route registration system.
In order to achieve the purpose, the invention provides the following technical scheme:
A dynamic route registration method based on configuration is characterized in that a user-defined route is configured into a host machine through automatic scanning during starting based on the user-defined configured route, and a registration mechanism of the route is expanded.
the dynamic route registration method based on configuration adopts the mechanisms of file configuration, automatic loading and automatic registration, expands the registration mechanism of the route, solves the limitation of the original route registration, simultaneously decouples the route configuration and the host service of each service through the method, increases the flexibility of program development, enables service developers to concentrate on service logic development, and improves the flexibility of route registration.
Preferably, the method specifically comprises the following steps:
S1, defining a routing template: defining a uniform service access address through the configuration of a routing template;
S2, configuring routing service: based on the defined routing template, carrying out the configuration of routing service;
S3, loading route configuration: loading the routing configuration through the configured routing service;
s4, route template analysis: based on the defined routing template, analyzing the routing template;
S5, registration service routing: associating the service with the routing address, and registering the service and the routing address into a host;
S6, registration method routing: based on the loaded service, the route in the method in the service is analyzed, and the access address of the method is registered in the host.
Preferably, in step S1, the service provider defines a standard routing template including an application number, a service unit number, a version number, and a service number according to the product plan.
preferably, in step S2, values of each part in the routing template are defined based on the defined routing template, a direction address of each service is planned, and service information corresponding to the routing address is registered.
Preferably, in step S3, the configuration loading service performs profile analysis on the configured routing service, and loads the analyzed access address and the registered service result into the routing analysis engine.
preferably, in step S4, the route resolution engine replaces the placeholder in the route template based on the loaded route configuration, and resolves the placeholder into a complete route access address for subsequent route registration.
Preferably, in step S5, the routing engine analyzes the service corresponding to the route based on the loaded configuration, associates the service with the routing address, and registers the service in the host.
A configuration-based dynamic route registration system, comprising the following modules:
the routing template definition module is used for defining a uniform service access address through the configuration of the routing template;
the routing service configuration module is used for configuring routing services based on the defined routing template;
The route configuration loading module is used for loading route configuration through configured route service;
the routing template analysis module is used for carrying out routing template analysis based on the defined routing template;
The service routing registration module is used for associating the service with the routing address and registering the service and the routing address into the host;
And the method route registration module analyzes the route in the method in the service based on the loaded service and registers the access address of the method in the host.
Preferably, the routing template definition module defines a standard routing template including an application number, a service unit number, a version number, and a service number according to a product plan by a service provider.
Preferably, the routing service configuration module defines values of each part in the routing template based on the defined routing template, plans a direction address of each service, and registers service information corresponding to the routing address.
Compared with the prior art, the configuration-based dynamic route registration method has the following outstanding beneficial effects: the dynamic route registration method based on configuration adopts the mechanisms of file configuration, automatic loading and automatic registration, expands the registration mechanism of the route, solves the limitation of the original route registration, simultaneously decouples the route configuration and the host service of each service through the method, increases the flexibility of program development, enables service developers to concentrate on service logic development, expands the registration mechanism of the route, improves the flexibility of route registration and has good popularization and application values.
Drawings
Fig. 1 is a flow chart of a configuration-based dynamic route registration method according to the present invention.
Detailed Description
The configuration-based dynamic route registration method and system of the present invention will be described in further detail with reference to the accompanying drawings and embodiments.
examples
The dynamic route registration method based on configuration of the invention is based on self-defined configuration route, self-defined route is configured to the host machine through automatic scanning when starting, and the registration mechanism of the route is expanded. The invention also provides a method for realizing the routing registration of the routing service, which comprises the steps of adopting the mechanisms of file configuration, automatic loading and automatic registration, expanding the registration mechanism of the routing, solving the limitation of the original routing registration, decoupling the routing configuration and the host service of each service, increasing the flexibility of program development, leading the service developer to concentrate on the service logic development, and improving the flexibility of the routing registration.
as shown in fig. 1, the method specifically includes the following steps:
S1, defining a routing template: and defining a uniform service access address through the configuration of the routing template.
the service provider defines standard routing templates including application numbers, service unit numbers, version numbers, and service numbers according to the product plan. The specific codes are as follows:
s2, configuring routing service: and configuring the routing service based on the defined routing template.
and defining values of all parts in the routing template based on the defined routing template, planning a direction address of each service, and registering service information corresponding to the routing address. The specific codes are as follows:
S3, loading route configuration: and loading the routing configuration through the configured routing service. The specific codes are as follows:
And aiming at the configured routing service, analyzing a configuration file through a configuration loading service, and loading the analyzed access address and the registered service result into a routing analysis engine.
S4, route template analysis: and analyzing the routing template based on the defined routing template.
And the routing analysis engine replaces the placeholder in the routing template based on the loaded routing configuration and analyzes the placeholder into a complete routing access address so as to facilitate subsequent routing registration.
S5, registration service routing: and associating the service with the routing address and registering the service and the routing address into the host.
and the routing engine analyzes the service corresponding to the route based on the loaded configuration, associates the service with the routing address and registers the service in the host.
S6, registration method routing: based on the loaded service, the route in the method in the service is analyzed, and the access address of the method is registered in the host.
The invention discloses a dynamic route registration system based on configuration, which comprises the following modules:
And the routing template definition module is used for defining a uniform service access address through the configuration of the routing template.
The routing template definition module defines a standard routing template including an application number, a service unit number, a version number and a service number according to product planning through a service provider.
And the routing service configuration module is used for configuring the routing service based on the defined routing template.
the routing service configuration module defines values of all parts in the routing template based on the defined routing template, plans the azimuth address of each service and registers service information corresponding to the routing address.
And the route configuration loading module is used for loading the route configuration through the configured route service.
The module analyzes the configuration file through the configuration loading service aiming at the configured routing service, and loads the analyzed access address and the registered service result into the routing analysis engine.
and the routing template analysis module is used for carrying out routing template analysis based on the defined routing template.
in the route template analysis module, a route analysis engine replaces placeholders in the route template based on loaded route configuration, and analyzes the placeholders into a complete route access address so as to facilitate subsequent route registration.
And the service route registration module is used for associating the service with the route address and registering the service and the route address into the host.
In the module, the routing engine analyzes the service corresponding to the route based on the loaded configuration, associates the service with the routing address, and registers the service and the routing address into the host.
And the method route registration module analyzes the route in the method in the service based on the loaded service and registers the access address of the method in the host.
the above-described embodiments are merely preferred embodiments of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.
Claims (10)
1. a dynamic route registration method based on configuration is characterized in that: the method is based on the self-defined configuration route, the self-defined route is configured to the host machine through automatic scanning during starting, and the registration mechanism of the route is expanded.
2. the configuration-based dynamic route registration method of claim 1, wherein: the method specifically comprises the following steps:
S1, defining a routing template: defining a uniform service access address through the configuration of a routing template;
S2, configuring routing service: based on the defined routing template, carrying out the configuration of routing service;
S3, loading route configuration: loading the routing configuration through the configured routing service;
s4, route template analysis: based on the defined routing template, analyzing the routing template;
S5, registration service routing: associating the service with the routing address, and registering the service and the routing address into a host;
S6, registration method routing: based on the loaded service, the route in the method in the service is analyzed, and the access address of the method is registered in the host.
3. The configuration-based dynamic route registration method of claim 2, wherein: in step S1, the service provider defines a standard routing template including an application number, a service unit number, a version number, and a service number according to the product plan.
4. The configuration-based dynamic route registration method of claim 3, wherein: in step S2, values of respective parts in the routing template are defined based on the defined routing template, a direction address of each service is planned, and service information corresponding to the routing address is registered.
5. the configuration-based dynamic route registration method of claim 4, wherein: in step S3, the configuration file is analyzed by the configuration loading service for the configured routing service, and the analyzed access address and the registered service result are loaded to the routing analysis engine.
6. The configuration-based dynamic route registration method of claim 5, wherein: in step S4, the route resolution engine replaces the placeholder in the route template based on the loaded route configuration, and resolves the placeholder into a complete route access address, so as to facilitate subsequent route registration.
7. the configuration-based dynamic route registration method of claim 6, wherein: in step S5, the routing engine parses the service corresponding to the route based on the loaded configuration, associates the service with the routing address, and registers the service in the host.
8. A configuration-based dynamic route registration system, characterized by: the system comprises the following modules:
The routing template definition module is used for defining a uniform service access address through the configuration of the routing template;
the routing service configuration module is used for configuring routing services based on the defined routing template;
The route configuration loading module is used for loading route configuration through configured route service;
The routing template analysis module is used for carrying out routing template analysis based on the defined routing template;
The service routing registration module is used for associating the service with the routing address and registering the service and the routing address into the host;
and the method route registration module analyzes the route in the method in the service based on the loaded service and registers the access address of the method in the host.
9. the configuration-based dynamic routing registration system of claim 8, wherein: the routing template definition module defines a standard routing template including an application number, a service unit number, a version number and a service number according to product planning through a service provider.
10. The configuration-based dynamic routing registration system of claim 9, wherein: the routing service configuration module defines values of all parts in the routing template based on the defined routing template, plans the azimuth address of each service and registers service information corresponding to the routing address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910871289.7A CN110580173A (en) | 2019-09-16 | 2019-09-16 | configuration-based dynamic route registration method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910871289.7A CN110580173A (en) | 2019-09-16 | 2019-09-16 | configuration-based dynamic route registration method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110580173A true CN110580173A (en) | 2019-12-17 |
Family
ID=68811330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910871289.7A Pending CN110580173A (en) | 2019-09-16 | 2019-09-16 | configuration-based dynamic route registration method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110580173A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428090A (en) * | 2012-05-15 | 2013-12-04 | 深圳中兴力维技术有限公司 | Dynamic routing method, routing server and system for heterogeneous network |
CN104320344A (en) * | 2014-10-28 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Dynamic application cluster implement method based on Nginx |
CN107707614A (en) * | 2017-08-16 | 2018-02-16 | 深圳市丰巢科技有限公司 | App route implementation methods, equipment and the storage medium of agreement are jumped based on system |
CN108390773A (en) * | 2018-02-02 | 2018-08-10 | 上海汉得信息技术股份有限公司 | A kind of method and apparatus of dynamic routing for scaffold |
CN109597854A (en) * | 2018-10-31 | 2019-04-09 | 深圳壹账通智能科技有限公司 | A kind of method for routing of service request, device, computer equipment and computer storage medium |
-
2019
- 2019-09-16 CN CN201910871289.7A patent/CN110580173A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428090A (en) * | 2012-05-15 | 2013-12-04 | 深圳中兴力维技术有限公司 | Dynamic routing method, routing server and system for heterogeneous network |
CN104320344A (en) * | 2014-10-28 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Dynamic application cluster implement method based on Nginx |
CN107707614A (en) * | 2017-08-16 | 2018-02-16 | 深圳市丰巢科技有限公司 | App route implementation methods, equipment and the storage medium of agreement are jumped based on system |
CN108390773A (en) * | 2018-02-02 | 2018-08-10 | 上海汉得信息技术股份有限公司 | A kind of method and apparatus of dynamic routing for scaffold |
CN109597854A (en) * | 2018-10-31 | 2019-04-09 | 深圳壹账通智能科技有限公司 | A kind of method for routing of service request, device, computer equipment and computer storage medium |
Non-Patent Citations (1)
Title |
---|
天涯泪小武: ""独立使用zuul网关分发不同服务的请求、权限控制,非SpringCloud"", 《HTTPS://TIANYALEI.BLOG.CSDN.NET/ARTICLE/DETAILS/77884778》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022160707A1 (en) | Human-machine interaction method and apparatus combined with rpa and ai, and storage medium and electronic device | |
CN107015853B (en) | Method and device for realizing multi-stage task | |
CN108845940B (en) | Enterprise-level information system automatic function testing method and system | |
US9043756B2 (en) | Compound versioning and identification scheme for composite application development | |
CN102087594B (en) | Management method and device for extension point and plugins | |
CN105718289A (en) | Component relationship establishing method and equipment | |
CN101976199A (en) | Object-oriented middleware distributed system development platform | |
US9104398B2 (en) | Invocation of external web services using dynamically generated composite applications | |
CN104461531A (en) | Implementing method for self-defined functions of reporting system | |
CN109902117A (en) | Operation system analysis method and device | |
CN105653335A (en) | Plug-in procedure control method and device | |
CN106055375A (en) | Application program installation method and device | |
CN111158687B (en) | Interface generation method and device of JAVA plugin, computer equipment and storage medium | |
CN101046746B (en) | Code management in a distributed software development environment | |
CN109460222A (en) | Modularization method, apparatus, equipment and the storage medium of application program | |
WO2019043462A1 (en) | Systems and methods for creating automated interface transmission between heterogeneous systems in an enterprise ecosystem | |
CN111240772A (en) | Data processing method and device based on block chain and storage medium | |
CN102520971B (en) | Data interaction method and device based on computer-aided design (CAD) software | |
CN107133040A (en) | A kind of standardized product service apparatus and business module extend method of replacing | |
CN110580173A (en) | configuration-based dynamic route registration method and system | |
CN113468446B (en) | Method, system and equipment for supporting identification of third party two-dimensional code data | |
CN113515271B (en) | Service code generation method and device, electronic equipment and readable storage medium | |
CN103257911A (en) | SOA (service-oriented architecture) based model testing tool integrating method | |
CN112835606A (en) | Gradation issuing method, gradation issuing apparatus, electronic device, gradation issuing medium, and program product | |
CN109032569A (en) | A kind of RESTful service method for automatically releasing based on attribute tags |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191217 |
|
RJ01 | Rejection of invention patent application after publication |