CN109491653A - Component sharing method under micro services framework, device, electronic equipment - Google Patents

Component sharing method under micro services framework, device, electronic equipment Download PDF

Info

Publication number
CN109491653A
CN109491653A CN201811393279.9A CN201811393279A CN109491653A CN 109491653 A CN109491653 A CN 109491653A CN 201811393279 A CN201811393279 A CN 201811393279A CN 109491653 A CN109491653 A CN 109491653A
Authority
CN
China
Prior art keywords
component
micro services
services framework
public
page
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
CN201811393279.9A
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.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group 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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201811393279.9A priority Critical patent/CN109491653A/en
Publication of CN109491653A publication Critical patent/CN109491653A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Abstract

The present invention relates to computer field, the component sharing method and device, computer readable storage medium and electronic equipment under a kind of micro services framework are provided, which comprises obtain multiple components, each component is the component under micro services framework;The public object in each component is extracted, by the public object modularization to form common component;The common component is stored in target database, so that developer obtains target common component from the target database.One aspect of the present invention can simplify development process, improve development efficiency by sharing front end common component;On the other hand can under the premise of meeting page need, mitigate developer's later period extend, the workload of iteration and maintenance.

Description

Component sharing method under micro services framework, device, electronic equipment
Technical field
Component sharing method, micro services frame the present invention relates to computer field, in particular under a kind of micro services framework Component sharing means, computer readable storage medium and electronic equipment under structure.
Background technique
Having in large software system, the front and back end of network application has been realized in separation, and with REST software frame Development, back-end services gradually tend to micro services, are in simple terms exactly that one large-scale back-end services are split into multiple small clothes Business, they are disposed respectively, reduce the complexity of exploitation, and improve the scalability of system.And in terms of front end, with skill The complexity of the development of art, exploitation is also higher and higher.
Currently, the exploitation of front end is main or uses traditional development mode, by taking cloud platform of supporting parents as an example, existing endowment The front end frame of cloud platform generallys use jQuery+Bootstrap and is developed, specifically based on Bootstrap frame into Row page layout realizes page logic and related special efficacy based on jQuery and related plug-in unit.But with the growth or change of business More, the complexity of front end exponentially increases, and size of code is also increasing, for the extension in later period, iteration and maintenance, all It needs developer to take a substantial amount of time, reduces development efficiency.
In consideration of it, this field needs to develop component sharing method and device under a kind of micro services framework.
It should be noted that information disclosed in above-mentioned background technology part is only used for reinforcing the reason to background of the invention Solution.
Summary of the invention
The purpose of the present invention is to provide the component sharing methods under a kind of micro services framework, the component under micro services framework Sharing means, computer readable storage medium and electronic equipment, and then simplify development process at least to a certain extent, promotion is opened Efficiency is sent out, workload of the developer in later period extension, iteration and maintenance is reduced.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention Practice and acquistion.
According to the first aspect of the invention, the component sharing method under a kind of micro services framework is provided, which is characterized in that packet It includes:
Multiple components are obtained, each component is the component under micro services framework;
The public object in each component is extracted, by the public object modularization to form common component;
The common component is stored in target database, so that developer obtains mesh from the target database Mark common component.
In an exemplary embodiment of the present invention, multiple components are obtained, each component is the group under micro services framework Part, comprising:
Multiple modules in platform are obtained, the module is divided by multiclass component according to the function of each module, and It include one or more components in various components;
Each component is independently disposed to the component to be formed under the micro services framework.
In an exemplary embodiment of the present invention, the multiclass component includes infrastructure component, functional unit and business module Component, and the quantity of the infrastructure component, the functional unit or the business module component is one or more.
In an exemplary embodiment of the present invention, the public object is the utility function list in the public page or the page Member;
The public object in each component is obtained, by the public object modularization to form common component, comprising:
Obtain the public page and/or utility function unit in each component;
By the public page and/or the utility function unit block to form the common component.
It in an exemplary embodiment of the present invention, include multiple business module components in the component;The method is also wrapped It includes:
The public page in each business module component is extracted, by the public page modularization to form common set Part, wherein the common page face includes login page and portal page;
Each business module component for not including the public page is independently disposed to be formed under micro services framework Business module component;
By reorientation method to share each business module component for not including the public page.
In an exemplary embodiment of the present invention, by reorientation method to share each institute for not including the public page State business module component, comprising:
Obtain the access address of target service modular assembly;
It is obtained according to the address of the access address and unified login platform and redirects access address;
The target service module group is accessed by the unified login platform, and according to the redirection access address Part.
In an exemplary embodiment of the present invention, the redirection access address are as follows: http: // unified login platform IP Location/login routing/? the access address of urlHref=target service modular assembly.
According to the second aspect of the invention, the component sharing means under a kind of micro services framework are provided, which is characterized in that packet It includes:
Component obtains module, and for obtaining multiple components, each component is the component under micro services framework;
Modularization module, for obtaining the public object in each component, by the public object modularization to be formed Common component;
Memory module, for the common component to be stored in target database, so that developer is from the target Target common component is obtained in database.
According to the third aspect of the invention we, a kind of computer storage medium is provided, computer program is stored thereon with, it is special Sign is that the computer program realizes the component sharing method under above-mentioned micro services framework when being executed by processor.
According to the fourth aspect of the invention, a kind of electronic equipment is provided characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute under above-mentioned micro services framework via the executable instruction is executed Component sharing method.
As shown from the above technical solution, the component sharing method under the micro services framework in exemplary embodiment of the present and Device, computer readable storage medium, electronic equipment at least have following advantages and good effect:
Then the present invention carries out public object by extracting the public object in the component under micro services framework Modularization is finally stored in common component in target database with forming common component, so that developer is from target data Required target common component is obtained in library.On the one hand component sharing method under micro services framework of the invention passes through group Part independently disposes the component formed under micro services framework, and each micro services can be made to only focus on and complete a task and good The task is completed, reduces the coupling between code, improves development efficiency, reduce maintenance cost;On the other hand pass through by Common component is stored in target database, and developer can obtain in target database required according to respective needs Target common component can be avoided developer in this way and copy common component in local project to, improves development efficiency, and And alleviate the workload of later period extension, iteration and maintenance.
The present invention is it should be understood that above general description and following detailed description is only exemplary and explanatory , the present invention can not be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 shows the flow diagram of the component sharing method in exemplary embodiment of the present under micro services framework;
Fig. 2 shows the Application Scenarios-Examples of the component sharing method under micro services framework in exemplary embodiment of the present Figure;
Fig. 3 shows the structural schematic diagram of component type in exemplary embodiment of the present;
Fig. 4 shows the method flow diagram for redirecting in exemplary embodiment of the present and realizing that business module component is shared;
Fig. 5 shows the structural schematic diagram of the component sharing means in exemplary embodiment of the present under micro services framework;
Fig. 6 shows in exemplary embodiment of the present and sets for realizing the electronics of the component sharing method under micro services framework Standby example block diagram;
Fig. 7 is schematically shown in exemplary embodiment of the present for realizing the component sharing method under micro services framework Computer readable storage medium.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiments of the present invention to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with practicing technical solution of the present invention one or more in the specific detail, or others side can be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that each aspect of the present invention thickens.
In this specification using term "one", " one ", "the" and " described " to indicate there are one or more elements/ Component part/etc.;Term " comprising " and " having " is to indicate the open meaning being included and refer in addition to listing Element/component part/also may be present except waiting other element/component part/etc.;Term " first " and " second " etc. are only made It is used for label, is not the quantity limitation to its object.
In addition, attached drawing is only schematic illustrations of the invention, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.
This field in the related technology, as portfolio increased dramatically on various platforms, the complexity of system also by Cumulative length, although the front and back end of present network application has been realized in separation, back-end services gradually tend to micro services, Front end services still use traditional development mode, such as pass through jQuery and Bootstrap joint development endowment cloud platform Front end frame, but such front end frame can rapidly increase with the growth of system complexity, size of code, developer is rear Extension, iteration and the maintenance aspect of phase needs to put into more time and efforts, so that maintenance cost is got higher, and reduces out Send out efficiency.
For problem present in the relevant technologies, the invention proposes the component sharing method under a kind of micro services framework, Fig. 1 shows the flow chart of the component sharing method under micro services framework, as shown in Figure 1, the component under micro services framework is shared Method includes:
S110: obtaining multiple components, and each component is the component under micro services framework;
S120: the public object in each component is extracted, by the public object modularization to form common component;
S130: the common component is stored in target database, so that developer is from the target database Obtain target common component.
Below based on Fig. 2 shows structure, under micro services framework by taking the design for cloud platform front end structure of supporting parents as an example Each step of component sharing method is described in detail.
In step s 110, multiple components are obtained, each component is the component under micro services framework.
In an exemplary embodiment of the present invention, user by be equipped on server 201 can componentialized framework at end The exploitation of front end structure is carried out in end equipment 202, in order to avoid size of code excessively causes code coupling in system serious when exploitation, Modules in system can be divided by function as the component of multiple types, and each component independent part be affixed one's name to micro- to be formed Component under service architecture.Micro services are a kind of framework styles, and a large complicated software application is by one or more micro services It forms, it is loose coupling between each micro services that each micro services in system, which can be disposed independently,;Each micro services are concerned only with In completing a task and complete the task well, that is to say, that each service represents this small professional ability.At this In the embodiment of invention, this can componentialized framework can be based on vue can modularization MVVM (Model-View-View- Model) frame, naturally it is also possible to be others can componentialized framework, such as react, angular frame, the present invention is for can The selection of componentialized framework is not specifically limited, but for the ease of operation, due to based on vue can modularization MVVM Frame is easy to upper hand, is the gradual frame of a building data-driven web interface convenient for integrating with third party library, therefore In a specific embodiment of the invention, it is main using based on vue can the MVVM frame of modularization carry out front end exploitation.
In an exemplary embodiment of the present invention, with people endowment problem is increasingly paid close attention to and software platform by Step development, the content for cloud platform of supporting parents is also more and more abundant, and the project for cloud platform of supporting parents generally includes: login, portal, contract pipe Multiple service modules such as the service of managing, room management service, room state figure management service, merchandise valuation service, resident's archives service.Base In endowment cloud platform in business and function, those service modules can be divided into three types: infrastructure component, functional unit and Business module component, wherein infrastructure component may be considered the functional unit on basis, and basic function is provided for business module component It can support;Functional unit also provides function for business module component and supports;Business module component is considered as a middle layer group Part can all be divided into different service groups, such as login, portal and each related service by function, structure in large-scale project Module etc..Fig. 3 shows the structural schematic diagram of component type, as shown in figure 3, in business module component and the quantity of functional unit To be multiple, wherein business module component includes business module component A, business module component B, business module component C, business module Component D, business module component E etc., functional unit includes functional unit A, functional unit B and functional unit C, due to for each For business module component, it is corresponding log in it is identical with portal, therefore can be by login component and portal assembly from business mould It is extracted in block assembly.User is logged in by login component then to pass through door for page jump to portal page Family component can jump to the business module component with different function, while basis combination and functional unit can give each business Modular assembly provides function and supports.
In the step s 120, the public object in each component is extracted, by the public object modularization to form public affairs Component altogether.
In an exemplary embodiment of the present invention, in the development process of front end, there may be some between various components Object with same interface pattern and function, such as styles corresponding to certain an object and function both can be applied to industry It is engaged in modular assembly A, also can be applied in business module component B, etc..Wherein identical object can be the page, can also To be specific functional unit, such as in each business module component of developer's concurrent development, each business module component pair The login page and portal page answered all are identical, therefore login page and portal page can be extracted conduct respectively Then public object carries out modularization to it again and forms common component;Similarly, some functional units in the page are set, Search unit, menu cell in such as infrastructure component and functional unit, can be applied in various components, pattern wind Lattice are consistent, and difference is only that the data under different user permission are different, then these functional units can also all be mentioned It takes out as public object, modularization then is carried out to form common component to it again.It further, can also will be in component The page and functional unit with same interface pattern and function are as public object, and modularization forms common component.At this In the embodiment of invention, modularization is exactly treated using one section of styles function corresponding with its as independent whole removing, nothing It is placed on and where uses by this entirety, all have the function of the same and pattern, to realize multiplexing.
In an exemplary embodiment of the present invention, by extracting the public object in component and modularization forms public affairs Component altogether, can reduce the size of code in each component development process, and then reduces developer's later period and extend, iteration and safeguard generation The workload of code improves development efficiency.Further, developer asynchronous can also both be opened with the multiple components of synchronous development Send out component multiple, when the multiple components of developer's asynchronous development, developer can judge according to the component for having developed completion Wherein with the presence or absence of the object that can also be shared in component to be developed, and if it exists, can then be mentioned from the component for developed completion The shared object and modularization are taken to form common component, such developer can directly acquire and use the common set Part is write without oneself or is copied in local project, and then simplifies development process, improves development efficiency.
In step s 130, the common component is stored in target database, so that developer is from the target Target common component is obtained in database.
In an exemplary embodiment of the present invention, it after public object modularization being formed common component, can be stored In target database, in order to the storage and Fast Installation of component.The target database can be arbitrary database, still In order to avoid having an impact with some PostgreSQL databases, which is preferably the privately owned library npm of enterprises, exploitation Personnel if desired using the common component in target database, then can search when developing front end structure in target database The target common component, is then loaded into project and directly uses, avoid due to each by target common component of the rope needed for it A micro services are independently disposed, file caused by file path after packing changes can not passage path be introduced into asking in component Topic, and developer copies in local project without by common component, and then solves the problems, such as that common component is shared, In addition development efficiency is also improved, developer is facilitated to safeguard the iteration of component.
In an exemplary embodiment of the present invention, for multiple business module components, due to multiple business module groups The corresponding login page of part and portal page are identical, so during exploitation, for each business module component Speech, if if the code of login page and portal page is all write into, size of code can be made to increase, each business module component it Between code coupling it is serious, therefore multiple business module components are relatively independent, reduce conflict, easy to maintain in order to make, can will The public page in each business module component extracts, and then independently disposes each business module and is formed under micro services framework Business module component.
In an exemplary embodiment of the present invention, although the above method can be improved the cohesion degree of each business module component, The coupling between business module component is reduced, but there is no log in and portal function in the local code of each business module component Code, thus cannot achieve log in after effect, in order to solve this problem, the embodiment of the present invention propose will not include it is public After each business module component of the page independently disposes the business module component to be formed under micro services framework, pass through reorientation method Realize the shared scheme of business module component.
Fig. 4 shows the method flow diagram for redirecting and realizing that business module component is shared, as shown in Figure 4:
In step S401, the access address of target service modular assembly is obtained.
In an exemplary embodiment of the present invention, which can be in multiple business module components Any one, such as room management assembly or resident's profile component, after determining target service modular assembly, user opens from local Starting project is sent out, obtains the access address of target service modular assembly, such as the access address are as follows: http://localhost: 8888/#/index/demo is not logged on portal function code due to local, can not generate token, and then can not obtain Access evidence, thus the login platform that can log in platform by being different from user according to the access address log in.
In step S402, is obtained according to the address of access address and unified login platform and redirect access address.
In an exemplary embodiment of the present invention, unified login platform is that the unified login used when exploitation or test is put down Platform, since backstage can be returned to while adjusting interface by access address write request head, generally without all processing is in the case of token It allows user to log in, jumps login page, but the present invention is then set as in no token page jump to unified login Platform is logged in;And the structure of the redirection access address can be set are as follows: http: // unified login platform IP address/ Login routing/? the access address of urlHref=target service modular assembly, that is to say, that when access address is http: // When localhost:8888/#/index/demo, redirecting access address is: http: // unified login platform IP address/login Routing/? urlHref=http: //localhost:8888/#/index/demo.
In step S403, by unified login platform, and according to redirection access address access target business module group Part.
In an exemplary embodiment of the present invention, it is logged in by the unified login platform in exploitation or test, obtains and enable Board, front end interception redirect the parameter urlHref in access address, carry out page jump, can jump to target service module The development system of component.
The component sharing method under micro services framework in the present invention is that the component in platform is independently disposed to formation in incognito The component being engaged under framework;Then the public object in extraction assembly carries out modularization and forms common component;Finally common component It is stored in target database, developer obtains target common component from target database according to actual needs, to realize Component under micro services framework is shared.One aspect of the present invention can simplify development process, mention by sharing front end common component High development efficiency;On the other hand can under the premise of meeting page need, mitigate developer's later period extend, iteration and dimension The workload of shield.
Correspondingly, the present invention also provides the component sharing means under a kind of micro services framework, Fig. 5 shows micro services frame The structural schematic diagram of component sharing means under structure, as shown in figure 5, the component sharing means 500 under micro services framework can wrap It includes component and obtains module 501, modularization module 502 and memory module 503.Wherein:
Component obtains module 501, and for obtaining multiple components, each component is the component under micro services framework;
Modularization module 502, for obtaining the public object in each component, by the public object modularization with shape At common component;
Memory module 503, for the common component to be stored in target database, so that developer is from the mesh It marks and obtains target common component in database.
The detail of each module is in corresponding micro services frame in component sharing means under above-mentioned micro services framework It is described in detail in component sharing method under structure, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the present invention in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) executes embodiment according to the present invention Method.
In an exemplary embodiment of the present invention, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 600 of this embodiment according to the present invention is described referring to Fig. 6.The electronics that Fig. 6 is shown Equipment 600 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap It includes but is not limited to: at least one above-mentioned processing unit 610, at least one above-mentioned storage unit 620, the different system components of connection The bus 630 of (including storage unit 620 and processing unit 610).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 610 Row, so that each according to the present invention described in the execution of the processing unit 610 above-mentioned " specific embodiment " part of this specification The step of kind illustrative embodiments.For example, the processing unit 610 can execute step S110 as shown in fig. 1: obtaining Multiple components, each component are the component under micro services framework;Step S120: it is public right in each component to extract As by the public object modularization to form common component;Step S130: the common component is stored in target database In, so that developer obtains target common component from the target database.
Storage unit 620 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Storage unit 620 can also include program/utility with one group of (at least one) program module 6205 6204, such program module 6205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 630 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 600 can also be with one or more external equipments 1100 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 600 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 600 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 660 is communicated by bus 630 with other modules of electronic equipment 600. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 600, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) executes embodiment according to the present invention Method.
In an exemplary embodiment of the present invention, a kind of computer storage medium is additionally provided, being stored thereon with can be real The program product of existing this specification above method.In some possible embodiments, various aspects of the invention can also be real It is now a kind of form of program product comprising program code, when described program product is run on the terminal device, the journey Sequence code is each according to the present invention described in above-mentioned " illustrative methods " part of this specification for executing the terminal device The step of kind illustrative embodiments.
Refering to what is shown in Fig. 7, describing the program product for realizing the above method of embodiment according to the present invention 700, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its His embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Adaptive change follow general principle of the invention and including the undocumented common knowledge in the art of the present invention or Conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by claim It points out.

