Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Business system updating method and device based on Groovy dynamic loading technology

A business system and dynamic loading technology, which is applied in the direction of program control device, program loading/starting, software deployment, etc., can solve the problems of slow script effectiveness and poor flexibility, and achieve the effect of multi-dynamic and flexibility

Pending Publication Date: 2020-11-24
BANK OF CHINA
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In the embodiment of the present invention, a business system update method based on Groovy dynamic loading technology is provided to solve the problem of updating the business logic content of the system by using a modular development scheme in the prior art, because the business logic change content needs to be compiled and generated after the JAR package can be loaded, there are technical problems that the script takes effect slowly and the flexibility is poor. The method includes: obtaining the component identification of the business logic component to be updated in the business system, wherein the business system is an application program based on the Spring framework; according to the business logic component to be updated Component identification, read the external Groovy script of the business logic component to be updated based on the Spring framework; dynamically load the external Groovy script of the business logic component to be updated into the business system; execute the external Groovy script of the business logic component to be updated in the business system Configure Groovy script
[0009] In the embodiment of the present invention, a business system update device based on Groovy dynamic loading technology is also provided to solve the problem of using a modular development scheme to update the system business logic content in the prior art. Since the business logic change content needs to be compiled and generated into a JAR package After loading, there are technical problems that the script takes effect slowly and has poor flexibility. The device includes: a component information acquisition module, which is used to obtain the component identification of the business logic component to be updated in the business system, wherein the business system is an application program based on the Spring framework The Groovy script acquisition module is used to read the external Groovy script of the business logic component to be updated based on the Spring framework according to the component identification of the business logic component to be updated; the component loading module is used to load the external Groovy script of the business logic component to be updated Script, dynamically loaded into the business system; component update module, used to execute the external Groovy script of the business logic component to be updated in the business system
[0010] In the embodiment of the present invention, a computer device is also provided to solve the problem of using a modular development scheme in the prior art to update the system business logic content. Since the business logic change content can only be loaded after it is compiled and generated into a JAR package, the script takes effect slowly. 1. The technical problem of poor flexibility. The computer equipment includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the above-mentioned business system update method based on Groovy dynamic loading technology is realized.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Business system updating method and device based on Groovy dynamic loading technology
  • Business system updating method and device based on Groovy dynamic loading technology
  • Business system updating method and device based on Groovy dynamic loading technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0022] An embodiment of the present invention provides a method for updating a business system based on Groovy dynamic loading technology, figure 1 It is a flow chart of a business system update method based on Groovy dynamic loading technology provided in the embodiment of the present invention, such as figure 1 As shown, the method may include the following steps:

[0023] S101. Obtain the component identification of the business logic component to be updated in the business system, where the business system is an application program based on the Spring framework. ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a business system updating method and device based on a Groovy dynamic loading technology. The method comprises the following steps: obtaining the component identifier of a to-be-updated business logic module in a business system, wherein the business system is an application program based on a Spring framework; according to the component identifier of the to-be-updated service logic component, reading the external Groovy script of the to-be-updated service logic component based on the Spring framework; dynamically loading the external Groovy script of the to-be-updatedservice logic component into a service system; and executing the external Groovy script of the to-be-updated service logic component in the service system. According to the method, the dynamically compiled and loaded Groovy script is integrated into the application program based on the Spring framework, so that the hot plug of the service logic component can be realized, and the updating of the service logic component in the service system is realized under the condition of not influencing the use of the service system by a user.

Description

technical field [0001] The invention relates to the field of software systems, in particular to a method and device for updating a service system based on Groovy dynamic loading technology. Background technique [0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section. [0003] New types of fund products in the market and new industry regulations for fund products emerge in an endless stream. In order to cope with these changes, the fund valuation system needs to frequently change small pieces of business logic. In order to implement changes in small pieces of business logic, traditional application architectures require a complete redeployment of the application or a restart of the application after updating the code. This mode makes the system maintenance time longer, because users cannot use the system during th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/65G06F9/445
CPCG06F8/65G06F9/44521Y02D10/00
Inventor 张明鸥
Owner BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products