CN110175046A - A kind of moving method and system of goal systems technology stack - Google Patents

A kind of moving method and system of goal systems technology stack Download PDF

Info

Publication number
CN110175046A
CN110175046A CN201910435683.6A CN201910435683A CN110175046A CN 110175046 A CN110175046 A CN 110175046A CN 201910435683 A CN201910435683 A CN 201910435683A CN 110175046 A CN110175046 A CN 110175046A
Authority
CN
China
Prior art keywords
function module
file
url
module
server
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
CN201910435683.6A
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.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Beike Technology 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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN201910435683.6A priority Critical patent/CN110175046A/en
Publication of CN110175046A publication Critical patent/CN110175046A/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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems
    • 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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Abstract

The embodiment of the present invention provides the moving method and system of a kind of goal systems technology stack, using any one functional module in goal systems as objective function module, objective function module is reconstructed using the first technology stack, the corresponding reconstruct file of objective function module is obtained, reconstruct file is packaged and is stored into first resource file;The corresponding original document of objective function module is removed in the corresponding all original documents of goal systems, and remaining all original documents are packaged and are stored into Secondary resource file;First resource file is stored into Secondary resource file, and the All Files under Secondary resource file are deployed to server.This method and system are by by the part separate storage of the first technology stack in goal systems and the realization of the second technology stack, the problem of avoiding technology stack doping, while enabling the system to meet new quality requirement and advantageously reducing the maintenance cost of system by the migration of technology stack.

Description

A kind of moving method and system of goal systems technology stack
Technical field
The present embodiments relate to field of computer technology, more particularly, to a kind of migration of goal systems technology stack Method and system.
Background technique
In the complete lifecycle of a system, system is not as people from being born to development, aging and death The process that can evade.When system steps into the declining period of life cycle, technology stack used in system can be run ragged.However, Old technology stack is often difficult to meet new quality requirement, all may be because for example, requirement of the system to scalability, performance, safety It is proposed for new quality requirement changes, and these qualitative attributes often lean on old technology stack that can not solve.In addition, old technology The maintenance cost of stack is often higher, for example, some system has used the product of certain software company, which has to operate at large size On server, which mainly provides the processing of customer information, this is the product existed more than 10 years or more, is added later Subsystem do not reuse the product;Nowadays, which is supported customer quantity is simultaneously few, and annual Product License takes With and large server maintenance cost it is all very high.
In view of this, when system steps into the declining period of life cycle, it is urgent to provide a kind of moving method of technology stack and System, with the old technology used originally by new technology replacement system, so that system can satisfy new quality requirement And the maintenance cost of system is effectively reduced.
Summary of the invention
The embodiment of the present invention is in order to overcome in the prior art when system steps into the declining period of life cycle, due in system The presence of old technology stack causes system to be difficult to meet new quality requirement and the higher problem of maintenance cost, provides a kind of target system The moving method and system of system technology stack.
In a first aspect, the embodiment of the present invention provides a kind of moving method of goal systems technology stack, comprising:
Using any one functional module in goal systems as objective function module, using the first technology stack to the mesh Mark functional module is reconstructed, and obtains the corresponding reconstruct file of the objective function module, the reconstruct file is packaged and is deposited It is stored in first resource file;
The corresponding original document of the objective function module is removed in the corresponding all original documents of the goal systems, Remaining all original documents are packaged and are stored in Secondary resource file, wherein the goal systems is corresponding all Original document is the functional file of institute in the realization goal systems write using the second technology stack;
The first resource file is stored into the Secondary resource file, and by the Secondary resource file Under All Files be deployed to server.
Preferably, by the Secondary resource folder arrangement to server, later further include:
Using the objective function module as recombination function module, and the other function module in the goal systems is made For non-recombination function module, the recombination function module and the corresponding routing rule of the non-recombination function module are set;
The recombination function module and the corresponding routing rule of the non-recombination function module are transmitted to server.
Preferably, the recombination function module and the corresponding routing rule of the non-recombination function module are set, it is specific to wrap It includes:
The corresponding routing rule of the recombination function module, as first routing rule, the first routing rule are set In include first identifier accord with;
The corresponding routing rule of the non-recombination function module, as second routing rule, the secondary route rule are set It include that second identifier accords in then.
Preferably, the recombination function module and the corresponding routing rule of the non-recombination function module are transmitted to service Device, later further include:
If the corresponding page of the recombination function module need to be loaded, the recombination function is write according to first routing rule The corresponding URL of module, as the first URL;
First URL is transmitted to server so that server according in the first URL first identifier symbol from The corresponding default file of the first URL is read in the first resource file and generates the corresponding page of the first URL;
Receive the corresponding page of the first URL that simultaneously display server is sent.
Preferably, the recombination function module and the corresponding routing rule of non-recombination function module are transmitted to server, Later further include:
If the corresponding page of the non-recombination function module need to be loaded, writes and described do not reconstruct according to second routing rule The corresponding URL of functional module, as the 2nd URL;
2nd URL is transmitted to server so that server according in the 2nd URL second identifier symbol from The corresponding default file of the 2nd URL is read in the Secondary resource file and generates the corresponding page of the 2nd URL;
Receive the corresponding page of the 2nd URL that simultaneously display server is sent.
Preferably, the corresponding page of the first URL that simultaneously display server is sent is received, later further include:
The corresponding page of first URL is stored to local cache.
Preferably, the reconstruct file and the original document include: .json file, js file and css file.
Second aspect, the embodiment of the present invention provide a kind of migratory system of goal systems technology stack, comprising:
Function remodeling module, for utilizing using any one functional module in goal systems as objective function module The objective function module is reconstructed in first technology stack, the corresponding reconstruct file of the objective function module is obtained, by institute Reconstruct file is stated to be packaged and be stored in first resource file;
Function remove module, for removing the objective function mould in the corresponding all original documents of the goal systems Remaining all original documents are packaged and are stored in Secondary resource file, wherein the mesh by the corresponding original document of block The corresponding all original documents of mark system are the functional texts of institute in the realization goal systems write using the second technology stack Part;
File deployment module, for storing the first resource file into the Secondary resource file, and will All Files under the Secondary resource file are deployed to server.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, including memory, processor and is stored in memory Computer program that is upper and can running on a processor, is realized when the processor executes described program as first aspect provides Method the step of.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, are stored thereon with calculating Machine program is realized as provided by first aspect when the computer program is executed by processor the step of method.
The moving method and system of goal systems technology stack provided in an embodiment of the present invention, will be any one in goal systems A functional module is reconstructed objective function module as objective function module, using the first technology stack, obtains objective function Reconstruct file is packaged and is stored in first resource file by the corresponding reconstruct file of module;In the corresponding institute of goal systems Have and remove the corresponding original document of objective function module in original document, remaining all original documents are packaged and are stored in the In two resource folders;First resource file is stored into Secondary resource file, and will be under Secondary resource file All Files are deployed to server.This method and system are corresponding by individually writing objective function module using the first technology stack File is reconstructed, and the reconstruct file write individually is stored into first resource file, and will be write using the second technology stack The corresponding original document of other function module individually store into Secondary resource file so that the first technology in goal systems The problem of part that stack and the second technology stack are realized is relatively independent, avoids technology stack doping, while the migration for passing through technology stack It enables the system to meet new quality requirement and advantageously reduces the maintenance cost of system.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of the moving method of goal systems technology stack provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the migratory system of goal systems technology stack provided in an embodiment of the present invention;
Fig. 3 is the entity structure schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
It should be noted that systems technology stack refers to the combination of technology used in system development.For example, jQuery It can be used as a technology stack, jQuery is a quick, succinct JavaScript frame, and it is common that it encapsulates JavaScript Function code, provide a kind of JavaScript design pattern of simplicity, optimization html document operation, event handling, animation are set Meter and Ajax interaction.
In addition, it should be noted that, the migration of systems technology stack is referred to other skills of technology stack used in system Art stack is replaced, and often utilizes old technology stack used in new technology stack replacement system.For example, react is to flow now A kind of capable JavaScript frame developed after jQuery, react are suitable for present-day systems compared to jQuery and open Demand in hair.Therefore, in the case where the technology stack that system uses originally is jQuery, it can use react replacement system In jQuery.
Fig. 1 is the flow diagram of the moving method of goal systems technology stack provided in an embodiment of the present invention, such as Fig. 1 institute Show, the embodiment of the present invention provides a kind of moving method of goal systems technology stack, and the executing subject of this method is front end, comprising:
S1, using any one functional module in goal systems as objective function module, using the first technology stack to mesh Mark functional module is reconstructed, and obtains the corresponding reconstruct file of objective function module, and reconstruct file is packaged and is stored in first In resource folder;
Specifically, when system steps into the declining period of life cycle, the migration that technology stack is carried out to system is generally required.This In embodiment, the system of technology stack migration will need to be carried out as goal systems, step realizes target by the following method in front end The migration of systems technology stack:
Firstly, obtaining all functional modules that goal systems is included, a function is arbitrarily chosen in all functional modules Energy module is as objective function module.On this basis, objective function module is reconfigured using the first technology stack, that is, utilizes the One technology stack writes the code for realizing the corresponding function of objective function module, objective function module to be reconstructed.By target The code write in functional module restructuring procedure is saved in the form of a file, obtains the corresponding reconstruct text of objective function module Reconstruct file is finally packaged, and the reconstruct file after packing is stored in first resource file by part.Wherein, the first skill The selection of art stack is that the second technology stack according to used in objective function module in goal systems determines, for example, if target system The second technology stack used in objective function module is jQuery in system, then corresponding first technology stack can be react.In reality In the application of border, the selection of the first technology stack can be determined according to actual needs, be not specifically limited herein.
S2 removes the corresponding original document of objective function module in the corresponding all original documents of goal systems, will remain Remaining all original documents are packaged and are stored in Secondary resource file;
Specifically, based on the above technical solution, the corresponding all original documents of goal systems are obtained, wherein mesh The corresponding all original documents of mark system are the functional files of institute in the realization goal systems write using the second technology stack.It can With understanding, the corresponding all original documents of goal systems are referred to using the second technology stack for each in goal systems The code file that functional module is write, and the corresponding all original documents of goal systems be goal systems research and develop complete when just Through generating.On this basis, it is corresponding original that objective function module is removed in the corresponding all original documents of goal systems File, it is to be understood that objective function module has passed through the first technology stack and has been reconstructed in above-mentioned steps S1, so, The corresponding original document of objective function module need to be removed.It is removed to the corresponding original document of objective function module And then it is stored in Secondary resource file again after being packaged remaining all original documents.
S3 stores first resource file into Secondary resource file, and will be all under Secondary resource file File is deployed to server.
Specifically, based on the above technical solution, it is corresponding that objective function module is stored in first resource file Reconstruct file;Other all functional modules then stored in addition to objective function module in Secondary resource file are corresponding Original document.On this basis, for the corresponding file consolidation storage of all functional modules for including by goal systems, this implementation In example, first resource file is stored into Secondary resource file, all functional modules pair that thus goal systems includes The file answered uniformly is stored in Secondary resource file.Finally, the All Files under Secondary resource file are deployed to Server, i.e., be uploaded to server for the All Files under Secondary resource file, and specific implementation step may refer to existing File is deployed to the step of server, no longer specifically repeats herein.
It should be noted that by above method step, the objective function module write using the first technology stack is corresponding The corresponding original document of objective function module write using the second technology stack is substituted in reconstruct file, that is, is directed to objective function mould Block completes the second technology stack and migrates to the process of the first technology stack.In addition, for the other function module in goal systems, It can realize that the second technology stack to the migration of the first technology stack, no longer repeats one by one herein using identical method and step.
The moving method of goal systems technology stack provided in an embodiment of the present invention, by any one function in goal systems Module is reconstructed objective function module as objective function module, using the first technology stack, obtains objective function module pair Reconstruct file is packaged and is stored in first resource file by the reconstruct file answered;It is corresponding all original in goal systems The corresponding original document of objective function module is removed in file, and remaining all original documents are packaged and are stored in Secondary resource In file;First resource file is stored into Secondary resource file, and by all texts under Secondary resource file Part is deployed to server.This method by individually writing the corresponding reconstruct file of objective function module using the first technology stack, and The reconstruct file write individually is stored into first resource file, and the other function mould that will be write using the second technology stack The corresponding original document of block is individually stored into Secondary resource file, so that the first technology stack and the second technology in goal systems The problem of part that stack is realized is relatively independent, avoids technology stack doping, while being enabled the system to by the migration of technology stack Meet new quality requirement and advantageously reduces the maintenance cost of system.
Based on any of the above-described embodiment, a kind of moving method of goal systems technology stack is provided, by Secondary resource file It is deployed to server, later further include: using objective function module as recombination function module, and by other function in goal systems Energy module is used as non-recombination function module, and recombination function module and the corresponding routing rule of non-recombination function module is arranged;It will weigh Structure functional module and the corresponding routing rule of non-recombination function module are transmitted to server.
Specifically, after by Secondary resource folder arrangement to server, server end is stored in goal systems The corresponding reconstruct file of objective function module, it is to be understood that the objective function module of server end storage belongs to sharp The functional module reconstructed with the first technology stack, therefore using objective function module as recombination function module.Meanwhile server end stores Other function module corresponding original document in goal systems, it is to be understood that the other function of server end storage Module belongs to also not using the functional module of the first technology stack reconstruct, therefore using other function module as non-recombination function module.
Further, it since the corresponding reconstruct file of recombination function module is stored in first resource file, and does not weigh The corresponding original document of structure functional module is stored in Secondary resource file.That is, recombination function module and non-recombination function mould The corresponding file of block is stored separately under two resource folders of server end, that is, recombination function module and not weighing The corresponding file of structure functional module is different in the store path of server end.In view of this, the developer of goal systems Recombination function module and the corresponding routing rule of non-recombination function module need to be reset in front end, then by recombination function module and The corresponding routing rule of non-recombination function module is transmitted to server, so that server can according to recombination function module and not The corresponding routing rule of recombination function module reads reconstruct from first resource file and Secondary resource file respectively Functional module and the corresponding file of non-recombination function module simultaneously generate corresponding page and are back to front end.
The moving method of goal systems technology stack provided in an embodiment of the present invention, using objective function module as recombination function Module, and using the other function module in goal systems as non-recombination function module, recombination function module is set and is not reconstructed The corresponding routing rule of functional module;Recombination function module and the corresponding routing rule of non-recombination function module are transmitted to service Device.This method is conducive to take by the way that corresponding routing rule is respectively set for recombination function module and non-recombination function module Be engaged in device according to recombination function module and the non-corresponding routing rule of recombination function module respectively from first resource file with Recombination function module and the corresponding file of non-recombination function module are read in Secondary resource file and are generated respectively corresponding The page be back to front end.
Based on any of the above-described embodiment, a kind of moving method of goal systems technology stack is provided, recombination function module is set The corresponding routing rule of non-recombination function module, specifically includes: the corresponding routing rule of setting recombination function module, as the One routing rule includes that first identifier accords in first routing rule;The corresponding routing rule of non-recombination function module is set, as Second routing rule includes that second identifier accords in second routing rule.
Specifically, in the embodiment of the present invention, recombination function module and the corresponding routing of non-recombination function module is respectively set Rule using the corresponding routing rule of recombination function module as first routing rule, and includes the first mark in first routing rule Know symbol;And will the corresponding routing rule of non-recombination function module as second routing rule, and include the in second routing rule Two identifiers.That is, by the way that different marks is arranged in recombination function module and the corresponding routing rule of non-recombination function module Symbol is to distinguish reconstruct functional module and non-recombination function module.As a result, when front end inputs a certain URL in a browser When, the page of load needed for server can determine front end according to the type of the identifier in URL is that recombination function module is corresponding The page or the corresponding page of non-recombination function module.Wherein, first identifier symbol and second identifier symbol can be according to practical need It asks and is configured, be not specifically limited herein.
It should be noted that in other embodiments, identifier can be set in first routing rule, and on the second tunnel By being not provided with identifier in rule;It can also be not provided with identifier in first routing rule, and set in second routing rule Set identifier.As a result, when front end inputs a certain URL in a browser, whether server can contain identifier according in URL Determine that the page loaded needed for front end is the corresponding page of recombination function module or the corresponding page of non-recombination function module.
A kind of moving method of goal systems technology stack provided in an embodiment of the present invention, be respectively set recombination function module and The corresponding routing rule of non-recombination function module, using the corresponding routing rule of recombination function module as first routing rule, and It include that first identifier accords in first routing rule;And the corresponding routing rule of non-recombination function module is advised as secondary route It then, and in second routing rule include that second identifier accords with.This method passes through in recombination function module and non-recombination function module pair Different identifiers is set in the routing rule answered, is conducive to distinguish reconstruct functional module and non-recombination function module.
Based on any of the above-described embodiment, provide a kind of moving method of goal systems technology stack, by recombination function module and The corresponding routing rule of non-recombination function module is transmitted to server, later further include: if it is corresponding to load recombination function module The page, then the corresponding URL of recombination function module is write according to first routing rule, as the first URL;First URL is transmitted To server, so that server accords with URL pairs of the reading the first from first resource file according to the first identifier in the first URL The default file and the corresponding page of the first URL of generation answered;Receive the corresponding page of the first URL that simultaneously display server is sent.
Specifically, recombination function module and the corresponding routing rule of non-recombination function module are being transmitted to server by front end Later, if some corresponding page of recombination function module need to be loaded in front end, front end need to write this according to first routing rule The corresponding URL of recombination function module is arranged first identifier that is, in the corresponding URL of the recombination function module and accords with, by the reconstruct function The corresponding URL of energy module includes that first identifier accords in the first URL as the first URL, then.
Further, front end inputs the first URL in a browser, and the first URL is transmitted to server, and server receives It to after the first URL, identifies in the first URL and is accorded with containing first identifier, server then can determine that the first URL is recombination function mould The corresponding URL of block.Since the corresponding file of recombination function module is stored in first resource file, server will The corresponding default file of the first URL is read directly from first resource file, and generates first according to corresponding default file The corresponding page of URL.Finally, the corresponding page of the first URL of generation is back to front end by server, and front end can receive and show Show the corresponding page of the first URL.Wherein, the corresponding default file of the first URL refers to the corresponding .json file of the first URL.
The moving method of a kind of goal systems technology stack provided in an embodiment of the present invention, if front end need to load recombination function mould The corresponding page of block then writes the corresponding URL of recombination function module according to first routing rule, as the first URL;By first URL is transmitted to server, so that server is accorded with according to the first identifier in the first URL reads from first resource file the The corresponding default file of one URL simultaneously generates the corresponding page of the first URL;Finally, front end can receive and display server is sent The corresponding page of the first URL.This method passes through defeated in the browser of front end according to the corresponding routing rule of recombination function module Enter the corresponding URL of recombination function module, is conducive to server and is directly read from first resource file according to the identifier in URL It takes corresponding default file and generates the corresponding page and be back to front end, can effectively ensure the accurate of front end institute loading page Property.
Based on any of the above-described embodiment, provide a kind of moving method of goal systems technology stack, by recombination function module and The corresponding routing rule of non-recombination function module is transmitted to after server further include: if it is corresponding to load non-recombination function module The page, then the corresponding URL of non-recombination function module is write according to second routing rule, as the 2nd URL;2nd URL is passed Server is transported to, so that server is accorded with according to the second identifier in the 2nd URL reads the 2nd URL from Secondary resource file Corresponding default file simultaneously generates the corresponding page of the 2nd URL;Receive the corresponding page of the 2nd URL that simultaneously display server is sent Face.
Specifically, recombination function module and the corresponding routing rule of non-recombination function module are being transmitted to server by front end Later, if the corresponding page of some non-recombination function module need to be loaded in front end, front end need to write according to second routing rule The corresponding URL of the non-recombination function module, i.e., setting second identifier accords in the corresponding URL of the non-recombination function module, by this The corresponding URL of non-recombination function module includes that second identifier accords in the 2nd URL as the 2nd URL, then.
Further, front end inputs the 2nd URL in a browser, and the 2nd URL is transmitted to server, and server receives It to after the 2nd URL, identifies in the 2nd URL and is accorded with containing second identifier, server then can determine that the 2nd URL is non-recombination function The corresponding URL of module.Since the corresponding file of non-recombination function module is stored in Secondary resource file, service Device will read the corresponding default file of the 2nd URL directly from Secondary resource file, and be generated according to corresponding default file The corresponding page of 2nd URL.Finally, the corresponding page of the 2nd URL of generation is back to front end by server, and front end can receive And show the corresponding page of the 2nd URL.Wherein, the corresponding default file of the 2nd URL refers to the corresponding .json text of the 2nd URL Part.
The moving method of a kind of goal systems technology stack provided in an embodiment of the present invention, if front end need to load non-recombination function The corresponding page of module then writes the corresponding URL of non-recombination function module according to second routing rule, as the 2nd URL;By Two URL are transmitted to server, read from Secondary resource file so that server is accorded with according to the second identifier in the 2nd URL The corresponding default file of 2nd URL simultaneously generates the corresponding page of the 2nd URL;Finally, front end can receive and display server is sent out The corresponding page of the 2nd URL sent.This method by according to the corresponding routing rule of non-recombination function module in front end browser It is middle to input the corresponding URL of non-recombination function module, be conducive to server according to the identifier in URL directly from Secondary resource file Corresponding default file is read in folder and generates the corresponding page and is back to front end, can effectively ensure front end institute loading page Accuracy.
Based on any of the above-described embodiment, a kind of moving method of goal systems technology stack is provided, receives simultaneously display server The corresponding page of the first URL sent, later further include: store the corresponding page of the first URL to local cache.
Specifically, in the embodiment of the present invention, front end receive and display server send the corresponding page of the first URL it Afterwards, the corresponding page of the first URL can be stored to local cache, that is, store the corresponding page of recombination function module to local Caching.As a result, after front end is loaded with a certain recombination function module corresponding page from server, front end can be by the reconstruct function The corresponding page of energy module is stored to local cache.Hereafter, when front end need to jump to the reconstruct function from other recombination function modules When energy module, front end can directly obtain the corresponding page of recombination function module from local cache, without repeating from server The corresponding page of recombination function module is requested, the time of front end page load is saved.
In addition, front end is receiving and after the corresponding page of the 2nd URL that display server is sent, it can be by the 2nd URL pairs The page answered is stored to local cache, that is, stores the corresponding page of non-recombination function module to local cache.It is current as a result, After end is loaded with the corresponding page of a certain non-recombination function module from server, front end can be corresponding by the non-recombination function module The page store to local cache.Hereafter, when front end need to jump to the non-recombination function module from other non-recombination function modules When, front end can directly obtain the corresponding page of the non-recombination function module from local cache, without from server repetitive requests The corresponding page of the non-recombination function module, saves the time of front end page load.
It should be noted that the corresponding page of recombination function module and non-recombination function module pair in the embodiment of the present invention The page answered refers respectively to the corresponding static resource of recombination function module and the corresponding static resource of non-recombination function module.
A kind of moving method of goal systems technology stack provided in an embodiment of the present invention, front end are receiving simultaneously display server After the corresponding page of the first URL sent, the corresponding page of the first URL can be stored to local cache, be conducive to front end and exist The corresponding page of recombination function module cached is directly obtained during jumping between recombination function module from local cache Face, without the corresponding page of recombination function module cached from server repetitive requests, save front end page load when Between.
Based on any of the above-described embodiment, a kind of moving method of goal systems technology stack is provided, reconstructs file and original text Part includes: .json file, js file and css file.
Specifically, in the embodiment of the present invention, the corresponding reconstruct file of recombination function module is corresponding with non-recombination function module Original document include: .json file, js file and css file.In other embodiments, file and original document institute are reconstructed The specific document form for including need to be determined according to each functional module in goal systems, be not specifically limited herein.
A kind of moving method of goal systems technology stack provided in an embodiment of the present invention reconstructs file and original document packet Include: .json file, js file and css file are conducive to server according to reconstruct file and original document and generate the corresponding page It is back to front end.
Fig. 2 is the structural schematic diagram of the migratory system of goal systems technology stack provided in an embodiment of the present invention, such as Fig. 2 institute Show, which includes: function remodeling module 21, function remove module 22 and file deployment module 23, in which:
Function remodeling module 21 is used to utilize using any one functional module in goal systems as objective function module Objective function module is reconstructed in first technology stack, obtains the corresponding reconstruct file of objective function module, and reconstruct file is beaten It wraps and is stored in first resource file.
Specifically, function remodeling module 21 obtains all functional modules that goal systems is included, in all functional modules In arbitrarily choose a functional module as objective function module.On this basis, function remodeling module 21 utilizes the first technology Stack reconfigures objective function module, i.e., the code for realizing the corresponding function of objective function module is write using the first technology stack, Objective function module to be reconstructed.The code write during objective function Restructuring Module is protected in the form of a file It deposits, obtains the corresponding reconstruct file of objective function module, be finally packaged reconstruct file, and the reconstruct file after packing is stored In first resource file.
Function remove module 22 is used to remove objective function module in the corresponding all original documents of goal systems corresponding Original document, remaining all original documents are packaged and are stored in Secondary resource file;
Specifically, based on the above technical solution, function remove module 22 obtains the corresponding all originals of goal systems Beginning file, wherein the corresponding all original documents of goal systems are institutes in the realization goal systems write using the second technology stack Functional file.It is understood that the corresponding all original documents of goal systems refer to being directed to using the second technology stack The code file that each functional module in goal systems is write, and the corresponding all original documents of goal systems are in target system System research and development have just generated when completing.On this basis, function remove module 22 is in the corresponding all original texts of goal systems The corresponding original document of objective function module is removed in part, it is to be understood that function remodeling module 21 has utilized the first skill Objective function module is reconstructed in art stack, so, the corresponding original document of objective function module need to be removed.To mesh The corresponding original document of mark functional module remove and then is stored in second again after being packaged remaining all original documents In resource folder.
File deployment module 23 is for storing first resource file into Secondary resource file, and by Secondary resource All Files under file are deployed to server.
Specifically, based on the above technical solution, it is corresponding that objective function module is stored in first resource file Reconstruct file;Other all functional modules then stored in addition to objective function module in Secondary resource file are corresponding Original document.On this basis, for the corresponding file consolidation storage of all functional modules for including by goal systems, this implementation In example, file deployment module 23 stores first resource file into Secondary resource file, and thus goal systems includes The corresponding file of all functional modules is uniformly stored in Secondary resource file.Finally, file deployment module 23 is by second All Files under resource folder are deployed to server, i.e., the All Files under Secondary resource file are uploaded to service Device, specific implementation step may refer to the step of existing file is deployed to server, no longer specifically repeat herein.
The migratory system of goal systems technology stack provided in an embodiment of the present invention specifically executes above-mentioned each method embodiment stream Journey please specifically be detailed in the content of above-mentioned each method embodiment, and details are not described herein.
The migratory system of goal systems technology stack provided in an embodiment of the present invention, by any one function in goal systems Module is reconstructed objective function module as objective function module, using the first technology stack, obtains objective function module pair Reconstruct file is packaged and is stored into first resource file by the reconstruct file answered;It is corresponding all in goal systems The corresponding original document of objective function module is removed in original document, remaining all original documents are packaged and store to In Secondary resource file;First resource file is stored into Secondary resource file, and will be under Secondary resource file All Files be deployed to server.The system is by individually writing the corresponding reconstruct of objective function module using the first technology stack File, and the reconstruct file write individually is stored into first resource file, and by write using the second technology stack its The corresponding original document of his functional module is individually stored into Secondary resource file so that in goal systems the first technology stack and The problem of part that second technology stack is realized is relatively independent, avoids technology stack doping, at the same by the migration of technology stack so that System can satisfy new quality requirement and advantageously reduce the maintenance cost of system.
Fig. 3 is the entity structure schematic diagram of electronic equipment provided in an embodiment of the present invention.Reference Fig. 3, the electronic equipment, It include: processor (processor) 31, memory (memory) 32 and bus 33;Wherein, the processor 31 and memory 32 Mutual communication is completed by the bus 33;The processor 31 is used to call the program instruction in the memory 32, To execute method provided by above-mentioned each method embodiment, for example, make any one functional module in goal systems For objective function module, objective function module is reconstructed using the first technology stack, it is corresponding heavy to obtain objective function module Reconstruct file is packaged and is stored in first resource file by structure file;In the corresponding all original documents of goal systems The corresponding original document of objective function module is removed, remaining all original documents are packaged and are stored in Secondary resource file In;First resource file is stored into Secondary resource file, and the All Files under Secondary resource file are disposed To server.
In addition, the logical order in above-mentioned memory 32 can be realized and as only by way of SFU software functional unit Vertical product when selling or using, can store in a computer readable storage medium.Based on this understanding, this hair Substantially the part of the part that contributes to existing technology or the technical solution can in other words for the technical solution of bright embodiment To be expressed in the form of software products, which is stored in a storage medium, including some instructions With so that computer equipment (can be personal computer, server or the network equipment an etc.) execution present invention is each The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, The computer program is implemented to carry out the various embodiments described above offer method when being executed by processor, for example, by target system Any one functional module in system is reconstructed objective function module using the first technology stack as objective function module, The corresponding reconstruct file of objective function module is obtained, reconstruct file is packaged and is stored in first resource file;In target The corresponding original document of objective function module is removed in the corresponding all original documents of system, and remaining all original documents are beaten It wraps and is stored in Secondary resource file;First resource file is stored into Secondary resource file, and second is provided All Files under source folder are deployed to server.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of moving method of goal systems technology stack characterized by comprising
Using any one functional module in goal systems as objective function module, using the first technology stack to the target function Energy module is reconstructed, and obtains the corresponding reconstruct file of the objective function module, the reconstruct file is packaged and is stored in In first resource file;
The corresponding original document of the objective function module is removed in the corresponding all original documents of the goal systems, will be remained Remaining all original documents are packaged and are stored in Secondary resource file, wherein the goal systems is corresponding all original File is the functional file of institute in the realization goal systems write using the second technology stack;
The first resource file is stored into the Secondary resource file, and will be under the Secondary resource file All Files are deployed to server.
2. the method according to claim 1, wherein by the Secondary resource folder arrangement to server, it Afterwards further include:
Using the objective function module as recombination function module, and using the other function module in the goal systems as not The recombination function module and the corresponding routing rule of the non-recombination function module is arranged in recombination function module;
The recombination function module and the corresponding routing rule of the non-recombination function module are transmitted to server.
3. according to the method described in claim 2, it is characterized in that, the recombination function module and the non-recombination function is arranged The corresponding routing rule of module, specifically includes:
The corresponding routing rule of the recombination function module is arranged to wrap in the first routing rule as first routing rule Include first identifier symbol;
The corresponding routing rule of the non-recombination function module is set, as second routing rule, in the second routing rule It is accorded with including second identifier.
4. according to the method described in claim 3, it is characterized in that, by the recombination function module and the non-recombination function mould The corresponding routing rule of block is transmitted to server, later further include:
If the corresponding page of the recombination function module need to be loaded, the recombination function module is write according to first routing rule Corresponding URL, as the first URL;
First URL is transmitted to server, so that server is accorded with according to the first identifier in the first URL from described The corresponding default file of the first URL is read in first resource file and generates the corresponding page of the first URL;
Receive the corresponding page of the first URL that simultaneously display server is sent.
5. according to the method described in claim 3, it is characterized in that, by the recombination function module and non-recombination function module pair The routing rule answered is transmitted to server, later further include:
If the corresponding page of the non-recombination function module need to be loaded, the non-recombination function is write according to second routing rule The corresponding URL of module, as the 2nd URL;
2nd URL is transmitted to server, so that server is accorded with according to the second identifier in the 2nd URL from described The corresponding default file of the 2nd URL is read in Secondary resource file and generates the corresponding page of the 2nd URL;
Receive the corresponding page of the 2nd URL that simultaneously display server is sent.
6. according to the method described in claim 4, it is characterized in that, receive and display server is sent the described first URL pairs The page answered, later further include:
The corresponding page of first URL is stored to local cache.
7. the method according to claim 1, wherein the reconstruct file and the original document include: .json File, js file and css file.
8. a kind of migratory system of goal systems technology stack characterized by comprising
Function remodeling module, for utilizing first using any one functional module in goal systems as objective function module The objective function module is reconstructed in technology stack, obtains the corresponding reconstruct file of the objective function module, will be described heavy Structure file is packaged and is stored in first resource file;
Function remove module, for removing the objective function module pair in the corresponding all original documents of the goal systems Remaining all original documents are packaged and are stored in Secondary resource file by the original document answered, wherein the target system Corresponding all original documents of uniting are the functional files of institute in the realization goal systems write using the second technology stack;
File deployment module, for storing the first resource file into the Secondary resource file, and will be described All Files under Secondary resource file are deployed to server.
9. a kind of electronic equipment characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough methods executed as described in claim 1 to 7 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claim 1 to 7 is any.
CN201910435683.6A 2019-05-23 2019-05-23 A kind of moving method and system of goal systems technology stack Pending CN110175046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910435683.6A CN110175046A (en) 2019-05-23 2019-05-23 A kind of moving method and system of goal systems technology stack

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910435683.6A CN110175046A (en) 2019-05-23 2019-05-23 A kind of moving method and system of goal systems technology stack

Publications (1)

Publication Number Publication Date
CN110175046A true CN110175046A (en) 2019-08-27

Family

ID=67692002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910435683.6A Pending CN110175046A (en) 2019-05-23 2019-05-23 A kind of moving method and system of goal systems technology stack

Country Status (1)

Country Link
CN (1) CN110175046A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528108A (en) * 2016-10-31 2017-03-22 任子行网络技术股份有限公司 WEB development method and device based on code file route
CN107273440A (en) * 2017-05-25 2017-10-20 北京邮电大学 Computer application, date storage method, micro services and microdata storehouse
CN108958736A (en) * 2018-07-20 2018-12-07 北京三快在线科技有限公司 Page generation method, device, electronic equipment and computer-readable medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528108A (en) * 2016-10-31 2017-03-22 任子行网络技术股份有限公司 WEB development method and device based on code file route
CN107273440A (en) * 2017-05-25 2017-10-20 北京邮电大学 Computer application, date storage method, micro services and microdata storehouse
CN108958736A (en) * 2018-07-20 2018-12-07 北京三快在线科技有限公司 Page generation method, device, electronic equipment and computer-readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
企鹅号-我的程序人生: "微服务架构初识", 《HTTPS://CLOUD.TENCENT.COM/DEVELOPER/NEWS/300981》 *

