CN108572823A - Front and back end development management method and system based on interface engine - Google Patents
Front and back end development management method and system based on interface engine Download PDFInfo
- Publication number
- CN108572823A CN108572823A CN201810368902.9A CN201810368902A CN108572823A CN 108572823 A CN108572823 A CN 108572823A CN 201810368902 A CN201810368902 A CN 201810368902A CN 108572823 A CN108572823 A CN 108572823A
- Authority
- CN
- China
- Prior art keywords
- configuration
- interface
- equipment
- rear end
- interface engine
- 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
- 238000011161 development Methods 0.000 title claims abstract description 63
- 238000007726 management method Methods 0.000 title claims abstract description 42
- 238000000034 method Methods 0.000 claims abstract description 24
- 238000013507 mapping Methods 0.000 claims description 28
- 230000004044 response Effects 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 11
- 238000004088 simulation Methods 0.000 claims description 8
- 230000007246 mechanism Effects 0.000 claims description 6
- 230000011514 reflex Effects 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 4
- 238000013461 design Methods 0.000 claims description 3
- 230000004048 modification Effects 0.000 abstract description 13
- 238000012986 modification Methods 0.000 abstract description 13
- 238000003032 molecular docking Methods 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 12
- 230000015654 memory Effects 0.000 description 10
- 238000011017 operating method Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 230000003993 interaction Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present application provides a kind of front and back end development management method and system based on interface engine, and this method includes:Rear end equipment is developed to obtain interface model, and interface model can provide configuration file format for headend equipment;Headend equipment carries out the configuration of configuration item according to configuration file format, and preserves the configuration information of each configuration item to generate configuration file;Rear end equipment is developed to obtain interface engine, the configuration information of each configuration item in configuration file is read by interface engine, and according to configuration information dynamic generation interface access address;Headend equipment carries out data access according to interface access address.The front and back end development management scheme obtains interface engine by exploitation, the configuration information of each configuration item in configuration file is read using interface engine, to provide data access interface for headend equipment, the drawbacks of avoiding a large amount of modifications when subsequently being docked caused by simulating false data in the prior art, reduce data modification when follow-up docking, improves development efficiency.
Description
Technical field
This application involves technical field of software development, are developed in particular to a kind of front and back end based on interface engine
Management method and system.
Background technology
With the development of Internet technology, various websites gradually enter into people’s lives, and webpage front-end is as mutual
The important branch of networking technology occupies extremely important status in terms of showing interface and user's interaction, while more and more
Back end business logic gradually front end so that front-end business logic is increasingly sophisticated.In traditional development mode, usually front end
It is responsible for exploitation static page, virtual false data, pretreatment service logic etc., waits for back end interface exploitation completion and then modification pair
Field is answered to be docked.Using this pattern, in front and back end, respectively accordingly exploitation finishes, when being docked, if rear end feedback
Field is not corresponding, data structure does not correspond to, and front end will be caused to make a large amount of modifications, increases development effort.
Invention content
In view of this, the purpose of the application is, provide a kind of front and back end development management method based on interface engine and
System is to improve the above problem.
The embodiment of the present application provides a kind of front and back end development management method based on interface engine, the method includes:
Rear end equipment is developed to obtain interface model, and the interface model can provide configuration file format for headend equipment;
The headend equipment carries out the configuration of configuration item according to the configuration file format, and preserves each configuration item
Configuration information is to generate configuration file;
The rear end equipment is developed to obtain interface engine, is read by the interface engine each described in the configuration file
The configuration information of configuration item, and according to the configuration information dynamic generation interface access address;
The headend equipment carries out data access according to the interface access address.
Optionally, the method further includes:
The rear end equipment designs to obtain with the data structure of key-value pair form simulation;
Using the interface engine according to the configuration information of each configuration item in the configuration file to read the number
According to structure, according to the corresponding field mapping of the data structure building so that the headend equipment uses, the field mapping packet
Include the mapping relations of the interface field of the headend equipment and the interface field of the rear end equipment.
Optionally, the interface engine includes front-end configuration page, and the method further includes:
When the headend equipment and the rear end equipment are docked, according to field mapping detect the headend equipment and
Whether the interface field of the rear end equipment matches;
If mismatching, the headend equipment modifies to the data structure in the front-end configuration page.
Optionally, the configuration information that each configuration item in the configuration file is read by the interface engine,
And the step of according to the configuration information dynamic generation interface access address, including:
The configuration of each configuration item in the configuration file is read using java reflex mechanisms by the interface engine
Information;
The configuration information of each configuration item is inserted into the database, according to each configuration by initialization data library
The configuration information dynamic generation interface access address of item.
Optionally, the headend equipment carries out the configuration of configuration item according to the configuration file format, and preserves each described
The step of configuration information of configuration item is to generate configuration file, including:
The solicited message of configuration item is sent to by the headend equipment according to the configuration file format by request address
The rear end equipment;
After asking successfully, the corresponding response message of the solicited message is fed back to the front end and set by the rear end equipment
It is standby;
The headend equipment completes the configuration of configuration item according to the response message, and the configuration information of configuration item is carried out
It preserves to generate configuration file.
Optionally, the solicited message includes required parameter, request header information and request type, the response message packet
Include response data, response header and respond style.
The embodiment of the present application also provides a kind of front and back end equipment development management system based on interface engine, the system packet
The headend equipment and rear end equipment of communication connection can be established by including, and the headend equipment includes configuration module and access modules, institute
It includes interface model development module and interface access address generation module to state rear end equipment;
The interface model development module is developed to obtain interface model for rear end equipment, and the interface model can be front end
Equipment provides configuration file format;
The configuration module is used to carry out the configuration of configuration item according to the configuration file format, and preserves each configuration
The configuration information of item is to generate configuration file;
The interface access address generation module obtains interface engine for developing, described in interface engine reading
The configuration information of each configuration item in configuration file, and according to the configuration information dynamic generation interface access address;
The access modules are used to carry out data access according to the interface access address.
Optionally, the rear end equipment further includes data structure acquisition module and field map generation module;
The data structure acquisition module is obtained for designing with the data structure of key-value pair form simulation;
The field map generation module is used for using the interface engine according to each configuration in the configuration file
The configuration information of item is to read the data structure, according to the corresponding field mapping of the data structure building for the front end
Equipment uses, and the field mapping includes the mapping of the interface field of the headend equipment and the interface field of the rear end equipment
Relationship.
Optionally, the interface engine includes front-end configuration page, and the headend equipment further includes detection module and modification mould
Block;
The detection module is used to, when the headend equipment and the rear end equipment dock, be mapped and be examined according to the field
Whether the interface field for surveying the headend equipment and the rear end equipment matches;
The modified module is used for when the interface field of the headend equipment and the rear end equipment mismatches, described
Front-end configuration page modifies to the data structure.
Optionally, the interface access address generation module includes reading unit and generation unit;
The reading unit is used to read using java reflex mechanisms by the interface engine each in the configuration file
The configuration information of the configuration item;
The generation unit is used for initialization data library, and the configuration information of each configuration item is inserted into the database
In, according to the configuration information dynamic generation interface access address of each configuration item.
Front and back end development management method and system provided by the embodiments of the present application based on interface engine, rear end equipment exploitation
Interface model is obtained, headend equipment carries out the configuration of configuration item according to the configuration file format that the interface model includes, and protects
Deposit generation configuration file.Rear end equipment is developed to obtain interface engine, and each configuration item in configuration file is read by interface engine
Configuration information is to obtain interface access address.Headend equipment carries out data access according to the interface access address.It opens the front and back end
Hair Managed Solution obtains interface engine by exploitation, and the configuration information of each configuration item in configuration file is read using interface engine,
To provide data access interface for headend equipment, avoid big when subsequently being docked caused by simulating false data in the prior art
The drawbacks of measuring modification so that exploitation is more in line with demand, can reduce data modification when follow-up docking, improves exploitation effect
Rate.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Description of the drawings
Fig. 1 is that the application scenarios of the front and back end development management method provided by the embodiments of the present application based on interface engine are illustrated
Figure.
Fig. 2 is the schematic block diagram of headend equipment provided by the embodiments of the present application.
Fig. 3 is the schematic block diagram of rear end equipment provided by the embodiments of the present application.
Fig. 4 is the flow chart of the front and back end development management method provided by the embodiments of the present application based on interface engine.
Fig. 5 is the flow chart of the sub-step of step S120 in Fig. 4.
Fig. 6 is another flow chart of the front and back end development management method provided by the embodiments of the present application based on interface engine.
Fig. 7 is another flow chart of the front and back end development management method provided by the embodiments of the present application based on interface engine.
Fig. 8 is the function module frame of the front and back end development management system provided by the embodiments of the present application based on interface engine
Figure.
Fig. 9 is the functional block diagram of interface access address generation module provided by the embodiments of the present application.
Figure 10 is another function mould of the front and back end development management system provided by the embodiments of the present application based on interface engine
Block block diagram.
Figure 11 is another function mould of the front and back end development management system provided by the embodiments of the present application based on interface engine
Block block diagram.
Icon:Front and back end development management systems of the 10- based on interface engine;100- headend equipments;The exploitation pipes of 110- first
Manage device;111- configuration modules;112- access modules;113- detection modules;114- modified modules;120- first processors;
130- first memories;200- rear end equipments;210- the second development management devices;211- interface model development modules;212- connects
Mouth access address generation module;2121- reading units;2122- generation units;213- data structure acquisition modules;214- fields
Map generation module;220- second processors;230- second memories.
Specific implementation mode
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
Referring to Fig. 1, for the application of the front and back end development management method provided by the embodiments of the present application based on interface engine
Schematic diagram of a scenario.The scene includes headend equipment 100 and rear end equipment 200, the headend equipment 100 and the rear end equipment
200 can establish communication connection, with into row data communication or interaction.In the present embodiment, the headend equipment 100 can be front end
The terminal device that developer is held, the terminal device that the rear end equipment 200 can be held by rear end developer, the front end
Equipment 100 and the rear end equipment 200 can be but not limited to, and computer, server etc. have the terminal of data processing function
Equipment.
Referring to Fig. 2, for the schematic block diagram of headend equipment 100 provided by the embodiments of the present application, in the present embodiment
In, the headend equipment 100 includes the first development management device 110, first processor 120 and first memory 130, wherein
Direct or indirect electric connection between the first memory 130 and the first processor 120, to realize the transmission of data
Or interaction.The first development management device 110 can be stored in described first including at least one in the form of software or firmware
In memory 130 or the software function module that is solidificated in the operating system of the headend equipment 100.The first processor
120 for executing the executable module stored in the first memory 130, such as the first development management device 110 packet
The software function module or computer program included.
Referring to Fig. 3, for the schematic block diagram of rear end equipment 200 provided by the embodiments of the present application, in the present embodiment
In, the rear end equipment 200 includes the second development management device 210, second processor 220 and second memory 230, wherein
Direct or indirect electric connection between the second memory 230 and the second processor 220, to realize the transmission of data
Or interaction.The second development management device 210 can be stored in described second including at least one in the form of software or firmware
In memory 230 or the software function module that is solidificated in the operating system of the rear end equipment 200.The second processor
220 for executing the executable module stored in the second memory 230, such as the second development management device 210 packet
The software function module or computer program included.
Referring to Fig. 4, being a kind of front and back end development management method based on interface engine provided by the embodiments of the present application
Flow chart.It should be noted that method provided by the present application is not limitation with Fig. 4 and particular order as described below.Below will
Each step shown in Fig. 4 is described in detail.
Step S110, the exploitation of rear end equipment 200 obtain interface model, and the interface model can be that headend equipment 100 provides
Configuration file format.
Step S120, the headend equipment 100 carry out the configuration of configuration item according to the configuration file format, and preserve each
The configuration information of the configuration item is to generate configuration file.
In carrying out project development process, the page development of front end and the application and development of rear end etc., front end are often related to
In the case where not receiving the required data rear end that rear end is returned and not providing and realize logic, frequently with writing some mantissas
According to carrying out follow-up business exploitation.But this mode subsequently carry out front and back end docking when, if the field of rear end actual feedback and
It will lead to the modification that need to carry out mass data when data structure and the data of front end analogue are not to corresponding to, development effort will be increased.This
In embodiment, by developing an interface engine, using interface engine and the demand based on headend equipment 100 is to provide interface access
Address, so that headend equipment 100 carries out data access.Avoid headend equipment 100 need to simulate false data brings it is follow-up more
Change frequent defect.
In the present embodiment, the exploitation of rear end equipment 200 obtains interface model, and the interface model can be that headend equipment 100 carries
For configuration file format.The interface model can provide the functions such as increase, deletion, modification, inquiry and the paging of data, and
And the extension of other common features subsequently can be also carried out according to demand.
The headend equipment 100 carries out the configuration of configuration item according to the configuration file format, optionally, in headend equipment
Show that each configuration item, front end developer fill in configuration information with complete on the configuration page according to demand on the 100 configuration page
At configuration.Optionally, referring to Fig. 5, in the present embodiment, step S120 may include step S121, step S122 and step
Tri- sub-steps of rapid S123.
Step S121, the headend equipment 100 is according to the configuration file format by the solicited message of configuration item by asking
Address is asked to be sent to the rear end equipment 200.
Step S122, after asking successfully, the rear end equipment 200 feeds back the corresponding response message of the solicited message
To the headend equipment 100.
Step S123, the headend equipment 100 complete the configuration of configuration item according to the response message, and by configuration item
Configuration information is preserved to generate configuration file.
Headend equipment 100 after in front end, developer is to corresponding configuration information solicitation, will be configured when being configured
The solicited message of item is sent to rear end equipment 200 by request address.Wherein, solicited message includes required parameter, request header letter
Breath and request type etc..After asking successfully, the corresponding response message of solicited message is fed back to headend equipment by rear end equipment 200
100.Wherein, response message includes response data, response header and respond style.Headend equipment 100 is according to receiving
Response message completes the configuration of each configuration item, and the configuration information of configuration item is preserved to generate configuration file.
Step S130, the exploitation of the rear end equipment 200 obtain interface engine, and the configuration is read by the interface engine
The configuration information of each configuration item in file, and according to the configuration information dynamic generation interface access address.
Step S140, the headend equipment 100 carry out data access according to the interface access address.
In the present embodiment, interface engine is obtained by the exploitation of rear end equipment 200, the interface engine is according to configuration information
It is for the interface IP address of front-end access using specific serve end program (such as Java Web make program) dynamic generation
System.The interface engine may include interface configured readers, interface generator, database manipulation device, abnormal generator and preceding
End configuration page is formed.Interface engine mainly passes through configuration information dynamic generation interface IP address, wherein interface IP address can be
It obtains, such as the address of the data such as music commentary or a web page address.
Specifically, the rear end equipment 200 can read the configuration by the interface engine using java reflex mechanisms
The configuration information of each configuration item in file.And initialization data library, the configuration information of each configuration item is inserted into described in
In database, according to the configuration information dynamic generation interface access address of each configuration item.
By above-mentioned setting, front end developer need not write back-end code, it is only necessary to fill in interface configuration item
Obtain the back end interface address generated by interface engine rather than address that headend equipment 100 is simulated.In this way, can reach
In the case that rear end does not return to the data needed for front end, the purpose developed under real server environment is simulated.
Optionally, referring to Fig. 6, in the present embodiment, the method can also include the following steps:
Step S210, the design of the rear end equipment 200 are obtained with the data structure of key-value pair form simulation.
Step S220, using the interface engine according to the configuration information of each configuration item in the configuration file to read
The data structure is taken, it is described according to the corresponding field mapping of the data structure building so that the headend equipment 100 uses
Field mapping includes the mapping relations of the interface field of the headend equipment 100 and the interface field of the rear end equipment 200.
In the present embodiment, a set of data structure by key-value pair form simulation is designed, which refers to before
Hold the corresponding data in interface.The data structure is read using the interface engine, and generates corresponding field mapping to carry
Headend equipment 100 is supplied, field mapping includes the interface field of the interface field and rear end equipment 200 of headend equipment 100
Mapping relations, shaped like { key (represent headend equipment 100 use field name):Value (represents rear end equipment 200 to need to use
Field name).Such as headend equipment 100 uses " name " reference of name, reference of the rear end equipment 200 to name
Using abbreviation " nam ", the mapping relations of the two are name:nam.In this way, then in follow-up docked, it can be according to this
Whether the interface field of both mapping relations detections meets the relationship pre-established.
Optionally, referring to Fig. 7, in the present embodiment, the method is further comprising the steps of:
Step S310 is mapped according to the field and is examined when the headend equipment 100 and the rear end equipment 200 are docked
Whether the interface field for surveying the headend equipment 100 and the rear end equipment 200 matches.
Step S320, when the interface field of the headend equipment 100 and the rear end equipment 200 mismatches, before described
End equipment 100 modifies to the data structure in the front-end configuration page.
In the present embodiment, when headend equipment 100 and rear end equipment 200 are docked, according to the field pre-established
Whether the interface field of both mapping relations detections both in mapping matches.It, can be in front-end configuration page if mismatching
It modifies to above-mentioned data structure, without being changed one by one on each page of front end, reduces query modification
Time improves development efficiency.
By above-mentioned setting, headend equipment 100 can carry out real service mould in the case where not yet completion is developed in rear end
Quasi- exploitation.The interface engine analog functuion developed by rear end equipment 200, by being configured in the enterprising line interface of front end page, i.e.,
Configuration file can be automatically generated.Headend equipment 100 and rear end equipment 200 are having modification demand when carrying out interface field docking
When only need by modifying on the front-end configuration page, time of interface field docking spends few.
Also, since interface engine can simulate a true server, various exceptions can be simulated, such as network is different
Often, time-consuming, parameter does not conform to rear end requirement, Cross-domain problem etc. for interface requests, thus in the case where rear end exploitation is not yet completed,
It can develop and cope with the good web page of a variety of abnormal user experiences.
Referring to Fig. 8, for the work(of the front and back end development management system 10 provided by the embodiments of the present application based on interface engine
It can module frame chart.The front and back end development management system 10 based on interface engine includes headend equipment 100 and rear end equipment
200, the headend equipment 100 includes the first development management device 110, and the first development management device 110 includes configuration mould
Block 111 and access modules 112, the rear end equipment 200 include the second development management device 210, the second development management dress
It includes interface model development module 211 and interface access address generation module 212 to set 210.
The interface model development module 211 obtains interface model for the exploitation of rear end equipment 200, and the interface model can
Configuration file format is provided for headend equipment 100.The interface model development module 211 can be used for executing to be walked shown in Fig. 4
Rapid S110, specific operating method can refer to the detailed description of step S110.
The configuration module 111 is used to carry out the configuration of configuration item according to the configuration file format, and preserves each described
The configuration information of configuration item is to generate configuration file.The configuration module 111 can be used for executing step S120 shown in Fig. 4,
Specific operating method can refer to the detailed description of step S120.
The interface access address generation module 212 obtains interface engine for developing, and is read by the interface engine
The configuration information of each configuration item in the configuration file, and according to the configuration information dynamic generation interface access address.
The interface access address generation module 212 can be used for executing step S130 shown in Fig. 4, and specific operating method can refer to
The detailed description of step S130.
Optionally, referring to Fig. 9, in the present embodiment, the interface access address generation module 212 includes reading unit
2121 and generation unit 2122.
The reading unit 2121 is used to read the configuration file using java reflex mechanisms by the interface engine
In each configuration item configuration information.
The generation unit 2122 is used for initialization data library, and the configuration information of each configuration item is inserted into the data
In library, according to the configuration information dynamic generation interface access address of each configuration item.
The access modules 112 are used to carry out data access according to the interface access address.The access modules 112 can
For executing step S140 shown in Fig. 4, specific operating method can refer to the detailed description of step S140.
Further, referring to Fig. 10, in the present embodiment, the second development management device 210 further includes data knot
Structure acquisition module 213 and field map generation module 214.
The data structure acquisition module 213 is obtained for designing with the data structure of key-value pair form simulation.The number
It can be used for executing step S210 shown in Fig. 6 according to structure acquisition module 213, specific operating method can refer to step S210's
Detailed description.
The field map generation module 214 is used to described be matched according to each in the configuration file using the interface engine
The configuration information of item is set to read the data structure, according to the corresponding field mapping of the data structure building for before described
End equipment 100 uses, and the field mapping includes the interface field of the headend equipment 100 and connecing for the rear end equipment 200
The mapping relations of mouth field.The field map generation module 214 can be used for executing step S220 shown in Fig. 6, specifically
Operating method can refer to the detailed description of step S220.
In the present embodiment, the interface engine includes front-end configuration page, please refers to Fig.1 1, the first development management dress
It further includes detection module 113 and modified module 114 to set 110.
The detection module 113 is used for when the headend equipment 100 and the rear end equipment 200 dock, according to described
Field mapping detects the headend equipment 100 and whether the interface field of the rear end equipment 200 matches.The detection module
113 can be used for executing step S310 shown in fig. 7, and specific operating method can refer to the detailed description of step S310.
The modified module 114 is used to mismatch in the interface field of the headend equipment 100 and the rear end equipment 200
When, it modifies to the data structure in the front-end configuration page.The modified module 114 can be used for executing shown in Fig. 7
Step S320, specific operating method can refer to the detailed description of step S320.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
Specific work process, can refer to preceding method in corresponding process, no longer excessively repeat herein.
Through the above description of the embodiments, those skilled in the art can be understood that the embodiment of the present invention
The mode of necessary general hardware platform can also be added to realize by software by hardware realization.Based on this understanding,
The technical solution of the embodiment of the present invention can be expressed in the form of software products, the software product can be stored in one it is non-
In volatile storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer
Equipment (can be personal computer, server or network equipment etc.) executes the method described in each implement scene of the application.
In conclusion the front and back end development management method and system provided by the embodiments of the present application based on interface engine, after
The exploitation of end equipment 200 obtains interface model, and headend equipment 100 is matched according to the configuration file format that the interface model includes
The configuration of item is set, and preserves generation configuration file.The exploitation of rear end equipment 200 obtains interface engine, is matched by interface engine reading
The configuration information of each configuration item in file is set to obtain interface access address.Headend equipment 100 according to the interface access address into
Row data access.The front and back end development management scheme obtains interface engine by exploitation, and configuration file is read using interface engine
In the configuration information of each configuration item avoided in the prior art with providing data access interface for headend equipment 100 because simulation is false
The drawbacks of a large amount of modifications when subsequently being docked caused by data so that exploitation is more in line with demand, can reduce follow-up docking
When data modification, improve development efficiency.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other
Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown
Architectural framework in the cards, function and the behaviour of devices in accordance with embodiments of the present invention, method and computer program product
Make.In this regard, each box in flowchart or block diagram can represent a part for a module, section or code, institute
The part for stating module, section or code includes one or more executable instructions for implementing the specified logical function.
It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from attached drawing
The sequence marked occurs.For example, two continuous boxes can essentially be basically executed in parallel, they sometimes can also be by
Opposite sequence executes, this is depended on the functions involved.It is also noted that each box in block diagram and or flow chart,
And the combination of the box in block diagram and or flow chart, function or the dedicated of action as defined in executing can be used to be based on hardware
System realize, or can realize using a combination of dedicated hardware and computer instructions.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or equipment including a series of elements includes not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including institute
State in the process, method, article or equipment of element that there is also other identical elements.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of front and back end development management method based on interface engine, which is characterized in that the method includes:
Rear end equipment is developed to obtain interface model, and the interface model can provide configuration file format for headend equipment;
The headend equipment carries out the configuration of configuration item according to the configuration file format, and preserves the configuration of each configuration item
Information is to generate configuration file;
The rear end equipment is developed to obtain interface engine, and each configuration in the configuration file is read by the interface engine
The configuration information of item, and according to the configuration information dynamic generation interface access address;
The headend equipment carries out data access according to the interface access address.
2. the front and back end development management method according to claim 1 based on interface engine, which is characterized in that the method
Further include:
The rear end equipment designs to obtain with the data structure of key-value pair form simulation;
The data knot is read according to the configuration information of each configuration item in the configuration file using the interface engine
Structure, according to the corresponding field mapping of the data structure building so that the headend equipment uses, the field mapping includes institute
State the mapping relations of the interface field of headend equipment and the interface field of the rear end equipment.
3. the front and back end development management method according to claim 2 based on interface engine, which is characterized in that the interface
Engine includes front-end configuration page, and the method further includes:
When the headend equipment and the rear end equipment are docked, the headend equipment and described is detected according to field mapping
Whether the interface field of rear end equipment matches;
If mismatching, the headend equipment modifies to the data structure in the front-end configuration page.
4. the front and back end development management method according to claim 1 based on interface engine, which is characterized in that described to pass through
The interface engine reads the configuration information of each configuration item in the configuration file, and raw according to configuration information dynamic
The step of at interface access address, including:
The configuration information of each configuration item in the configuration file is read using java reflex mechanisms by the interface engine;
The configuration information of each configuration item is inserted into the database, according to each configuration item by initialization data library
Configuration information dynamic generation interface access address.
5. the front and back end development management method according to claim 1 based on interface engine, which is characterized in that the front end
Equipment carries out the configuration of configuration item according to the configuration file format, and the configuration information for preserving each configuration item is matched with generating
The step of setting file, including:
The solicited message of configuration item is sent to described by the headend equipment according to the configuration file format by request address
Rear end equipment;
After asking successfully, the corresponding response message of the solicited message is fed back to the headend equipment by the rear end equipment;
The headend equipment completes the configuration of configuration item according to the response message, and the configuration information of configuration item is preserved
To generate configuration file.
6. the front and back end development management method according to claim 5 based on interface engine, which is characterized in that the request
Information includes required parameter, request header information and request type, the response message include response data, response header with
And respond style.
7. a kind of front and back end equipment development based on interface engine manages system, which is characterized in that the system comprises can build
The headend equipment and rear end equipment, the headend equipment of vertical communication connection include configuration module and access modules, and the rear end is set
Standby includes interface model development module and interface access address generation module;
The interface model development module is developed to obtain interface model for rear end equipment, and the interface model can be headend equipment
Configuration file format is provided;
The configuration module is used to carry out the configuration of configuration item according to the configuration file format, and preserves each configuration item
Configuration information is to generate configuration file;
The interface access address generation module obtains interface engine for developing, and the configuration is read by the interface engine
The configuration information of each configuration item in file, and according to the configuration information dynamic generation interface access address;
The access modules are used to carry out data access according to the interface access address.
8. the front and back end equipment development according to claim 7 based on interface engine manages system, which is characterized in that described
Rear end equipment further includes data structure acquisition module and field map generation module;
The data structure acquisition module is obtained for designing with the data structure of key-value pair form simulation;
The field map generation module is used for using the interface engine according to each configuration item in the configuration file
Configuration information is to read the data structure, according to the corresponding field mapping of the data structure building for the headend equipment
It uses, the field mapping includes that the mapping of the interface field of the headend equipment and the interface field of the rear end equipment is closed
System.
9. the front and back end equipment development according to claim 8 based on interface engine manages system, which is characterized in that described
Interface engine includes front-end configuration page, and the headend equipment further includes detection module and modified module;
The detection module is used to, when the headend equipment and the rear end equipment dock, map detection institute according to the field
Whether the interface field for stating headend equipment and the rear end equipment matches;
The modified module is used for when the interface field of the headend equipment and the rear end equipment mismatches, in the front end
Configuration page modifies to the data structure.
10. the front and back end equipment development according to claim 7 based on interface engine manages system, which is characterized in that institute
It includes reading unit and generation unit to state interface access address generation module;
The reading unit is used to read using java reflex mechanisms by the interface engine each described in the configuration file
The configuration information of configuration item;
The generation unit is used for initialization data library, the configuration information of each configuration item is inserted into the database, root
According to the configuration information dynamic generation interface access address of each configuration item.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810368902.9A CN108572823B (en) | 2018-04-23 | 2018-04-23 | Front-end and back-end development management method and system based on interface engine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810368902.9A CN108572823B (en) | 2018-04-23 | 2018-04-23 | Front-end and back-end development management method and system based on interface engine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108572823A true CN108572823A (en) | 2018-09-25 |
CN108572823B CN108572823B (en) | 2021-07-23 |
Family
ID=63575138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810368902.9A Active CN108572823B (en) | 2018-04-23 | 2018-04-23 | Front-end and back-end development management method and system based on interface engine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108572823B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110826004A (en) * | 2019-11-05 | 2020-02-21 | 杭州安恒信息技术股份有限公司 | Front-end request data processing method and related device |
CN111026394A (en) * | 2019-12-06 | 2020-04-17 | 光大兴陇信托有限责任公司 | Method for carrying out flow docking by utilizing self-service docking platform |
CN111427568A (en) * | 2020-03-30 | 2020-07-17 | 山东浪潮通软信息科技有限公司 | Interface configuration method and device |
CN111506298A (en) * | 2020-03-10 | 2020-08-07 | 南京行者易智能交通科技有限公司 | Method for carrying out interface visual configuration based on JSON object |
CN111596902A (en) * | 2020-05-26 | 2020-08-28 | 牛津(海南)区块链研究院有限公司 | Method, device, equipment and storage medium for building front-end and back-end development framework |
CN112052038A (en) * | 2020-09-09 | 2020-12-08 | 云账户技术(天津)有限公司 | Method and device for generating front-end interface |
CN113254914A (en) * | 2021-04-24 | 2021-08-13 | 中电长城网际系统应用广东有限公司 | Front-end and back-end synchronous management method and system based on visual display |
CN113282457A (en) * | 2021-05-25 | 2021-08-20 | 山东浪潮通软信息科技有限公司 | Method, device and medium for maintaining heterogeneous system integration interface information |
CN117331848A (en) * | 2023-12-01 | 2024-01-02 | 成都数之联科技股份有限公司 | Front-end and back-end development interaction method and system for Web mall |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101266666A (en) * | 1998-10-16 | 2008-09-17 | 开创网络有限公司 | Document for commerce in trading partner network and interface definition based on same document |
US8266601B2 (en) * | 2008-12-18 | 2012-09-11 | Microsoft Corporation | Framework for interoperability of solvers |
CN106648556A (en) * | 2015-10-28 | 2017-05-10 | 北京国双科技有限公司 | Front end and back end integrated development testing method and device |
CN106776345A (en) * | 2017-01-16 | 2017-05-31 | 北京恒华伟业科技股份有限公司 | A kind of interface delivery system and interface docking method of testing |
-
2018
- 2018-04-23 CN CN201810368902.9A patent/CN108572823B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101266666A (en) * | 1998-10-16 | 2008-09-17 | 开创网络有限公司 | Document for commerce in trading partner network and interface definition based on same document |
US8266601B2 (en) * | 2008-12-18 | 2012-09-11 | Microsoft Corporation | Framework for interoperability of solvers |
CN106648556A (en) * | 2015-10-28 | 2017-05-10 | 北京国双科技有限公司 | Front end and back end integrated development testing method and device |
CN106776345A (en) * | 2017-01-16 | 2017-05-31 | 北京恒华伟业科技股份有限公司 | A kind of interface delivery system and interface docking method of testing |
Non-Patent Citations (1)
Title |
---|
刘挚珂: "前端模拟后端接口返回数据常用的三种方法", 《HTTPS://WWW.JIANSHU.COM/P/CB89D9AC635E》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110826004A (en) * | 2019-11-05 | 2020-02-21 | 杭州安恒信息技术股份有限公司 | Front-end request data processing method and related device |
CN111026394A (en) * | 2019-12-06 | 2020-04-17 | 光大兴陇信托有限责任公司 | Method for carrying out flow docking by utilizing self-service docking platform |
CN111026394B (en) * | 2019-12-06 | 2020-12-15 | 光大兴陇信托有限责任公司 | Method for carrying out flow docking by utilizing self-service docking platform |
CN111506298A (en) * | 2020-03-10 | 2020-08-07 | 南京行者易智能交通科技有限公司 | Method for carrying out interface visual configuration based on JSON object |
CN111427568A (en) * | 2020-03-30 | 2020-07-17 | 山东浪潮通软信息科技有限公司 | Interface configuration method and device |
CN111596902A (en) * | 2020-05-26 | 2020-08-28 | 牛津(海南)区块链研究院有限公司 | Method, device, equipment and storage medium for building front-end and back-end development framework |
CN111596902B (en) * | 2020-05-26 | 2023-03-28 | 牛津(海南)区块链研究院有限公司 | Method, device, equipment and storage medium for building front-end and back-end development framework |
CN112052038A (en) * | 2020-09-09 | 2020-12-08 | 云账户技术(天津)有限公司 | Method and device for generating front-end interface |
CN113254914A (en) * | 2021-04-24 | 2021-08-13 | 中电长城网际系统应用广东有限公司 | Front-end and back-end synchronous management method and system based on visual display |
CN113282457A (en) * | 2021-05-25 | 2021-08-20 | 山东浪潮通软信息科技有限公司 | Method, device and medium for maintaining heterogeneous system integration interface information |
CN117331848A (en) * | 2023-12-01 | 2024-01-02 | 成都数之联科技股份有限公司 | Front-end and back-end development interaction method and system for Web mall |
CN117331848B (en) * | 2023-12-01 | 2024-02-09 | 成都数之联科技股份有限公司 | Front-end and back-end development interaction method and system for Web mall |
Also Published As
Publication number | Publication date |
---|---|
CN108572823B (en) | 2021-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108572823A (en) | Front and back end development management method and system based on interface engine | |
RU2430409C2 (en) | Method of measuring coverage in interconnection structural condition | |
US10284623B2 (en) | Optimized browser rendering service | |
CN109491763B (en) | System deployment method and device and electronic equipment | |
CN106991112B (en) | Information query method and device | |
CN109815119B (en) | APP link channel testing method and device | |
CN111178410A (en) | Illegal picture identification method and device | |
US20230040564A1 (en) | Learning Causal Relationships | |
CN106878370A (en) | The update method and equipment of a kind of local cache | |
CN113761514B (en) | Cloud desktop multi-factor security authentication method and system | |
CN111523030B (en) | Newspaper disc information recommendation method and device and computer readable storage medium | |
CN111061740A (en) | Data synchronization method, equipment and storage medium | |
CN108255434A (en) | Label management method, managing device and computer readable storage medium | |
US11474794B2 (en) | Generating mock services based on log entries | |
CN108762957B (en) | Method and device for generating cloud platform demonstration system | |
CN111882415A (en) | Training method and related device of quality detection model | |
CN114116244A (en) | Data processing method, device and system, electronic equipment and storage medium | |
US20190332402A1 (en) | Annotated responses to learn and generate api simulators | |
CN111210279A (en) | Target user prediction method and device and electronic equipment | |
US20120260235A1 (en) | Response simulator computing apparatuses and methods thereof | |
US11451496B1 (en) | Intelligent, personalized, and dynamic chatbot conversation | |
CN117312349B (en) | Data updating method based on industrial identification and related equipment | |
CN112148419B (en) | Mirror image management method, device and system in cloud platform and storage medium | |
US11611528B2 (en) | Device estimation device, device estimation method, and device estimation program | |
CN107885659A (en) | Method and device, the equipment of request analog response to client |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240103 Address after: 310000, Building 4, 3rd Floor, Building C2, No. 590 Changhe Road, Changhe Street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Hangzhou Tiansoft Technology Co.,Ltd. Address before: 11 / F, building B1, software industry phase 4.1, No.1, Software Park East Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province, 430000 Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |