Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
It referring to Fig.1, is the acquisition methods of the interface service provided in the embodiment of the present application, comprising the following steps:
Step S1 obtains first and makes several tool engineerings;Wherein, described first to make several tool engineerings be that JAVA engineering makes number
Tool engineering;
Step S2, receive to described first make several tool engineerings transformation instruct, to described first make several tool engineerings into
Row transformation, obtain the second of WEB engineering and make several tool engineerings so that described second make several tool engineerings be capable of providing interface clothes
Business;
Step S3 obtains described second obtained after being transformed and makes the interface service that several tool engineerings provide.
In the present embodiment, above scheme is applied to make in the service framework platform of several tools, which is used for
Corresponding serviceization interface is provided, it is above-mentioned that make several tool engineerings be the tool for crawling data, several tools are also referred to as made, it typically is
The engineering program in machine code that JAVA engineering is write.
As described in above-mentioned steps S1, administrative staff can carry out making moving for several tool engineerings in above-mentioned service frame
Enter.Serviceization frame in the present embodiment provides unified entrance, which is to be in a method in skeleton code
Designated position.By the entrance, it is available want to move into user first make several tool engineerings into the frame.This implementation
It is specified in frame in example unified entrance (/mkdata), different to make several tools engineered, all changes since the inlet
It makes, maintains easily management.In the present embodiment, above-mentioned first to make several tool engineerings be that JAVA engineering makes several tool engineerings,
Interface service can not be provided.
Therefore, it as described in above-mentioned steps S2, receives the transformation for making several tool engineerings to described first and instructs, by described the
One, which makes several tools, transform the second of WEB engineering as and makes several tool engineerings;Above-mentioned transformation instruction can be the developer received
Operational order, be also possible to start default script to execute the instruction of transformation movement.In the present embodiment, only web project
Interface service can be provided;As long as above-mentioned first is made, several tools are engineered to make several tool engineerings just at web project, above-mentioned second
It is capable of providing interface service.After transformation, which obtains above-mentioned second, makes several tool engineerings, such as above-mentioned steps S3, above-mentioned service frame
Body panel then its available interface service is used with being supplied to the user of framework platform.
In the present embodiment, when above-mentioned service framework platform is made several tool engineerings to above-mentioned first and is transformed, only make
All plateform systems for making several tool engineerings are managed collectively for one, to provide environment administrative information, make number execution, make several knots
The functions such as data preservation are made in fruit inquiry, and make several tool engineerings itself not in platform, but in the form of interface service
It is supplied to platform calling.It need to only start to integrate code in unified frame inlet, the overall code logic of framework platform is without changing
Become, integration easily and fast, Yi Shixian.The logical code for making several tool engineerings does not need to be integrated into platform, whenever newly-increased
One when making several tool engineerings and moving into said frame platform, only need to do above-mentioned a small amount of configuration and change, so that frame is flat
Platform more light weight, maintenance cost substantially reduce.
Referring to Fig. 2, in one embodiment, described second obtained after above-mentioned acquisition transformation makes connecing for several tool engineerings offers
After the step S3 of oral business, comprising:
Step S40 receives configuration-direct, to configure the corresponding described second front end page for making several tool engineerings;And in number
The beacon information for making several tool engineerings to described second is added according to library;Wherein, the front end page makes several parameters, institute for inputting
Stating beacon information includes described second making the type of several tool engineerings, source-information.
Specifically, introduce it is above-mentioned make the moving into of several tools after, the change of said frame platform is as follows:
1, the second front end page for making several tool engineerings is added, in the displayed page of framework platform in order to provide several ginsengs are made
Several fills in.The interface service for making several tools is background service, therefore, for above-mentioned service, above-mentioned makes several tools adding
Interface service after, framework platform can add corresponding front-end interface on the page, and user will use the interface for making several tools
When service, needs to fill in front end page and make several parameters, such as address etc. makes what several tool interface services were filled according to these
Several parameters are made to go to obtain corresponding data.
2, corresponding config, pojo, controller file is added by specification in framework platform.Above-mentioned file is usual
It is that developer adds, is also possible to by default script automatic running to add above-mentioned file.
3, data line (i.e. beacon information) is added in the database, indicates this and newly-increased makes several tool engineerings.
In the present embodiment, it is above-mentioned each make several tool engineerings by respectively develop the tool people safeguard.When making several tool works
When Cheng Benshen code logic changes, the people of corresponding maintenance safeguards that maintenance need to only be paid close attention to and make several tools itself every time
Code logic, framework platform is without change.Only enter to join additions and deletions, then this for needing to modify platform makes the preceding end page of several tools
Face and notification platform carry out the modification of front end.
It is in one embodiment, above-mentioned to make the step of several tool engineerings are transformed to described first, comprising:
A, by run method by described first make several tool engineerings make that several logical codes are compiled as WEB engineering make number
Logical code;
In the present embodiment, in above-mentioned unified entrance/mkdata, obtains the first of above-mentioned JAVA engineering and makes several tool engineerings,
And it is edited by several logical codes of making that run method makes several tool engineerings to first;For the same work for making several functions
Tool, JAVA engineering and WEB engineering make that several logical codes are slightly different, therefore it may only be necessary to carry out the simple editing of code.
Specifically, several logical codes of making that described first makes several tool engineerings are compiled as WEB work above by run method
Journey includes: the step of making several logical codes
Obtain all code snippets for including in the source code that described first makes several tool engineerings;
Each code snippet is sequentially input to Code Edit area, and by the corresponding thread body of run method to each institute
State the grammer conversion that code snippet carries out WEB engineering;
What each code snippet for obtaining after grammer is converted carried out that successively combination obtains the WEB engineering makes several logic generations
Code.
The interface that described first makes several tool engineerings is entered ginseng mode and is revised as custom object to enter ginseng mode by b;It is above-mentioned enter
Ginseng mode refer to it is above-mentioned make several tools and obtain mode into ginseng, be usually to be entered with interface manner in existing JAVA engineering
Ginseng;And in WEB engineering, usually using custom object as method parameter;Therefore it needs above-mentioned JAVA project transformation into WEB work
Journey then needs correspondingly to change it and enters ginseng mode.
The return value mode that described first makes several tool engineerings is revised as returning to map object by c.
Accordingly, due to JAVA engineering and WEB engineering to enter ginseng mode different, it is also different to go out ginseng mode, i.e. return value
Mode it is different, it is to be back to interface that ginseng mode is gone out in JAVA engineering, and it is to return to map object that ginseng mode is gone out in WEB engineering.map
Object is the set of key/value pair, and one, the key value of element one in map object matches storage, and key is cannot be duplicate,
But the corresponding value of key can repeat.
Preferably, log object can also be enhanced, so that log printing can echo framework platform.
In the present embodiment, by first make several tools transform as the second of WEB engineering make several tool engineerings during, mainly
It is to be transformed for the difference of JAVA engineering and WEB engineering, in fact, JAVA engineering and WEB engineering make several works
Have roughly the same, only makes several logical codes at it, enters to participate in out to join upper slightly different, therefore make corresponding adjustment.
In one embodiment, after the step S1 of several tool engineerings is made in above-mentioned acquisition first, comprising:
It obtains described first and makes the common configuration information of several tool engineerings, and saved;Wherein, the common configuration letter
Breath includes version information, database information.
Local makes several tool engineerings (i.e. above-mentioned first makes several tool engineerings), and corresponding common configuration information is with this
What the form of ground document was saved and was safeguarded.In the present embodiment, when several tool engineerings are made in acquisition first, also obtains first and make several tools
The common configuration information of engineering so that first make several tool engineerings move into framework platform be transformed into second make several tool engineerings after,
These common configuration informations can uniformly be safeguarded on framework platform, no longer need to use its original local document.In this way,
When different make (such as environmental information, database connection string, account when several tool requirement of engineering use identical common configuration information
Password etc.), it can share using the portion safeguarded on platform, otherwise each making several tool engineerings will respectively safeguard, it appears
It is pretty troublesome, it is also not easy to update.
In another embodiment, described second obtained after above-mentioned acquisition transformation makes the interface service that several tool engineerings provide
Step S3 after, comprising:
Step S4 receives management user to the search instruction of the interface service, and shows that search result is corresponding described
Interface service;
Step S5 receives management user and instructs to the addition of the interface service in search result, and to the management
The addition permission of user is verified;When being verified, the interface service is added in the customized page.
In the present embodiment, each administrative staff or tester log in above-mentioned framework platform, and it is first fixed to default after login
Position is into the corresponding test module of the tester, and then the administrative staff go newly-increased again and configure above-mentioned interface service.In this way,
Each user only needs to pay close attention to the interface service of oneself addition, and safeguards to it;When need add call other people or
When the interface service of other systems, simultaneously Selection and call can be scanned for by the search column that system provides.
Specifically, administrative staff can input keyword and carry out fuzzy query when searching interface services, can also be in institute
Have in the interface service deposited and is selected.Administrative staff are when the interface service is not belonging to oneself in newly-increased interface service
When the functional category of system, it can first go whether have the interface service for realizing similar functions under inquiry, if so, then without repeating
Increase the interface service newly.
In the present embodiment, the above-mentioned interface service got be may be added in said frame platform, and management user can
To carry out newly-increased or delete operation to it;In this framework platform, the user with administration authority can add according to demand
Or delete above-mentioned interface service.Therefore, instructing in reception management user to the addition of the interface service can also be to the pipe
The administration authority of reason user is verified, and specifically, can be the account permission for verifying the account executive.
In another embodiment, described to receive the transformation instruction for making several tool engineerings to described first, it is made to described first
Number tool engineerings be transformed, obtain the second of WEB engineering and make several tool engineerings so that described second make several tool engineerings can
After the step S2 that interface service is provided, comprising:
Step S201 obtains described second and makes the corresponding code block of several tool engineerings, the code block is added to default
WEB container in, and add on the WEB container code label of the code block;
Step S202, according to the code label for the time and the code block for adding the code label, using default
Algorithm generates Crypted password;
Step S203 encrypts the WEB container with the Crypted password, and by the encrypted WEB container
It is stored in the database.
In order to enable above-mentioned second makes several tool engineerings and can be recycled, in the present embodiment, such as above-mentioned steps
Described in S201, the corresponding code block of several tool engineerings is made by described second and is extracted, and carry out packing processing and be added to one
In a preset WEB container;In order to distinguish to the code block in the WEB container, a code is added on the WEB container
Label, the code label are a label of corresponding above-mentioned code block;Such as it can be the label of code block type, make several classes of types
Label etc..
As described in above-mentioned steps S202, according to time and the code mark for adding code label on above-mentioned WEB container
Label generate a Crypted password using preset algorithm;Above-mentioned preset algorithm can be random algorithm, be also possible to by the upper time with
And code label carries out permutation and combination at random, generates the random Crypted password of milli.For example, in one embodiment, on
The code label according to the time and the code block for adding the code label is stated, Crypted password is generated using preset algorithm
The step of, comprising: the multiple target words for obtaining the spelling information of the code label, and being randomly selected in the spelling information
Symbol;The spelling information is small English character;Switch the target character as capitalization, obtains corresponding switching character;By institute
State switching character, the number spelt in information in the time of non-selected character and the addition code label carries out
Random alignment combination, generates corresponding Crypted password.
As described in above-mentioned steps S203, above-mentioned WEB container is encrypted with above-mentioned Crypted password, and will be encrypted
Above-mentioned WEB container storage is in the database, convenient for needing to make the generation of several tool engineerings next time using correspondence above-mentioned second again
When code, it can be directly taken out from above-mentioned database to use.Meanwhile in order to protect personal achievement, to above-mentioned code
Block has carried out cryptographic operation, avoids arbitrarily being stolen use.
In conclusion for the acquisition methods of the interface service provided in the embodiment of the present application, comprising: obtain first and make several works
Has engineering;Wherein, described first to make several tool engineerings be that JAVA engineering makes several tool engineerings;Reception makes several works to described first
Have the transformation instruction of engineering, makes several tool engineerings to described first and be transformed, obtain the second of WEB engineering and make several tool works
Journey, so that described second makes several tool engineerings and be capable of providing interface service;It obtains described second obtained after being transformed and makes several tools
The interface service that engineering provides.The application is transformed several tools of making of JAVA engineering, and obtain WEB engineering makes several tools,
Without integrating the code for making several tools, difficulty is integrated in reduction, and reduces maintenance cost.
Referring to Fig. 3, a kind of acquisition device of interface service is additionally provided in one embodiment of the application, comprising:
First acquisition unit 10 makes several tool engineerings for obtaining first;Wherein, described first several tool engineerings are made it is
JAVA engineering makes several tool engineerings;
Unit 20 is transformed, for receiving the transformation instruction for making several tool engineerings to described first, makes several works to described first
Tool engineering is transformed, and is obtained the second of WEB engineering and is made several tool engineerings, so that described second makes several tool engineerings and be capable of providing
Interface service;
Second acquisition unit 30 takes for obtaining the described second interface for making several tool engineerings offers obtained after transformation
Business.
In the present embodiment, above-mentioned apparatus is applied to make in the service framework platform of several tools, which is used for
There is provided corresponding serviceization interface, above-mentioned to make several tool engineerings be the tool for crawling data, and it typically is JAVA engineerings to be write
Engineering program in machine code.
As described in above-mentioned first acquisition unit 10, administrative staff can carry out making several tools in above-mentioned service frame
Engineering is moved into.Serviceization frame in the present embodiment provides unified entrance, the entrance be one in skeleton code
Designated position in method.By the entrance, it is available want to move into user first make several tool works into the frame
Journey.It is specified in frame in the present embodiment unified entrance (/mkdata), different to make several tools engineered, all enters from this
Start to be transformed at mouthful, maintains easily management.In the present embodiment, above-mentioned first to make several tool engineerings be that java engineering makes several works
Have engineering, interface service can not be provided.
Therefore, it as described in above-mentioned transformation unit 20, receives the transformation for making several tool engineerings to described first and instructs, by institute
It states first and makes several tools and transform the second of WEB engineering as and make several tool engineerings;Above-mentioned transformation instruction can be the exploitation received
The operational order of personnel is also possible to start instruction of the default script to execute transformation movement.In the present embodiment, only web work
Cheng Caineng provides interface service;As long as above-mentioned first is made, several tools are engineered to make several tool works at web project, above-mentioned second
Journey is just capable of providing interface service.After transformation, which obtains above-mentioned second, makes several tool engineerings, above-mentioned second acquisition unit 30 is then
Its available interface service is used with being supplied to the user of framework platform.
In the present embodiment, when above-mentioned service framework platform is made several tool engineerings to above-mentioned first and is transformed, only make
All plateform systems for making several tool engineerings are managed collectively for one, to provide environment administrative information, make number execution, make several knots
The functions such as data preservation are made in fruit inquiry, and make several tool engineerings itself not in platform, but in the form of interface service
It is supplied to platform calling.It need to only start to integrate code in unified frame inlet, the overall code logic of framework platform is without changing
Become, integration easily and fast, Yi Shixian.The logical code for making several tool engineerings does not need to be integrated into platform, whenever newly-increased
One when making several tool engineerings and moving into said frame platform, only need to do above-mentioned a small amount of configuration and change, so that frame is flat
Platform more light weight, maintenance cost substantially reduce.
Referring to Fig. 4, in one embodiment, the acquisition device of above-mentioned interface service, further includes:
Configuration unit 40, for receiving configuration-direct, to configure the corresponding described second front end page for making several tool engineerings;
And the beacon information for making several tool engineerings to described second is added in database;Wherein, the front end page makes number for inputting
Parameter, the beacon information include described second making the type of several tool engineerings, source-information.
Specifically, introduce it is above-mentioned make the moving into of several tools after, the change of said frame platform is as follows:
1, the second front end page for making several tool engineerings is added, in the displayed page of framework platform in order to provide several ginsengs are made
Several fills in.The interface service for making several tools is background service, therefore, for above-mentioned service, above-mentioned makes several tools adding
Interface service after, framework platform can add corresponding front-end interface on the page, and user will use the interface for making several tools
When service, needs to fill in front end page and make several parameters, such as address etc. makes what several tool interface services were filled according to these
Several parameters are made to go to obtain corresponding data.
2, corresponding config, pojo, controller file is added by specification in framework platform.Above-mentioned file is usual
It is that developer adds, is also possible to by default script automatic running to add above-mentioned file.
3, data line (i.e. beacon information) is added in the database, indicates this and newly-increased makes several tool engineerings.
In the present embodiment, it is above-mentioned each make several tool engineerings by respectively develop the tool people safeguard.When making several tool works
When Cheng Benshen code logic changes, the people of corresponding maintenance safeguards that maintenance need to only be paid close attention to and make several tools itself every time
Code logic, framework platform is without change.Only enter to join additions and deletions, then this for needing to modify platform makes the preceding end page of several tools
Face and notification platform carry out the modification of front end.
In one embodiment, the transformation unit 20, which is made several tool engineerings to described first and is transformed, specifically includes:
A, by run method by described first make several tool engineerings make that several logical codes are compiled as WEB engineering make number
Logical code;
In the present embodiment, in above-mentioned unified entrance/mkdata, obtains the first of above-mentioned JAVA engineering and makes several tool engineerings,
And it is edited by several logical codes of making that run method makes several tool engineerings to first;For the same work for making several functions
Tool, JAVA engineering and WEB engineering make that several logical codes are slightly different, therefore it may only be necessary to carry out the simple editing of code.
Specifically, several logical codes of making that described first makes several tool engineerings are compiled as WEB work above by run method
The process for making several logical codes of journey, comprising:
Obtain all code snippets for including in the source code that described first makes several tool engineerings;
Each code snippet is sequentially input to Code Edit area, and by the corresponding thread body of run method to each institute
State the grammer conversion that code snippet carries out WEB engineering;
What each code snippet for obtaining after grammer is converted carried out that successively combination obtains the WEB engineering makes several logic generations
Code.
The interface that described first makes several tool engineerings is entered ginseng mode and is revised as custom object to enter ginseng mode by b;It is above-mentioned enter
Ginseng mode refer to it is above-mentioned make several tools and obtain mode into ginseng, be usually to be entered with interface manner in existing JAVA engineering
Ginseng;And in WEB engineering, usually using custom object as method parameter;Therefore it needs above-mentioned JAVA project transformation into WEB work
Journey then needs correspondingly to change it and enters ginseng mode.
The return value mode that described first makes several tool engineerings is revised as returning to map object by c.
Accordingly, due to JAVA engineering and WEB engineering to enter ginseng mode different, it is also different to go out ginseng mode, i.e. return value
Mode it is different, it is to be back to interface that ginseng mode is gone out in JAVA engineering, and it is to return to map object that ginseng mode is gone out in WEB engineering.map
Object is the set of key/value pair, and one, the key value of element one in map object matches storage, and key is cannot be duplicate,
But the corresponding value of key can repeat.
Preferably, log object can also be enhanced, so that log printing can echo framework platform.
In the present embodiment, unit 20 is transformed by first makes several tools and transform the second of WEB engineering as and make several tool engineerings
In the process, it is transformed primarily directed to the difference of JAVA engineering and WEB engineering, in fact, JAVA engineering and WEB work
Journey to make several tools roughly the same, only make several logical codes at it, enter to participate in out to join upper slightly different, therefore make corresponding
Adjustment.
In one embodiment, the acquisition device of above-mentioned interface service, further includes:
Third acquiring unit is made the common configuration information of several tool engineerings for obtaining described first, and is saved;Its
In, the common configuration information includes version information, database information.
Local makes several tool engineerings (i.e. above-mentioned first makes several tool engineerings), and corresponding common configuration information is with this
What the form of ground document was saved and was safeguarded.In the present embodiment, when several tool engineerings are made in third acquiring unit acquisition first, also obtain
First makes the common configuration information of several tool engineerings, so that first makes several tool engineerings and move into framework platform and be transformed into second and make number
After tool engineering, these common configuration informations can uniformly be safeguarded on framework platform, no longer need to using its original
Ground document.In this way, when different make (such as environmental information, data when several tool requirement of engineering use identical common configuration information
Library connects string, account number cipher etc.), it can share using the portion safeguarded on platform, otherwise each making several tool engineerings will
Respectively maintenance, it appears it is pretty troublesome, it is also not easy to update.
In another embodiment, the acquisition device of above-mentioned interface service, further includes:
Search unit for receiving management user to the search instruction of the interface service, and shows that search result is corresponding
The interface service;
Adding unit instructs the addition of the interface service in search result for receiving management user, and to institute
The addition permission for stating management user is verified;When being verified, the interface service is added in the customized page.
In the present embodiment, each administrative staff or tester log in above-mentioned framework platform, and it is first fixed to default after login
Position is into the corresponding test module of the tester, and then the administrative staff go newly-increased again and configure above-mentioned interface service.In this way,
Each user only needs to pay close attention to the interface service of oneself addition, and safeguards to it;When need add call other people or
When the interface service of other systems, search unit can be scanned for by the search column that system provides and Selection and call.
Specifically, administrative staff can input keyword and carry out fuzzy query when searching interface services, can also be in institute
Have in the interface service deposited and is selected.Administrative staff are when the interface service is not belonging to oneself in newly-increased interface service
When the functional category of system, it can first go whether have the interface service for realizing similar functions under inquiry, if so, then without repeating
Increase the interface service newly.
In the present embodiment, the above-mentioned interface service got can be added into said frame platform by adding unit
In, management user can increase newly to it or delete operation;In this framework platform, the user with administration authority can be with
According to demand, add or delete above-mentioned interface service.Therefore, addition instruction of the management user to the interface service is being received
The administration authority of management user can also be verified, specifically, can be the account permission for verifying the account executive.
In another embodiment, the acquisition device of the interface service, further includes:
4th acquiring unit makes the corresponding code block of several tool engineerings for obtaining described second, the code block is added
It adds in preset WEB container, and adds the code label of the code block on the WEB container;
Generation unit is used for the code label according to the time and the code block for adding the code label
Preset algorithm generates Crypted password;
Encryption unit, for being encrypted with the Crypted password to the WEB container, and by the encrypted WEB
Container storage is in the database.
In order to enable above-mentioned second makes several tool engineerings and can be recycled, in the present embodiment, such as the above-mentioned 4th obtain
It takes described in unit, makes the corresponding code block of several tool engineerings for described second and extract, and carry out packing processing and be added to
In one preset WEB container;In order to distinguish to the code block in the WEB container, a generation is added on the WEB container
Code label, the code label are a label of corresponding above-mentioned code block;Such as can be the label of code block type, make it is several classes of
The label etc. of type.
As described in above-mentioned generation unit, according to time and the code mark for adding code label on above-mentioned WEB container
Label generate a Crypted password using preset algorithm;Above-mentioned preset algorithm can be random algorithm, be also possible to by the upper time with
And code label carries out permutation and combination at random, generates the random Crypted password of milli.For example, in one embodiment, on
Generation unit is stated according to the code label for the time and the code block for adding the code label, is generated using preset algorithm
The process of Crypted password, comprising: obtain the spelling information of the code label, and be randomly selected more in the spelling information
A target character;The spelling information is small English character;Switch the target character as capitalization, obtains corresponding switching word
Symbol;It will be in the time of non-selected character and the addition code label in the switching character, the spelling information
Number carries out random alignment combination, generates corresponding Crypted password.
As described in above-mentioned encryption unit, above-mentioned WEB container is encrypted with above-mentioned Crypted password, and will be encrypted
Above-mentioned WEB container storage is in the database, convenient for needing to make the generation of several tool engineerings next time using correspondence above-mentioned second again
When code, it can be directly taken out from above-mentioned database to use.Meanwhile in order to protect personal achievement, to above-mentioned code
Block has carried out cryptographic operation, avoids arbitrarily being stolen use.
In conclusion for the acquisition device of the interface service provided in the embodiment of the present application, comprising: obtain first and make several works
Has engineering;Wherein, described first to make several tool engineerings be that JAVA engineering makes several tool engineerings;Reception makes several works to described first
Have the transformation instruction of engineering, makes several tool engineerings to described first and be transformed, obtain the second of WEB engineering and make several tool works
Journey, so that described second makes several tool engineerings and be capable of providing interface service;It obtains described second obtained after being transformed and makes several tools
The interface service that engineering provides.The application is transformed several tools of making of JAVA engineering, and obtain WEB engineering makes several tools,
Without integrating the code for making several tools, difficulty is integrated in reduction, and reduces maintenance cost.
Referring to Fig. 5, a kind of computer equipment is also provided in the embodiment of the present application, which can be server,
Its internal structure can be as shown in Figure 5.The computer equipment includes processor, the memory, network connected by system bus
Interface and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program
And database.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.
The database of the computer equipment makes the data such as several instrumentation codes for storing.The network interface of the computer equipment be used for it is outer
The terminal in portion passes through network connection communication.A kind of acquisition side of interface service is realized when the computer program is executed by processor
Method.
Above-mentioned processor executes the step of acquisition methods of above-mentioned interface service, comprising:
It obtains first and makes several tool engineerings;Wherein, described first to make several tool engineerings be that JAVA engineering makes several tool works
Journey;
It receives the transformation for making several tool engineerings to described first to instruct, makes several tool engineerings to described first and be transformed,
It obtains the second of WEB engineering and makes several tool engineerings, so that described second makes several tool engineerings and be capable of providing interface service;
It obtains described second obtained after being transformed and makes the interface service that several tool engineerings provide.
In one embodiment, described second obtained after above-mentioned processor acquisition transformation makes the interface that several tool engineerings provide
After the step of service, comprising:
Configuration-direct is received, to configure the corresponding described second front end page for making several tool engineerings;And it is added in database
The beacon information for making several tool engineerings to described second;Wherein, the front end page makes several parameters for inputting, the mark letter
Breath makes the type of several tool engineerings, source-information including described second.
In one embodiment, above-mentioned processor makes the step of several tool engineerings are transformed to described first, comprising:
By run method by described first make several tool engineerings make several logical codes be compiled as WEB engineering make number patrol
Collect code;
It the interface that described first makes several tool engineerings is entered ginseng mode is revised as custom object to enter ginseng mode;
The return value mode that described first makes several tool engineerings is revised as to return to map object.
In one embodiment, above-mentioned processor by run method by described first make several tool engineerings make several logic generations
Code is compiled as the step of making several logical codes of WEB engineering, comprising:
Obtain all code snippets for including in the source code that described first makes several tool engineerings;
Each code snippet is sequentially input to Code Edit area, and by the corresponding thread body of run method to each institute
State the grammer conversion that code snippet carries out WEB engineering;
What each code snippet for obtaining after grammer is converted carried out that successively combination obtains the WEB engineering makes several logic generations
Code.
In one embodiment, after the step of several tool engineerings are made in above-mentioned processor acquisition first, comprising:
It obtains described first and makes the common configuration information of several tool engineerings, and saved;Wherein, the common configuration letter
Breath includes version information, database information.
In one embodiment, described second obtained after above-mentioned processor acquisition transformation makes the interface that several tool engineerings provide
After the step of service, comprising:
Management user is received to the search instruction of the interface service, and shows the corresponding interface clothes of search result
Business;
It receives management user to instruct the addition of the interface service in search result, and the management user is added
Weighting limit is verified;When being verified, the interface service is added in the customized page.
In one embodiment, above-mentioned processor receives the transformation for making several tool engineerings to described first and instructs, to described the
One, which makes several tool engineerings, is transformed, and obtains the second of WEB engineering and makes several tool engineerings, so that described second makes several tool engineerings
After the step of being capable of providing interface service, comprising:
It obtains described second and makes the corresponding code block of several tool engineerings, the code block is added to preset WEB container
In, and add on the WEB container code label of the code block;
According to the code label for the time and the code block for adding the code label, is generated and added using preset algorithm
Password;
The WEB container is encrypted with the Crypted password, and by the encrypted WEB container storage in described
In database.
In one embodiment, above-mentioned processor is according to the time of the addition code label and the code of the code block
Label, using preset algorithm generate Crypted password the step of, comprising:
The multiple target characters for obtaining the spelling information of the code label, and being randomly selected in the spelling information;
The spelling information is small English character;
Switch the target character as capitalization, obtains corresponding switching character;
By the time of non-selected character and the addition code label in the switching character, the spelling information
In number carry out random alignment combination, generate corresponding Crypted password.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, calculates
Machine program realizes a kind of acquisition methods of interface service when being executed by processor, specifically:
It obtains first and makes several tool engineerings;Wherein, described first to make several tool engineerings be that JAVA engineering makes several tool works
Journey;
It receives the transformation for making several tool engineerings to described first to instruct, makes several tool engineerings to described first and be transformed,
It obtains the second of WEB engineering and makes several tool engineerings, so that described second makes several tool engineerings and be capable of providing interface service;
It obtains described second obtained after being transformed and makes the interface service that several tool engineerings provide.
In one embodiment, described second obtained after above-mentioned processor acquisition transformation makes the interface that several tool engineerings provide
After the step of service, comprising:
Configuration-direct is received, to configure the corresponding described second front end page for making several tool engineerings;And it is added in database
The beacon information for making several tool engineerings to described second;Wherein, the front end page makes several parameters for inputting, the mark letter
Breath makes the type of several tool engineerings, source-information including described second.
In one embodiment, above-mentioned processor makes the step of several tool engineerings are transformed to described first, comprising:
By run method by described first make several tool engineerings make several logical codes be compiled as WEB engineering make number patrol
Collect code;
It the interface that described first makes several tool engineerings is entered ginseng mode is revised as custom object to enter ginseng mode;
The return value mode that described first makes several tool engineerings is revised as to return to map object.
In one embodiment, above-mentioned processor by run method by described first make several tool engineerings make several logic generations
Code is compiled as the step of making several logical codes of WEB engineering, comprising:
Obtain all code snippets for including in the source code that described first makes several tool engineerings;
Each code snippet is sequentially input to Code Edit area, and by the corresponding thread body of run method to each institute
State the grammer conversion that code snippet carries out WEB engineering;
What each code snippet for obtaining after grammer is converted carried out that successively combination obtains the WEB engineering makes several logic generations
Code.
In one embodiment, after the step of several tool engineerings are made in above-mentioned processor acquisition first, comprising:
It obtains described first and makes the common configuration information of several tool engineerings, and saved;Wherein, the common configuration letter
Breath includes version information, database information.
In one embodiment, described second obtained after above-mentioned processor acquisition transformation makes the interface that several tool engineerings provide
After the step of service, comprising:
Management user is received to the search instruction of the interface service, and shows the corresponding interface clothes of search result
Business;
It receives management user to instruct the addition of the interface service in search result, and the management user is added
Weighting limit is verified;When being verified, the interface service is added in the customized page.
In one embodiment, above-mentioned processor receives the transformation for making several tool engineerings to described first and instructs, to described the
One, which makes several tool engineerings, is transformed, and obtains the second of WEB engineering and makes several tool engineerings, so that described second makes several tool engineerings
After the step of being capable of providing interface service, comprising:
It obtains described second and makes the corresponding code block of several tool engineerings, the code block is added to preset WEB container
In, and add on the WEB container code label of the code block;
According to the code label for the time and the code block for adding the code label, is generated and added using preset algorithm
Password;
The WEB container is encrypted with the Crypted password, and by the encrypted WEB container storage in described
In database.
In one embodiment, above-mentioned processor is according to the time of the addition code label and the code of the code block
Label, using preset algorithm generate Crypted password the step of, comprising:
The multiple target characters for obtaining the spelling information of the code label, and being randomly selected in the spelling information;
The spelling information is small English character;
Switch the target character as capitalization, obtains corresponding switching character;
By the time of non-selected character and the addition code label in the switching character, the spelling information
In number carry out random alignment combination, generate corresponding Crypted password.
In conclusion for the acquisition methods of the interface service provided in the embodiment of the present application, device, computer equipment and depositing
Storage media, comprising: obtain first and make several tool engineerings;Wherein, described first to make several tool engineerings be that JAVA engineering makes several works
Has engineering;It receives the transformation for making several tool engineerings to described first to instruct, makes several tool engineerings to described first and be transformed, obtain
Several tool engineerings are made to the second of WEB engineering, so that described second makes several tool engineerings and be capable of providing interface service;Obtain transformation
Described second obtained afterwards makes the interface service that several tool engineerings provide.The application changes several tools of making of JAVA engineering
It makes, obtain WEB engineering makes several tools, and without integrating the code for making several tools, difficulty is integrated in reduction, and reduces maintenance cost.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can store and a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
Any reference used in provided herein and embodiment to memory, storage, database or other media,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM can by diversified forms
, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), increasing
Strong type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and
And further include the other elements being not explicitly listed, or further include for this process, device, article or method institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, device of element, article or method.
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations
Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations
Technical field, similarly include in the scope of patent protection of the application.