Similar Documents

Publication Publication Date Title
CN111832739A (en) Data processing method and related product
CN110046101B (en) Page automatic testing method and device and computer storage medium
CN107766050A (en) The dispositions method and device of a kind of heterogeneous applications
Almeida et al. Smart at what cost? characterising mobile deep neural networks in the wild
US20200341752A1 (en) Electronic apparatus and method for controlling thereof
CN103500185B (en) A kind of method and system based on multi-platform data generation tables of data
CN107526598A (en) A kind of Webpage jump control method and system
CN110321134A (en) A kind of method of application installation package, the storage medium of generating is with application server
CN102929646A (en) Application program production method and device
CN106843901B (en) Page rendering and verification method and device
CN110336695A (en) A kind of method and server of deployment and maintenance application
CN105556505A (en) Legacy system
CN105893045A (en) Service assembly loading method and device and service assembly running system
CN108491195A (en) Equipment controls page generation method and system
CN110135925A (en) Order processing system, method and apparatus
CN109857516A (en) Cluster moving method and device based on container
CN111625317A (en) Container cloud construction method and related device of business system
CN109840116A (en) A kind of method and apparatus loading resource file
US20210406002A1 (en) Client-side enrichment and transformation via dynamic logic for analytics
CN110175046A (en) A kind of moving method and system of goal systems technology stack
CN103838575A (en) Plug-in type page customization implementation method based on EXTJS frame
CN111435300A (en) Web system development method, device, equipment and storage medium
CN114579142A (en) Dual-mode big data version deployment method, device and equipment supporting steady state and sensitive state
CN108804155A (en) Profile acquisition method, device, terminal and computer readable storage medium
CN108062224A (en) Data read-write method, device and computing device based on file handle

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
TA01 Transfer of patent application right

Effective date of registration: 20191212

Address after: 100085 Floor 102-1, Building No. 35, West Second Banner Road, Haidian District, Beijing

Applicant after: Seashell Housing (Beijing) Technology Co., Ltd.

Address before: 300 457 days Unit 5, Room 1, 112, Room 1, Office Building C, Nangang Industrial Zone, Binhai New Area Economic and Technological Development Zone, Tianjin

Applicant before: Shell Technology Co., Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190827

RJ01 Rejection of invention patent application after publication