CN110134432A - The bug restorative procedure of application, device, computer equipment - Google Patents

The bug restorative procedure of application, device, computer equipment Download PDF

Info

Publication number
CN110134432A
CN110134432A CN201910319586.0A CN201910319586A CN110134432A CN 110134432 A CN110134432 A CN 110134432A CN 201910319586 A CN201910319586 A CN 201910319586A CN 110134432 A CN110134432 A CN 110134432A
Authority
CN
China
Prior art keywords
class file
file
class
specify information
last modification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910319586.0A
Other languages
Chinese (zh)
Inventor
宋杰
周博文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910319586.0A priority Critical patent/CN110134432A/en
Publication of CN110134432A publication Critical patent/CN110134432A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

This application involves system function optimization analytic technique field, in particular to bug restorative procedure, the device, computer equipment of a kind of application.The described method includes: receiving the first class file of user's input, first class file is for repairing the bug in the class file run in application server;First class file is copied to using in deployment container;The specify information of first class file and the specify information of the second class file are obtained, second class file is first class file class file to be repaired;The specify information of first class file is compared with the specify information of second class file, judges whether first class file meets hot loading environment;If first class file meets hot loading environment, hot load is carried out to first class file, is loaded into the application server, instead of second class file.It solves existing bug to repair, needs the time in the business free time, the problem of released version is repaired.

Description