Claims (10)

1. the component sharing method under a kind of micro services framework characterized by comprising
Multiple components are obtained, each component is the component under micro services framework;
The public object in each component is extracted, by the public object modularization to form common component;
The common component is stored in target database, so that developer obtains target public affairs from the target database Component altogether.
2. the component sharing method under micro services framework according to claim 1, which is characterized in that multiple components are obtained, Each component is the component under micro services framework, comprising:
Multiple modules in platform are obtained, the module are divided by multiclass component according to the function of each module, and all kinds of It include one or more components in component;
Each component is independently disposed to the component to be formed under the micro services framework.
3. the component sharing method under micro services framework according to claim 1 or 2, which is characterized in that the multiclass group Part includes infrastructure component, functional unit and business module component, and the infrastructure component, the functional unit or the business The quantity of modular assembly is one or more.
4. the component sharing method under micro services framework according to claim 1, which is characterized in that the public object is Utility function unit in the public page or the page;
The public object in each component is obtained, by the public object modularization to form common component, comprising:
Obtain the public page and/or utility function unit in each component;
By the public page and/or the utility function unit block to form the common component.
5. the component sharing method under micro services framework according to claim 1, which is characterized in that include in the component Multiple business module components;The method also includes:
The public page in each business module component is extracted, by the public page modularization to form common component, Described in common page face include login page and portal page;
Each business module component for not including the public page is independently disposed into the business to be formed under micro services framework Modular assembly;
By reorientation method to share each business module component for not including the public page.
6. the component sharing method under micro services framework according to claim 5, which is characterized in that pass through reorientation method With shared each business module component not comprising the public page, comprising:
Obtain the access address of target service modular assembly;
It is obtained according to the address of the access address and unified login platform and redirects access address;
The target service modular assembly is accessed by the unified login platform, and according to the redirection access address.
7. the component sharing method under micro services framework according to claim 6, which is characterized in that the redirection access Address are as follows: http: // unified login platform IP address/login routing/? the access of urlHref=target service modular assembly Location.
8. the component sharing means under a kind of micro services framework characterized by comprising
Component obtains module, and for obtaining multiple components, each component is the component under micro services framework;
Modularization module, it is for obtaining the public object in each component, the public object modularization is public to be formed Component;
Memory module, for the common component to be stored in target database, so that developer is from the target data Target common component is obtained in library.
9. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is processed The component sharing method under micro services framework described in any one of claim 1~7 is realized when device executes.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to come any one of perform claim requirement 1~7 institute via the execution executable instruction Component sharing method under the micro services framework stated.
CN201811393279.9A 2018-11-21 2018-11-21 Component sharing method under micro services framework, device, electronic equipment Pending CN109491653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811393279.9A CN109491653A (en) 2018-11-21 2018-11-21 Component sharing method under micro services framework, device, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811393279.9A CN109491653A (en) 2018-11-21 2018-11-21 Component sharing method under micro services framework, device, electronic equipment