The bug restorative procedure of application, device, computer equipment
Technical field
This application involves system function optimization technical field, in particular to bug restorative procedure, device, the meter of a kind of application Calculate machine equipment.
Background technique
The online federation of Requirement Iteration occur once in a while it is some be related to the serious bug of business, even if however new version it is online after most The publication of urgent version can just be walked and repair by being also required to until online second day After Hours business free time to bug code revision fastly.
Apply for content
In view of the shortcomings of the prior art, the application proposes a kind of bug restorative procedure of application, device, computer equipment, it is intended to It solves existing bug to repair, needs the time in the business free time, the problem of released version is repaired.
The technical solution that the application proposes is:
A kind of bug restorative procedure of application, which comprises
The first class file of user's input is received, first class file is for repairing the class run in application server Bug in file;First class file is copied to using in deployment container;
The specify information of first class file and the specify information of the second class file are obtained, second class file is institute State the first class file class file to be repaired;
The specify information of first class file is compared with the specify information of second class file, according to comparing As a result judge whether first class file meets hot loading environment;
If first class file meets hot loading environment, to first class file using in deployment container Hot load is carried out, is loaded into the application server, instead of second class file.
Further, the specify information of the specify information and the second class file that obtain first class file the step of In, comprising:
Obtain the last modification time of first class file;The label of user's input is received, the label is pair The mark of class file in the application server;
Class file corresponding with the label is searched in the application server, obtains the second class file;
Obtain the last modification time of second class file.
Further, the specify information of the specify information and the second class file that obtain first class file the step of In, comprising:
Obtain the last modification time and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class text Part;
Obtain the last modification time of second class file.
Further, the specify information by first class file and second class file specify information into Row compares, and is judged in the step of whether first class file meets hot loading environment according to comparison result, comprising:
The last modification time of first class file is compared with the last modification time of second class file;
If the last modification time of first class file is sentenced after the last modification time of second class file Fixed first class file meets hot loading environment;
If the last modification time of first class file before the last modification time of second class file, or The last modification time of first class file is identical as the last modification time of second class file, then determines first kind text Part does not meet hot loading environment.
Further, the specify information of the specify information and the second class file that obtain first class file the step of In, comprising:
Obtain the file content and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class text Part;
Obtain the file content of second class file;
It is compared in the specify information by first class file with the specify information of second class file, root Judge in the step of whether first class file meets hot loading environment according to comparison result, comprising:
The file content of first class file is compared with the file content of second class file;
If the file content of first class file is not identical as the file content of second class file, first is determined Class file meets hot loading environment;
If the file content of first class file is identical as the file content of second class file, the first kind is determined File does not meet hot loading environment.
Further, if meeting hot loading environment in first class file, in the application deployment container First class file carry out hot load, be loaded into the application server, after the step of second class file, Include:
Whether the last modification time for detecting first class file changes;
If no change has taken place, current time is obtained;
According to the time difference of the current time and the last modification time of first class file, obtain at the first time Value;
The first time value is compared with preset time threshold;
If the first time value is greater than the preset time threshold, the user is prompted to replace the application server In second class file.
Further, if meeting hot loading environment in first class file, in the application deployment container First class file carry out hot load, be loaded into the application server, after the step of second class file, Include:
Whether the last modification time for detecting second class file changes;
If changing, stop carrying out hot load to first class file.
The application also provides a kind of bug prosthetic device of application, and described device includes:
Receiving module, for receiving the first class file of user's input, first class file is for repairing application clothes The bug in class file run in business device;
Replication module, for being copied to first class file using deployment container;
Module is obtained, it is described for obtaining the specify information of first class file and the specify information of the second class file Second class file is first class file class file to be repaired;
Judgment module, for carrying out the specify information of the specify information of first class file and second class file Compare, judges whether first class file meets hot loading environment according to comparison result;
Hot loading module, if meeting hot loading environment for first class file, in the application deployment container First class file carry out hot load, be loaded into the application server, instead of second class file.
The application also provides a kind of computer equipment, including memory and processor, and the memory is stored with computer The step of program, the processor realizes method described in any of the above embodiments when executing the computer program.
The application also provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey The step of method described in any of the above embodiments is realized when sequence is executed by processor.
According to above-mentioned technical solution, the first class file is copied to and answers the utility model has the advantages that the first class file of reception by the application With deployment container, judge whether the first class file meets hot loading environment, if the first class file meets hot loading environment, Hot load is carried out to the first class file, is loaded into application server, instead of the second class file, does not need to restart application server, Repair the bug of application, it is intended to solve existing bug and repair, need the time in the business free time, what released version was repaired asks Topic.
Detailed description of the invention
Fig. 1 is the flow chart using the bug restorative procedure of application provided by the embodiments of the present application;
Fig. 2 is the functional block diagram using the bug prosthetic device of application provided by the embodiments of the present application;
Fig. 3 is the structural schematic block diagram using computer equipment provided by the embodiments of the present application.
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, and It is not used in restriction the application.
As shown in Figure 1, the embodiment of the present application proposes a kind of bug restorative procedure of application, the described method comprises the following steps:
Step S101, the first class file of user's input is received, first class file is for repairing application server Bug in the class file of middle operation.
First class file can be user and directly input, and is also possible to user and inputs indirectly, and the mode inputted indirectly includes: The compiling of java file is converted into class file by compiler, obtains first kind text by the java file for receiving user's input Part.After application is online, there is bug in the code of application some or some classes, and user repairs code, forms class File, to obtain the first class file.
Step S102, first class file is copied to using in deployment container.
Step S103, the specify information of the specify information of acquisition first class file and the second class file, described second Class file is first class file class file to be repaired.
Second class file be it is corresponding with the first class file, the second class file be run in application server class text Part, and the class file, there are bug, the first class file is repaired to the class file.Reparation refers to application server The first class file is loaded, instead of the second class file, in this way, application server movement is the first class file, it is no longer the second class File, so as to the bug of the second class file institute band before repairing.
Step S104, the specify information of first class file and the specify information of second class file are compared Compared with judging whether first class file meets hot loading environment according to comparison result.
Judge hot loading environment can there are many judgment mode, according to different judgment modes, the required first kind The specify information of file, the specify information of the second class file are different.
In the present embodiment, in step s 103, comprising:
Obtain the last modification time of first class file;
The label of user's input is received, the label is the mark to the class file in the application server;
Class file corresponding with the label is searched in the application server, obtains the second class file;
Obtain the last modification time of second class file.
The specify information of first class file includes last modification time, and the specify information of the second class file includes last modification Time, the last modification time of the first class file may be identical with the last modification time of the second class file, it is also possible to no It is identical, it is the last modification time according to the first class file compared with the last modification time of the second class file, for judging Whether the first class file meets hot loading environment, and the class file in user's application server selects, and selects first kind text Part class file to be repaired, the label inputted by user search corresponding class text according to label later in the application server Part obtains the second class file.
Accordingly, in step S104, comprising:
The last modification time of first class file is compared with the last modification time of second class file;
If the last modification time of first class file is sentenced after the last modification time of second class file Fixed first class file meets hot loading environment;
If the last modification time of first class file before the last modification time of second class file, or The last modification time of first class file is identical as the last modification time of second class file, then determines first kind text Part does not meet hot loading environment.
According to the chronological order of the last modification time of the first class file and the last modification time of the second class file, Judge whether the first class file meets hot loading environment.
In some embodiments, in step s 103, comprising:
Obtain the last modification time and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class text Part;
Obtain the last modification time of second class file.
The specify information of first class file includes that last modification time and filename do not need to use in the present embodiment Family input marking, the first class file class file to be repaired is identical with the filename of the first class file, for this purpose, directly answering With server locating file name class file identical with the filename of the first class file, the second class file, Zhi Houzai can be obtained Obtain the last modification time of the second class file.
Accordingly, in step S104, comprising:
The last modification time of first class file is compared with the last modification time of second class file;
If the last modification time of first class file is sentenced after the last modification time of second class file Fixed first class file meets hot loading environment;
If the last modification time of first class file before the last modification time of second class file, or The last modification time of first class file is identical as the last modification time of second class file, then determines first kind text Part does not meet hot loading environment.
In some embodiments, in step s 103, comprising:
Obtain the file content of first class file;
The label of user's input is received, the label is the mark to the class file in the application server;
Class file corresponding with the label is searched in the application server, obtains the second class file;
Obtain the file content of second class file.
The specify information of first class file includes file content, and the specify information of the second class file includes file content, is used Class file in the application server of family is selected, the class file for selecting the first class file to be repaired, passes through selection input mark Note searches corresponding class file according to label later in the application server, obtains the second class file.
Accordingly, in step S104, comprising:
The file content of first class file is compared with the file content of second class file;
If the file content of first class file is not identical as the file content of second class file, first is determined Class file meets hot loading environment;
If the file content of first class file is identical as the file content of second class file, the first kind is determined File does not meet hot loading environment.
It is whether identical as the file content of the second class file according to the file content of the first class file, judge first kind text Whether part meets hot loading environment.
In some embodiments, in step s 103, comprising:
Obtain the file content and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class text Part;
Obtain the file content of second class file.
The specify information of first class file includes that it is defeated not to need user in the present embodiment for file content and filename Enter label, the first class file class file to be repaired is identical with the filename of the first class file, for this purpose, directly taking in application Device locating file name of being engaged in class file identical with the filename of the first class file, can be obtained the second class file, obtains again later The file content of second class file.
Accordingly, in step S104, comprising:
The file content of first class file is compared with the file content of second class file;
If the file content of first class file is not identical as the file content of second class file, first is determined Class file meets hot loading environment;
If the file content of first class file is identical as the file content of second class file, the first kind is determined File does not meet hot loading environment.
It is whether identical as the file content of the second class file according to the file content of the first class file, judge first kind text Whether part meets hot loading environment.
If step S105, described first class file meets hot loading environment, to described using described in deployment container First class file carries out hot load, is loaded into the application server, instead of second class file.
When meeting hot loading environment, the first class file is loaded into application server, application server is no longer to second Class file is loaded, to repair the bug because of the second class file institute band.It should be noted that, although application server is not Second class file is loaded, but the second class file still has application server.
In the present embodiment, after step S105, comprising:
Whether the last modification time for detecting first class file changes;
If no change has taken place, current time is obtained;
According to the time difference of the current time and the last modification time of first class file, obtain at the first time Value;
The first time value is compared with preset time threshold;
If the first time value is greater than the preset time threshold, the user is prompted to replace the application server In second class file.
No change has taken place for the last modification time of first class file, illustrates that the first class file can be steady in application server Fixed operation, if reaching preset condition in stable operation, that is, value is greater than preset time threshold at the first time, suggests that use Replace the second class file in application server in family.
In the present embodiment, after step S105, comprising:
Whether the last modification time for detecting second class file changes;
If changing, stop carrying out hot load to first class file.
If the second class file in user's application server is replaced, the last modification time of the second class file can occur Change, at this time, it is believed that the second class file after replacement is a class file without finding bug, so stopping the first class file Heat load.
In conclusion receiving the first class file, the first class file is copied to using deployment container, judges the first class file Whether meet hot loading environment, if the first class file meets hot loading environment, hot load is carried out to the first class file, is carried Enter in application server, instead of the second class file, does not need to restart application server, repair the bug of application, it is intended to solve existing Bug repair, need the time in the business free time, the problem of released version is repaired.
As shown in Fig. 2, the embodiment of the present application proposes a kind of bug prosthetic device 1 of application, device 1 include receiving module 11, Replication module 12 obtains module 13, judgment module 14 and hot loading module 15.
Receiving module 11, for receiving the first class file of user's input, first class file is for repairing application The bug in class file run in server.
First class file can be user and directly input, and is also possible to user and inputs indirectly, and the mode inputted indirectly includes: The compiling of java file is converted into class file by compiler, obtains first kind text by the java file for receiving user's input Part.After application is online, there is bug in the code of application some or some classes, and user repairs code, forms class File, to obtain the first class file.
Replication module 12, for being copied to first class file using deployment container.
Module 13 is obtained, for obtaining the specify information of first class file and the specify information of the second class file, institute Stating the second class file is first class file class file to be repaired.
Second class file be it is corresponding with the first class file, the second class file be run in application server class text Part, and the class file, there are bug, the first class file is repaired to the class file.Reparation refers to application server The first class file is loaded, instead of the second class file, in this way, application server movement is the first class file, it is no longer the second class File, so as to the bug of the second class file institute band before repairing.
Judgment module 14, for by the specify information of the specify information of first class file and second class file into Row compares, and judges whether first class file meets hot loading environment according to comparison result.
Judge hot loading environment can there are many judgment mode, according to different judgment modes, the required first kind The specify information of file, the specify information of the second class file are different.
In the present embodiment, obtaining module 13 includes:
First sub-acquisition module, for obtaining the last modification time of first class file;
First sub- receiving module, for receiving the label of user's input, the label is to the application server In class file mark;
First sub- searching module, for searching corresponding with label class file in the application server, acquisition the Two class files;
Second sub-acquisition module, for obtaining the last modification time of second class file.
The specify information of first class file includes last modification time, and the specify information of the second class file includes last modification Time, the last modification time of the first class file may be identical with the last modification time of the second class file, it is also possible to no It is identical, it is the last modification time according to the first class file compared with the last modification time of the second class file, for judging Whether the first class file meets hot loading environment, and the class file in user's application server selects, and selects first kind text Part class file to be repaired, the label inputted by user search corresponding class text according to label later in the application server Part obtains the second class file.
Accordingly, judgment module 14 includes:
First sub- comparison module, for by the last modification time of first class file and second class file most Modification time is compared afterwards;
First sub- determination module, if for first class file last modification time second class file most Afterwards after modification time, then determine that the first class file meets hot loading environment;
Second sub- determination module, if for first class file last modification time second class file most Afterwards before modification time or the last modification time of the last modification time of first class file and second class file It is identical, then determine that the first class file does not meet hot loading environment.
According to the chronological order of the last modification time of the first class file and the last modification time of the second class file, Judge whether the first class file meets hot loading environment.
In some embodiments, obtaining module 13 includes:
Third sub-acquisition module, for obtaining the last modification time and filename of first class file;
Second sub- searching module, it is identical with the filename of first class file for being searched in the application server Class file obtains the second class file;
4th sub-acquisition module, for obtaining the last modification time of second class file.
The specify information of first class file includes that last modification time and filename do not need to use in the present embodiment Family input marking, the first class file class file to be repaired is identical with the filename of the first class file, for this purpose, directly answering With server locating file name class file identical with the filename of the first class file, the second class file, Zhi Houzai can be obtained Obtain the last modification time of the second class file.
Accordingly, judgment module 14 includes:
Second sub- comparison module, for by the last modification time of first class file and second class file most Modification time is compared afterwards;
The sub- determination module of third, if for first class file last modification time second class file most Afterwards after modification time, then determine that the first class file meets hot loading environment;
4th sub- determination module, if for first class file last modification time second class file most Afterwards before modification time or the last modification time of the last modification time of first class file and second class file It is identical, then determine that the first class file does not meet hot loading environment.
In some embodiments, obtaining module 13 includes:
5th sub-acquisition module, for obtaining the file content of first class file;
Second sub- receiving module, for receiving the label of user's input, the label is to the application server In class file mark;
The sub- searching module of third, for searching corresponding with label class file in the application server, acquisition the Two class files;
6th sub-acquisition module, for obtaining the file content of second class file.
The specify information of first class file includes file content, and the specify information of the second class file includes file content, is used Class file in the application server of family is selected, the class file for selecting the first class file to be repaired, passes through selection input mark Note searches corresponding class file according to label later in the application server, obtains the second class file.
Accordingly, judgment module 14 includes:
The sub- comparison module of third, for will be in the file of the file content of first class file and second class file Appearance is compared;
5th sub- determination module, if in the file content of first class file and the file of second class file Appearance is not identical, then determines that the first class file meets hot loading environment;
6th sub- determination module, if in the file content of first class file and the file of second class file Hold identical, then determines that the first class file does not meet hot loading environment.
It is whether identical as the file content of the second class file according to the file content of the first class file, judge first kind text Whether part meets hot loading environment.
In some embodiments, obtaining module 13 includes:
7th sub-acquisition module, for obtaining the file content and filename of first class file;
4th sub- searching module, it is identical with the filename of first class file for being searched in the application server Class file obtains the second class file;
8th sub-acquisition module, for obtaining the file content of second class file.
The specify information of first class file includes that it is defeated not to need user in the present embodiment for file content and filename Enter label, the first class file class file to be repaired is identical with the filename of the first class file, for this purpose, directly taking in application Device locating file name of being engaged in class file identical with the filename of the first class file, can be obtained the second class file, obtains again later The file content of second class file.
Accordingly, judgment module 14 includes:
4th sub- comparison module, for will be in the file of the file content of first class file and second class file Appearance is compared;
7th sub- determination module, if in the file content of first class file and the file of second class file Appearance is not identical, then determines that the first class file meets hot loading environment;
8th sub- determination module, if in the file content of first class file and the file of second class file Hold identical, then determines that the first class file does not meet hot loading environment.
It is whether identical as the file content of the second class file according to the file content of the first class file, judge first kind text Whether part meets hot loading environment.
Hot loading module 15 applies deployment container to described if meeting hot loading environment for first class file In first class file carry out hot load, be loaded into the application server, instead of second class file.
When meeting hot loading environment, the first class file is loaded into application server, application server is no longer to second Class file is loaded, to repair the bug because of the second class file institute band.It should be noted that, although application server is not Second class file is loaded, but the second class file still has application server.
In the present embodiment, device 1 includes:
Whether first detection module, the last modification time for detecting first class file change;
First obtains module, if obtaining current time for no change has taken place;
First obtains module, for the time according to the current time and the last modification time of first class file Difference obtains and is worth at the first time;
First comparison module, for the first time value to be compared with preset time threshold;
First cue module prompts the user if being greater than the preset time threshold for the first time value Replace second class file in the application server.
No change has taken place for the last modification time of first class file, illustrates that the first class file can be steady in application server Fixed operation, if reaching preset condition in stable operation, that is, value is greater than preset time threshold at the first time, suggests that use Replace the second class file in application server in family.
In the present embodiment, device 1 includes:
Whether the second detection module, the last modification time for detecting second class file change;
First stopping modular, if stopping carrying out hot load to first class file for changing.
If the second class file in user's application server is replaced, the last modification time of the second class file can occur Change, at this time, it is believed that the second class file after replacement is a class file without finding bug, so stopping the first class file Heat load.
In conclusion receiving the first class file, the first class file is copied to using deployment container, judges the first class file Whether meet hot loading environment, if the first class file meets hot loading environment, hot load is carried out to the first class file, is carried Enter in application server, instead of the second class file, does not need to restart application server, repair the bug of application, it is intended to solve existing Bug repair, need the time in the business free time, the problem of released version is repaired.
As shown in figure 3, also providing a kind of computer equipment in the embodiment of the present application, which can be service Device, internal structure can be as shown in Figure 3.The computer equipment includes processor, the memory, net connected by system bus Network interface and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The computer equipment Memory includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer journey Sequence and database.The internal memory provides environment for the operation of operating system and computer program in non-volatile memory medium. The database of the computer equipment is used to store the data such as the model of bug restorative procedure of application.The network of the computer equipment Interface is used to communicate with external terminal by network connection.To realize a kind of application when the computer program is executed by processor Bug restorative procedure.
Above-mentioned processor executes the step of bug restorative procedure of above-mentioned application: receiving the first class file of user's input, institute Stating the first class file is for repairing the bug in the class file run in application server;First class file is copied to Using in deployment container;Obtain the specify information of first class file and the specify information of the second class file, second class File is first class file class file to be repaired;By the specify information of first class file and second class file Specify information be compared, judge whether first class file meets hot loading environment according to comparison result;If described One class file meets hot loading environment, then carries out hot load to first class file using in deployment container, be loaded into In the application server, instead of second class file.
In one embodiment, the specify information of the specify information of above-mentioned acquisition first class file and the second class file The step of in, comprising:
Obtain the last modification time of first class file;The label of user's input is received, the label is pair The mark of class file in the application server;
Class file corresponding with the label is searched in the application server, obtains the second class file;
Obtain the last modification time of second class file.
In one embodiment, the specify information of the specify information of above-mentioned acquisition first class file and the second class file The step of in, comprising:
Obtain the last modification time and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class text Part;
Obtain the last modification time of second class file.
In one embodiment, the specified letter of the above-mentioned specify information by first class file and second class file Breath is compared, and is judged in the step of whether first class file meets hot loading environment according to comparison result, comprising:
The last modification time of first class file is compared with the last modification time of second class file;
If the last modification time of first class file is sentenced after the last modification time of second class file Fixed first class file meets hot loading environment;
If the last modification time of first class file before the last modification time of second class file, or The last modification time of first class file is identical as the last modification time of second class file, then determines first kind text Part does not meet hot loading environment.
In one embodiment, the specify information of the specify information of above-mentioned acquisition first class file and the second class file The step of in, comprising:
Obtain the file content and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class text Part;
Obtain the file content of second class file;
It is compared in the specify information by first class file with the specify information of second class file, root Judge in the step of whether first class file meets hot loading environment according to comparison result, comprising:
The file content of first class file is compared with the file content of second class file;
If the file content of first class file is not identical as the file content of second class file, first is determined Class file meets hot loading environment;
If the file content of first class file is identical as the file content of second class file, the first kind is determined File does not meet hot loading environment.
In one embodiment, if above-mentioned first class file meets hot loading environment, the application is disposed and is held First class file in device carries out hot load, is loaded into the application server, the step of instead of second class file Later, comprising:
Whether the last modification time for detecting first class file changes;
If no change has taken place, current time is obtained;
According to the time difference of the current time and the last modification time of first class file, obtain at the first time Value;
The first time value is compared with preset time threshold;
If the first time value is greater than the preset time threshold, the user is prompted to replace the application server In second class file.
In one embodiment, if above-mentioned first class file meets hot loading environment, the application is disposed and is held First class file in device carries out hot load, is loaded into the application server, the step of instead of second class file Later, comprising:
Whether the last modification time for detecting second class file changes;
If changing, stop carrying out hot load to first class file.
It will be understood by those skilled in the art that structure shown in Fig. 3, 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.
The computer equipment of the embodiment of the present application receives the first class file, and the first class file is copied to and is held using deployment Device, judges whether the first class file meets hot loading environment, if the first class file meets hot loading environment, to the first kind File carries out hot load, is loaded into application server, instead of the second class file, does not need to restart application server, repairs application Bug, it is intended to solve existing bug and repair, need the time in the business free time, the problem of released version is repaired.
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 bug restorative procedure of application when being executed by processor, specifically: receive the first kind text of user's input Part, first class file are for repairing the bug in the class file run in application server;First class file is answered System is to using in deployment container;Obtain the specify information of first class file and the specify information of the second class file, described Two class files are first class file class files to be repaired;By the specify information of first class file and second class The specify information of file is compared, and judges whether first class file meets hot loading environment according to comparison result;If institute It states the first class file and meets hot loading environment, then hot load is carried out to first class file using in deployment container, It is loaded into the application server, instead of second class file.
In one embodiment, the specify information of the specify information of above-mentioned acquisition first class file and the second class file The step of in, comprising:
Obtain the last modification time of first class file;The label of user's input is received, the label is pair The mark of class file in the application server;
Class file corresponding with the label is searched in the application server, obtains the second class file;
Obtain the last modification time of second class file.
In one embodiment, the specify information of the specify information of above-mentioned acquisition first class file and the second class file The step of in, comprising:
Obtain the last modification time and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class text Part;
Obtain the last modification time of second class file.
In one embodiment, the specified letter of the above-mentioned specify information by first class file and second class file Breath is compared, and is judged in the step of whether first class file meets hot loading environment according to comparison result, comprising:
The last modification time of first class file is compared with the last modification time of second class file;
If the last modification time of first class file is sentenced after the last modification time of second class file Fixed first class file meets hot loading environment;
If the last modification time of first class file before the last modification time of second class file, or The last modification time of first class file is identical as the last modification time of second class file, then determines first kind text Part does not meet hot loading environment.
In one embodiment, the specify information of the specify information of above-mentioned acquisition first class file and the second class file The step of in, comprising:
Obtain the file content and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class text Part;
Obtain the file content of second class file;
It is compared in the specify information by first class file with the specify information of second class file, root Judge in the step of whether first class file meets hot loading environment according to comparison result, comprising:
The file content of first class file is compared with the file content of second class file;
If the file content of first class file is not identical as the file content of second class file, first is determined Class file meets hot loading environment;
If the file content of first class file is identical as the file content of second class file, the first kind is determined File does not meet hot loading environment.
In one embodiment, if above-mentioned first class file meets hot loading environment, the application is disposed and is held First class file in device carries out hot load, is loaded into the application server, the step of instead of second class file Later, comprising:
Whether the last modification time for detecting first class file changes;
If no change has taken place, current time is obtained;
According to the time difference of the current time and the last modification time of first class file, obtain at the first time Value;
The first time value is compared with preset time threshold;
If the first time value is greater than the preset time threshold, the user is prompted to replace the application server In second class file.
In one embodiment, if above-mentioned first class file meets hot loading environment, the application is disposed and is held First class file in device carries out hot load, is loaded into the application server, the step of instead of second class file Later, comprising:
Whether the last modification time for detecting second class file changes;
If changing, stop carrying out hot load to first class file.
The storage medium of the embodiment of the present application receives the first class file, the first class file is copied to using deployment container, Judge whether the first class file meets hot loading environment, if the first class file meets hot loading environment, to first kind text Part carries out hot load, is loaded into application server, instead of the second class file, does not need to restart application server, repair application Bug, it is intended to it solves existing bug and repairs, need the time in the business free time, the problem of released version is repaired.
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 be stored in 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 is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), enhancing 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..
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Made any modifications, equivalent replacements, and improvements etc. within mind and principle should all include within the scope of protection of this application.

Claims (10)

1. a kind of bug restorative procedure of application, which is characterized in that the described method includes:
The first class file of user's input is received, first class file is for repairing the class file run in application server In bug;
First class file is copied to using in deployment container;
The specify information of first class file and the specify information of the second class file are obtained, second class file is described One class file class file to be repaired;
The specify information of first class file is compared with the specify information of second class file, according to comparison result Judge whether first class file meets hot loading environment;
If first class file meets hot loading environment, first class file using in deployment container is carried out Heat load, is loaded into the application server, instead of second class file.
2. the bug restorative procedure of application according to claim 1, which is characterized in that obtaining first class file In the step of specify information and the specify information of the second class file, comprising:
Obtain the last modification time of first class file;
The label of user's input is received, the label is the mark to the class file in the application server;
Class file corresponding with the label is searched in the application server, obtains the second class file;
Obtain the last modification time of second class file.
3. the bug restorative procedure of application according to claim 1, which is characterized in that obtaining first class file In the step of specify information and the specify information of the second class file, comprising:
Obtain the last modification time and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class file;
Obtain the last modification time of second class file.
4. according to the bug restorative procedure of application described in claim 2 or 3, which is characterized in that described by the first kind The specify information of file is compared with the specify information of second class file, judges the first kind text according to comparison result In the step of whether part meets hot loading environment, comprising:
The last modification time of first class file is compared with the last modification time of second class file;
If the last modification time of first class file after the last modification time of second class file, determines One class file meets hot loading environment;
If the last modification time of first class file is before the last modification time of second class file or described The last modification time of first class file is identical as the last modification time of second class file, then determines the first class file not Meet hot loading environment.
5. the bug restorative procedure of application according to claim 1, which is characterized in that obtaining first class file In the step of specify information and the specify information of the second class file, comprising:
Obtain the file content and filename of first class file;
Class file identical with the filename of first class file is searched in the application server, obtains the second class file;
Obtain the file content of second class file;
Be compared in the specify information by first class file with the specify information of second class file, according to than Relatively result judged in the step of whether first class file meets hot loading environment, comprising:
The file content of first class file is compared with the file content of second class file;
If the file content of first class file is not identical as the file content of second class file, first kind text is determined Part meets hot loading environment;
If the file content of first class file is identical as the file content of second class file, the first class file is determined Hot loading environment is not met.
6. according to the bug restorative procedure of application described in claim 2 or 3, which is characterized in that if in the first kind File meets hot loading environment, then first class file to described using in deployment container carries out hot load, described in loading In application server, after the step of second class file, comprising:
Whether the last modification time for detecting first class file changes;
If no change has taken place, current time is obtained;
According to the time difference of the current time and the last modification time of first class file, obtains and be worth at the first time;
The first time value is compared with preset time threshold;
If the first time value is greater than the preset time threshold, the user is prompted to replace in the application server Second class file.
7. according to the bug restorative procedure of application described in claim 2 or 3, which is characterized in that if in the first kind File meets hot loading environment, then first class file to described using in deployment container carries out hot load, described in loading In application server, after the step of second class file, comprising:
Whether the last modification time for detecting second class file changes;
If changing, stop carrying out hot load to first class file.
8. a kind of bug prosthetic device of application, which is characterized in that described device includes:
Receiving module, for receiving the first class file of user's input, first class file is for repairing application server Bug in the class file of middle operation;
Replication module, for being copied to first class file using deployment container;
Module is obtained, for obtaining the specify information of first class file and the specify information of the second class file, described second Class file is first class file class file to be repaired;
Judgment module, for comparing the specify information of first class file and the specify information of second class file Compared with judging whether first class file meets hot loading environment according to comparison result;
Hot loading module, if meeting hot loading environment for first class file, to the institute using in deployment container It states the first class file and carries out hot load, be loaded into the application server, instead of second class file.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the processor realizes method described in any one of claims 1 to 7 when executing computer program the step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910319586.0A 2019-04-19 2019-04-19 The bug restorative procedure of application, device, computer equipment Pending CN110134432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910319586.0A CN110134432A (en) 2019-04-19 2019-04-19 The bug restorative procedure of application, device, computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910319586.0A CN110134432A (en) 2019-04-19 2019-04-19 The bug restorative procedure of application, device, computer equipment