Publications (1)

Publication Number Publication Date
CN109491653A true CN109491653A (en) 2019-03-19

Family

ID=65697269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811393279.9A Pending CN109491653A (en) 2018-11-21 2018-11-21 Component sharing method under micro services framework, device, electronic equipment

Country Status (1)

Country Link
CN (1) CN109491653A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032392A (en) * 2019-04-15 2019-07-19 杭州朗和科技有限公司 Service administering method and device, storage medium and electronic equipment
CN110209719A (en) * 2019-05-20 2019-09-06 华南理工大学 A kind of multitype database based on micro services framework uniformly accesses system and method
CN110673971A (en) * 2019-09-30 2020-01-10 北京金山云网络技术有限公司 Processing method and device for expiration of login session and user terminal
CN111159108A (en) * 2019-12-18 2020-05-15 北京达佳互联信息技术有限公司 Component management method and device, electronic equipment and storage medium
CN111722841A (en) * 2020-04-29 2020-09-29 北京网聘咨询有限公司 Software componentization implementation method under IOS platform
CN111736884A (en) * 2020-06-22 2020-10-02 平安医疗健康管理股份有限公司 Componentization method and system
CN112068812A (en) * 2020-09-02 2020-12-11 数字广东网络建设有限公司 Micro-service generation method and device, computer equipment and storage medium
CN112882688A (en) * 2021-01-07 2021-06-01 中国人民财产保险股份有限公司 Cloud-based architecture supporting multi-front-end project access
CN113220336A (en) * 2020-01-21 2021-08-06 腾讯科技(深圳)有限公司 Code processing method, device, medium and electronic equipment
CN113360341A (en) * 2021-06-04 2021-09-07 北京达佳互联信息技术有限公司 Front-end application maintenance and loading method and device
CN113485692A (en) * 2021-06-07 2021-10-08 广发银行股份有限公司 Big data componentization development method and device based on component store
CN113485695A (en) * 2021-07-07 2021-10-08 上海中通吉网络技术有限公司 Front-end page generation method
CN113536185A (en) * 2021-07-28 2021-10-22 平安科技(深圳)有限公司 Application page loading method, storage medium and related equipment thereof
CN113553058A (en) * 2021-07-23 2021-10-26 深圳万顺叫车云信息技术有限公司 Front-end page access method and system and electronic equipment
CN113553522A (en) * 2020-04-24 2021-10-26 北京金山云网络技术有限公司 Page display method and device, electronic equipment and storage medium
CN113626124A (en) * 2021-08-16 2021-11-09 南京赛宁信息技术有限公司 Component state sharing method and device for iFrame micro front-end architecture
CN113722107A (en) * 2021-11-01 2021-11-30 阿里云计算有限公司 Cloud product management and control service deployment method, device, equipment and storage medium
WO2022095410A1 (en) * 2020-11-03 2022-05-12 前海飞算云智软件科技(深圳)有限公司 Component development method, apparatus, storage medium, and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984180A (en) * 2018-07-17 2018-12-11 河北中科恒运软件科技股份有限公司 A kind of rapid development system shared based on whole assembly

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984180A (en) * 2018-07-17 2018-12-11 河北中科恒运软件科技股份有限公司 A kind of rapid development system shared based on whole assembly

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "转型微服务架构完整实施方案", 《HTTPS://BAIJIAHAO.BAIDU.COM/S?ID=1591532514903984852&WFR=SPIDER&FOR=PC》 *

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032392A (en) * 2019-04-15 2019-07-19 杭州朗和科技有限公司 Service administering method and device, storage medium and electronic equipment
CN110032392B (en) * 2019-04-15 2023-05-09 杭州朗和科技有限公司 Service management method and device, storage medium and electronic equipment
CN110209719A (en) * 2019-05-20 2019-09-06 华南理工大学 A kind of multitype database based on micro services framework uniformly accesses system and method
CN110209719B (en) * 2019-05-20 2023-06-16 华南理工大学 System and method for unified access of multiple databases based on micro-service architecture
CN110673971A (en) * 2019-09-30 2020-01-10 北京金山云网络技术有限公司 Processing method and device for expiration of login session and user terminal
CN111159108A (en) * 2019-12-18 2020-05-15 北京达佳互联信息技术有限公司 Component management method and device, electronic equipment and storage medium
CN113220336A (en) * 2020-01-21 2021-08-06 腾讯科技(深圳)有限公司 Code processing method, device, medium and electronic equipment
CN113553522A (en) * 2020-04-24 2021-10-26 北京金山云网络技术有限公司 Page display method and device, electronic equipment and storage medium
CN111722841A (en) * 2020-04-29 2020-09-29 北京网聘咨询有限公司 Software componentization implementation method under IOS platform
CN111722841B (en) * 2020-04-29 2024-04-16 北京网聘咨询有限公司 Method for realizing componentization of software under IOS platform
CN111736884A (en) * 2020-06-22 2020-10-02 平安医疗健康管理股份有限公司 Componentization method and system
CN112068812B (en) * 2020-09-02 2024-04-02 数字广东网络建设有限公司 Micro-service generation method and device, computer equipment and storage medium
CN112068812A (en) * 2020-09-02 2020-12-11 数字广东网络建设有限公司 Micro-service generation method and device, computer equipment and storage medium
WO2022095410A1 (en) * 2020-11-03 2022-05-12 前海飞算云智软件科技(深圳)有限公司 Component development method, apparatus, storage medium, and electronic device
CN112882688A (en) * 2021-01-07 2021-06-01 中国人民财产保险股份有限公司 Cloud-based architecture supporting multi-front-end project access
CN113360341A (en) * 2021-06-04 2021-09-07 北京达佳互联信息技术有限公司 Front-end application maintenance and loading method and device
CN113360341B (en) * 2021-06-04 2024-02-06 北京达佳互联信息技术有限公司 Front-end application maintenance and loading method and device
CN113485692A (en) * 2021-06-07 2021-10-08 广发银行股份有限公司 Big data componentization development method and device based on component store
CN113485695A (en) * 2021-07-07 2021-10-08 上海中通吉网络技术有限公司 Front-end page generation method
CN113553058A (en) * 2021-07-23 2021-10-26 深圳万顺叫车云信息技术有限公司 Front-end page access method and system and electronic equipment
CN113536185A (en) * 2021-07-28 2021-10-22 平安科技(深圳)有限公司 Application page loading method, storage medium and related equipment thereof
CN113536185B (en) * 2021-07-28 2024-01-02 平安科技(深圳)有限公司 Application page loading method, storage medium and related equipment
WO2023005163A1 (en) * 2021-07-28 2023-02-02 平安科技(深圳)有限公司 Method for loading application page, storage medium and related device thereof
CN113626124B (en) * 2021-08-16 2024-03-08 南京赛宁信息技术有限公司 Component state sharing method and device for iFrame micro front end architecture
CN113626124A (en) * 2021-08-16 2021-11-09 南京赛宁信息技术有限公司 Component state sharing method and device for iFrame micro front-end architecture
CN113722107A (en) * 2021-11-01 2021-11-30 阿里云计算有限公司 Cloud product management and control service deployment method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109491653A (en) Component sharing method under micro services framework, device, electronic equipment
CN105446793B (en) The method and apparatus for migrating fictitious assets
CN103946844B (en) For the method and system across cluster file system synchronized update
CN109739478A (en) Front end project automated construction method, device, storage medium and electronic equipment
US10565314B2 (en) Disambiguating concepts in natural language
CN110134702A (en) Data flow joining method, device, equipment and storage medium
CN110489087A (en) A kind of method, apparatus, medium and electronic equipment generating fractal structure
US20190163740A1 (en) Resolution of acronyms in question answering systems
US11526801B2 (en) Conversational search in content management systems
US10216802B2 (en) Presenting answers from concept-based representation of a topic oriented pipeline
CN112286682A (en) Machine learning task processing method, device and equipment based on distributed cluster
US20210158406A1 (en) Machine learning-based product and service design generator
CN108701045A (en) Client operating system screenshot method and device in computer equipment
US20230108637A1 (en) Generating sorted lists of chat bot design nodes using escalation logs
US20180329754A1 (en) Non-directional transmissible task
WO2019082015A1 (en) Search engine optimization techniques
CN109460363A (en) Automated testing method, device, electronic equipment and computer-readable medium
US10558689B2 (en) Leveraging contextual information in topic coherent question sequences
US10776370B2 (en) Cognitive counter-matching of mined data
US10459994B2 (en) Dynamically tagging webpages based on critical words
CN110147228A (en) Order line editing component and method
CN110109983A (en) A kind of method and apparatus operating Redis database
CN116529577A (en) Extraction method for speaker recognition in text based on self-training
US11790885B2 (en) Semi-structured content aware bi-directional transformer
CN110457040A (en) Method and apparatus for the building of source code distribution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190319

RJ01 Rejection of invention patent application after publication