Publications (1)

Publication Number Publication Date
CN110134432A true CN110134432A (en) 2019-08-16

Family

ID=67570660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910319586.0A Pending CN110134432A (en) 2019-04-19 2019-04-19 The bug restorative procedure of application, device, computer equipment

Country Status (1)

Country Link
CN (1) CN110134432A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823693A (en) * 2011-02-21 2014-05-28 北京奇虎科技有限公司 Service pack installation method
CN104102502A (en) * 2013-04-09 2014-10-15 腾讯科技(深圳)有限公司 Processing method and device for realizing hot deployment and server
CN105630522A (en) * 2014-10-31 2016-06-01 阿里巴巴集团控股有限公司 Web application updating method, apparatus and system
CN106909411A (en) * 2015-12-23 2017-06-30 中国移动通信集团江苏有限公司 A kind of file updating method and device
CN107391107A (en) * 2017-06-12 2017-11-24 北京明朝万达科技股份有限公司 The restorative procedure and device of a kind of application program
CN107783857A (en) * 2017-10-31 2018-03-09 珠海市魅族科技有限公司 A kind of abnormal restorative procedure and device, computer installation, readable storage medium storing program for executing
CN108304213A (en) * 2018-01-11 2018-07-20 口碑(上海)信息技术有限公司 Run the hot restorative procedure and device of program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823693A (en) * 2011-02-21 2014-05-28 北京奇虎科技有限公司 Service pack installation method
CN104102502A (en) * 2013-04-09 2014-10-15 腾讯科技(深圳)有限公司 Processing method and device for realizing hot deployment and server
CN105630522A (en) * 2014-10-31 2016-06-01 阿里巴巴集团控股有限公司 Web application updating method, apparatus and system
CN106909411A (en) * 2015-12-23 2017-06-30 中国移动通信集团江苏有限公司 A kind of file updating method and device
CN107391107A (en) * 2017-06-12 2017-11-24 北京明朝万达科技股份有限公司 The restorative procedure and device of a kind of application program
CN107783857A (en) * 2017-10-31 2018-03-09 珠海市魅族科技有限公司 A kind of abnormal restorative procedure and device, computer installation, readable storage medium storing program for executing
CN108304213A (en) * 2018-01-11 2018-07-20 口碑(上海)信息技术有限公司 Run the hot restorative procedure and device of program

Similar Documents

Publication Publication Date Title
Giustolisi et al. An Excel-based solution to bring water distribution network analysis closer to users
CN105677415A (en) Hot updating method and device
CN110109897A (en) Database script generation method, device, computer equipment and storage medium
Althoff et al. CBR for experimental software engineering
CN109684847A (en) Self-repairing method, device, equipment and the storage medium of script loophole
CN102681938B (en) Memory leakage detecting method and device
CN103248524B (en) Based on test data edition control method, the Apparatus and system of flexible test technology
US11599453B2 (en) Vehicle function test apparatus and method of controlling the same
CN108874661B (en) Test mapping relation library generation method and device, computer equipment and storage medium
CN108492005A (en) Project data processing method, device, computer equipment and storage medium
CN110297761A (en) Acquisition methods, device, computer equipment and the storage medium of returned data
CN110347590A (en) The interface testing control method and device of operation system
US11340898B1 (en) System and method for automating software development life cycle
CN107861991A (en) Bills data processing method, device, computer equipment and storage medium
CN107133043A (en) Web project packaging method and device based on domestic CPU and operating system
CN109412896A (en) Test method, device, computer equipment and the storage medium of upload function
CN109918113A (en) Multiple/hot update method of IOS application hot repair, server and storage medium
CN116661756A (en) Object analysis method and device based on low-code DSL
CN109324976B (en) Method, device, computer equipment and storage medium for managing test progress
CN109583693A (en) A kind of failed list analysis of causes method, apparatus and computer equipment down
CN110134432A (en) The bug restorative procedure of application, device, computer equipment
CN114527974A (en) Method and device for realizing service function of software product and computer equipment
CN110134595A (en) Analysis method, device, computer equipment before SVN resource library test
CN109101232A (en) A kind of method, apparatus of product development, computer equipment and storage medium
CN109857647A (en) Automated testing method, device, computer equipment and storage medium

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