CN116521308A - Target object refreshing method, device, medium and equipment - Google Patents

Target object refreshing method, device, medium and equipment Download PDF

Info

Publication number
CN116521308A
CN116521308A CN202310358383.9A CN202310358383A CN116521308A CN 116521308 A CN116521308 A CN 116521308A CN 202310358383 A CN202310358383 A CN 202310358383A CN 116521308 A CN116521308 A CN 116521308A
Authority
CN
China
Prior art keywords
target object
refreshing
definition information
object definition
spring
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
CN202310358383.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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202310358383.9A priority Critical patent/CN116521308A/en
Publication of CN116521308A publication Critical patent/CN116521308A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a target object refreshing method, a target object refreshing device, a target object refreshing medium and target object refreshing equipment, wherein the target object refreshing method comprises the following steps: monitoring whether an object refreshing request is received; if the object refreshing request is monitored, a target object identifier and target object definition information contained in the object refreshing request are obtained; searching whether historical object definition information corresponding to the target object identification exists or not according to the target object identification; if the corresponding historical object definition information exists, comparing the target object definition information with the historical object definition information; if the difference exists between the target object definition information and the history object definition information, updating the target object in the Spring application framework according to the target object definition information. According to the method and the device for refreshing the object, the object which sends out the object refreshing operation is determined, only the object which changes and the related object thereof are operated, so that the refreshing process is effective and has the smallest influence, the service continuity of the refreshing process is ensured, and the use of other services is not influenced.

Description

Target object refreshing method, device, medium and equipment
Technical Field
The present disclosure relates to the field of electronic communications technologies, and in particular, to a method, an apparatus, a medium, and a device for refreshing a target object.
Background
Spring is a lightweight open source framework in the field of Java programming, and is an application framework for realizing agile development in order to solve complexity in enterprise-level programming development. Spring is an open source container framework, integrates various types of tools, and realizes the instantiation of the underlying class and the management of the life cycle through the Bean factor of the core. In Spring, an object that constitutes an application backbone and is managed by a Spring IOC container is called a bean, which is an object instantiated, assembled, and managed by a Spring IOC container. In the actual code development process, the configuration file of the spring is usually modified frequently, and the method for validating the modified content mainly comprises the following steps:
1) The TOMCAT is restarted.
The restarting mode can reload the latest spring configuration information, and simultaneously, release and reconstruction of related resources are thoroughly completed, but the operation of the mode is time-consuming and labor-consuming, and the service is interrupted, so that the influence is larger.
2) The refresh method based on spring native.
The method is a refreshing method of spring native support, refreshing of a spring container and all beans in the spring container can be completed only by acquiring a current container object, but in the refreshing process corresponding to the method, all the beans are subjected to reconstruction actions, namely, the beans are destroyed and then reconstructed, the influence range is wider, and particularly, the beans without updating are still influenced, so that the operation of a service system is influenced.
Disclosure of Invention
The embodiment of the application provides a target object refreshing method, a device, a medium and equipment, and by utilizing the target object refreshing method provided by the embodiment of the application, only the changed target object and the related object are operated by determining the target object sending out the object refreshing operation, so that the refreshing process is effective and has the smallest influence, the service continuity of the refreshing process is ensured, and the use of other services is not influenced.
In one aspect, an embodiment of the present application provides a target object refreshing method, where the target object refreshing method includes:
monitoring whether a third party message substitution tool receives an object refreshing request or not;
if the third party message sending tool is monitored to receive the object refreshing request, acquiring a target object identifier and target object definition information contained in the object refreshing request;
searching whether historical object definition information corresponding to the target object identification exists in a database according to the target object identification;
if the historical object definition information corresponding to the target object identification exists, comparing the target object definition information with the historical object definition information to obtain a comparison result;
And if the comparison result shows that the difference exists between the target object definition information and the historical object definition information, updating the target object in the Spring application framework according to the target object definition information.
In the method for refreshing a target object according to the embodiment of the present application, the refreshing operation on the target object in the Spring application framework according to the target object definition information includes:
and calling a Spring container corresponding to the target object, and carrying out refreshing operation on the target object in the Spring container running in the Spring application framework according to the target object definition information.
In the target object refreshing method described in the embodiment of the present application, the method further includes:
and if the historical object definition information corresponding to the target object identifier exists in the database, and the target object identifier declares to delete the target object corresponding to the target object identifier in the object refreshing request, deleting the target object in the Spring application framework.
In the target object refreshing method described in the embodiment of the present application, the method further includes:
and if the historical object definition information corresponding to the target object identification does not exist in the database, performing new operation on the target object in the Spring application framework according to the target object definition information.
In the target object refreshing method of the embodiment of the present application, the priority levels of the adding operation, the updating operation and the deleting operation decrease sequentially.
In the target object refreshing method described in the embodiment of the present application, the method further includes:
and obtaining a target object refreshing result corresponding to the refreshing operation, and visually displaying the target object refreshing result.
Correspondingly, another aspect of the embodiments of the present application further provides a target object refreshing device, where the target object refreshing device includes:
the monitoring module is used for monitoring whether the third party message substitution transmitting tool receives the object refreshing request or not;
the acquisition module is used for acquiring a target object identifier and target object definition information contained in the object refreshing request if the third-party message sending tool receives the object refreshing request;
the searching module is used for searching whether historical object definition information corresponding to the target object identification exists in a database according to the target object identification;
the comparison module is used for comparing the target object definition information with the history object definition information if the history object definition information corresponding to the target object identification exists, so that a comparison result is obtained;
And the refreshing module is used for updating the target object in the Spring application framework according to the target object definition information if the comparison result shows that the difference exists between the target object definition information and the history object definition information.
In the target object refreshing device, the refreshing module is configured to call a Spring container corresponding to the target object, and perform a refreshing operation on the target object in the Spring container running in the Spring application framework according to the target object definition information.
Accordingly, another aspect of the embodiments of the present application further provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the target object refreshing method as described above.
Accordingly, another aspect of the embodiments of the present application further provides a terminal device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to perform the target object refreshing method as described above.
The embodiment of the application provides a target object refreshing method, a target object refreshing device, a target object refreshing medium and target object refreshing equipment, wherein whether a third-party message sending tool receives an object refreshing request or not is monitored; if the third party message sending tool is monitored to receive the object refreshing request, acquiring a target object identifier and target object definition information contained in the object refreshing request; searching whether historical object definition information corresponding to the target object identification exists in a database according to the target object identification; if the historical object definition information corresponding to the target object identification exists, comparing the target object definition information with the historical object definition information to obtain a comparison result; and if the comparison result shows that the difference exists between the target object definition information and the historical object definition information, updating the target object in the Spring application framework according to the target object definition information. By determining the target object sending out the object refreshing operation and only operating the changed target object and the related object thereof, the target object refreshing method provided by the embodiment of the application ensures that the refreshing process is effective and has the least influence, ensures the service continuity of the refreshing process and does not influence the use of other services.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a target object refreshing method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a target object refreshing device according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of the target object refreshing device according to the embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are intended to be within the scope of the present application based on the embodiments herein.
It should be noted that the following is a simple description of the background of the present solution:
it can be understood that Spring is a lightweight open source framework in the field of java ee programming, and is an application framework for implementing agile development to solve the complexity in enterprise-level programming development. Spring is an open source container framework, integrates various types of tools, and realizes the instantiation of the underlying class and the management of the life cycle through the Bean factor of the core. In Spring, an object that constitutes an application backbone and is managed by a Spring IOC container is called a bean, which is an object instantiated, assembled, and managed by a Spring IOC container. In the actual code development process, the configuration file of the spring is usually modified frequently, and the method for validating the modified content mainly comprises the following steps:
1) The TOMCAT is restarted.
The restarting mode can reload the latest spring configuration information, and simultaneously, release and reconstruction of related resources are thoroughly completed, but the operation of the mode is time-consuming and labor-consuming, and the service is interrupted, so that the influence is larger.
2) The refresh method based on spring native.
The method is a refreshing method of spring native support, refreshing of a spring container and all beans in the spring container can be completed only by acquiring a current container object, but in the refreshing process corresponding to the method, all the beans are subjected to reconstruction actions, namely, the beans are destroyed and then reconstructed, the influence range is wider, and particularly, the beans without updating are still influenced, so that the operation of a service system is influenced.
In order to solve the above technical problems, an embodiment of the present application provides a target object refreshing method. By determining the target object sending out the object refreshing operation and only operating the changed target object and the related object thereof, the target object refreshing method provided by the embodiment of the application ensures that the refreshing process is effective and has the least influence, ensures the service continuity of the refreshing process and does not influence the use of other services.
Referring to fig. 1, fig. 1 is a flowchart of a target object refreshing method according to an embodiment of the present application. The target object refreshing method is applied to terminal equipment. Optionally, the terminal device is a terminal or a server. Optionally, the server is an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like. Optionally, the terminal is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, and the like, but is not limited thereto.
In an embodiment, the method may comprise the steps of:
step 101, monitoring whether the third party message substitution tool receives the object refreshing request.
It should be noted that, the target object refreshing method provided in the present application is mainly for enabling the specified object bean running in the spring application framework to perform the individual refreshing operation, and meanwhile, not affecting the normal use of other objects that do not perform the refreshing operation. For example, a bank operating system built based on a spring application framework, wherein, for example, a transfer service, a balance inquiry service and the like belong to the objects pointed out by the application. When a server corresponding to one of the objects (for example, the balance inquiry service) fails, in order to enable the user to continue to use the standby server and transfer the resource data on the failed server to the standby server, a pause page in system maintenance is displayed on the user level because a certain preparation time is needed in the process, and other objects can be normally used after the refreshing of the object is finished once the object is in a refreshing state due to the particularity of the spring application framework, so that the use of other normal services is affected. In order to solve the above problems, the target object refreshing method provided by the present application mainly determines a target object to be refreshed, and only refreshes the target object without affecting normal use of other objects, and the primary action for implementing this process is to determine the target object from which an object refreshing request is issued. Therefore, in this embodiment the tool is sent instead by listening to third party messages to determine if an object refresh request is received.
The third party message replacing and transmitting tool adopts Apollo as a contact for dynamic resource loading, compared with modes such as active polling, the object refreshing request is uniformly configured on a naming space of an Apollo configuration center, if new function requirements need to be added, a calling party only needs to configure message titles, content formats, jump links and expansion parameters on the Apollo according to own service requirements, and then the parameter transferring and calling are carried out according to own configuration, so that no modification is needed to be carried out on message pushing frame codes, and development efficiency is greatly improved. And if the information is adjusted, the method can also directly release and produce by modifying the Apollo configuration, does not need to modify codes, and is more convenient to maintain.
Step 102, if it is monitored that the third party message sending tool receives the object refreshing request, the target object identifier and the target object definition information contained in the object refreshing request are obtained.
Where the target object identification refers to a unique tag, such as an ID number, capable of identifying the identity attribute of the target object. The target object definition information (beans definition), which is a bean definition object, is used for performing a comparison analysis before and after object refreshing, and can clearly identify the target object which needs to be refreshed.
It should be explained that, the beans definition is a meta-information interface of bean configuration elements, and mainly includes:
1) bean class name;
2) bean behavior configuration elements, such as scope, auto-binding mode, life cycle callback, etc.;
3) The dependence of beans;
4) The bean configuration setting, such as a bean attribute caching object, is used for caching the currently effective bean definition object.
And step 103, searching whether historical object definition information corresponding to the target object identification exists in a database according to the target object identification.
And 104, if the historical object definition information corresponding to the target object identification exists, comparing the target object definition information with the historical object definition information to obtain a comparison result.
If there is the historical object definition information corresponding to the target object identifier, it is indicated that the object refresh request received by the third party message generation tool is an operation initiated on the existing object, for example, an object deletion operation or an object update operation. And comparing the target object definition information with the history object definition information to determine the specific refresh operation corresponding to the target object aimed at by the object refresh request.
Step 105, if the comparison result indicates that there is a difference between the target object definition information and the history object definition information, updating the target object in the Spring application framework according to the target object definition information.
In this embodiment, if the comparison result is that there is a difference between the target object definition information and the history object definition information, the Spring container corresponding to the target object is called, and according to the target object definition information, the refresh operation is performed on the target object in the Spring container running in the Spring application framework.
It should be noted that, the operation of the method is only performed in the created Spring container, and the operation of accurately refreshing the beans is performed according to the change of the beans definition object, so that the influence on other beans is reduced as much as possible, the influence of service interruption caused by refreshing of the non-updated action beans is avoided, and the service loss in the refreshing process is reduced.
In some embodiments, if there is history object definition information corresponding to the target object identifier in the database, and the target object identifier declares to delete the target object corresponding to the target object identifier in the object refresh request, then the deleting operation is performed on the target object in the Spring application framework.
In some embodiments, if the historical object definition information corresponding to the target object identifier does not exist in the database, performing a new operation on the target object in the Spring application framework according to the target object definition information.
The priority levels of the new operation, the update operation and the delete operation are sequentially decreased. And (3) re-registering or deleting according to the sequence of the first increment, the second increment and the later deletion, so as to ensure the smooth progress of the refreshing process.
In some embodiments, the method may further visually display the target object refresh result by acquiring the target object refresh result corresponding to the refresh operation, so as to help a developer or an operation and maintenance person observe the effective result.
In some embodiments, considering the difference of bean modes in the Spring container, the object destruction needs to be performed in the single-case mode, and the object in the prototype mode is recovered and processed by garbage when no reference exists.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
In particular, the present application is not limited by the order of execution of the steps described, and certain steps may be performed in other orders or concurrently without conflict.
As can be seen from the above, the target object refreshing method provided in the embodiment of the present application monitors whether the third party messaging tool receives the object refreshing request; if the third party message sending tool is monitored to receive the object refreshing request, acquiring a target object identifier and target object definition information contained in the object refreshing request; searching whether historical object definition information corresponding to the target object identification exists in a database according to the target object identification; if the historical object definition information corresponding to the target object identification exists, comparing the target object definition information with the historical object definition information to obtain a comparison result; and if the comparison result shows that the difference exists between the target object definition information and the historical object definition information, updating the target object in the Spring application framework according to the target object definition information. By determining the target object sending out the object refreshing operation and only operating the changed target object and the related object thereof, the target object refreshing method provided by the embodiment of the application ensures that the refreshing process is effective and has the least influence, ensures the service continuity of the refreshing process and does not influence the use of other services.
The embodiment of the application also provides a target object refreshing device which can be integrated in the terminal equipment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a target object refreshing device according to an embodiment of the present application. The target object refreshing apparatus 30 may include:
a monitoring module 31, configured to monitor whether the third party messaging tool receives the object refresh request;
an obtaining module 32, configured to obtain a target object identifier and target object definition information included in the object refresh request if it is monitored that the third party messaging tool receives the object refresh request;
a searching module 33, configured to search whether historical object definition information corresponding to the target object identifier exists in a database according to the target object identifier;
a comparison module 34, configured to compare the target object definition information with the historical object definition information if there is the historical object definition information corresponding to the target object identifier, so as to obtain a comparison result;
and the refreshing module 35 is configured to update the target object in the Spring application framework according to the target object definition information if the comparison result indicates that there is a difference between the target object definition information and the history object definition information.
In some embodiments, the refresh module 35 is configured to invoke a Spring container corresponding to the target object, and perform a refresh operation on the target object in the Spring container running in the Spring application framework according to the target object definition information.
In some embodiments, the apparatus further includes a deletion module, configured to delete, in the Spring application framework, the target object if there is history object definition information corresponding to the target object identifier in the database, and the target object identifier declares deletion of the target object corresponding to the target object identifier in the object refresh request.
In some embodiments, the apparatus further includes a new adding module, configured to perform a new adding operation on the target object in the Spring application framework according to the target object definition information if there is no history object definition information corresponding to the target object identifier in the database.
In some embodiments, the priority levels of the add, update, and delete operations are sequentially decremented.
In some embodiments, the apparatus further includes a visualization module, configured to obtain a target object refresh result corresponding to the refresh operation, and visually display the target object refresh result.
In specific implementation, each module may be implemented as a separate entity, or may be combined arbitrarily and implemented as the same entity or several entities.
As can be seen from the above, the target object refreshing apparatus 30 provided in the embodiments of the present application, where the monitoring module 31 is configured to monitor whether the third party messaging tool receives the object refreshing request; the obtaining module 32 is configured to obtain a target object identifier and target object definition information contained in the object refresh request if it is monitored that the third party message sending tool receives the object refresh request; the searching module 33 is configured to search whether historical object definition information corresponding to the target object identifier exists in a database according to the target object identifier; the comparison module 34 is configured to compare the target object definition information with the historical object definition information if there is the historical object definition information corresponding to the target object identifier, so as to obtain a comparison result; the refreshing module 35 is configured to update the target object in the Spring application framework according to the target object definition information if the comparison result indicates that there is a difference between the target object definition information and the history object definition information.
Referring to fig. 3, fig. 3 is another schematic structural diagram of a target object refreshing apparatus according to an embodiment of the present application, where the target object refreshing apparatus 30 includes a memory 120, one or more processors 180, and one or more application programs, and the one or more application programs are stored in the memory 120 and configured to be executed by the processors 180; the processor 180 may include a listening module 31, an acquisition module 32, a lookup module 33, a comparison module 34, and a refresh module 35. For example, the structures and connection relationships of the above respective components may be as follows:
memory 120 may be used to store applications and data. The memory 120 stores application programs including executable code. Applications may constitute various functional modules. The processor 180 executes various functional applications and target object refreshing by running an application program stored in the memory 120. In addition, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 120 may also include a memory controller to provide access to the memory 120 by the processor 180.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the device and processes data by running or executing application programs stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the device. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, user interfaces, application programs, and the like.
In particular, in this embodiment, the processor 180 loads executable codes corresponding to the processes of one or more application programs into the memory 120 according to the following instructions, and the processor 180 executes the application programs stored in the memory 120, so as to implement various functions:
monitoring instructions, which are used for monitoring whether the third party message substitution tool receives the object refreshing request;
the acquisition instruction is used for acquiring a target object identifier and target object definition information contained in the object refreshing request if the third party message sending tool is monitored to receive the object refreshing request;
The searching instruction is used for searching whether historical object definition information corresponding to the target object identification exists in a database according to the target object identification;
a comparison instruction, configured to compare the target object definition information with the historical object definition information if there is the historical object definition information corresponding to the target object identifier, so as to obtain a comparison result;
and the refreshing instruction is used for updating the target object in the Spring application framework according to the target object definition information if the comparison result shows that the difference exists between the target object definition information and the history object definition information.
In some embodiments, the refresh command is configured to invoke a Spring container corresponding to the target object, and perform a refresh operation on the target object in the Spring container running in the Spring application framework according to the target object definition information.
In some embodiments, the program further includes a delete instruction, configured to delete a target object in a Spring application framework if there is historical object definition information corresponding to the target object identifier in the database, and the target object identifier declares deletion of a target object corresponding to the target object identifier in the object refresh request.
In some embodiments, the program further includes a new instruction, configured to perform a new operation on the target object in the Spring application framework according to the target object definition information if there is no history object definition information corresponding to the target object identifier in the database.
In some embodiments, the priority levels of the add, update, and delete operations are sequentially decremented.
In some embodiments, the program further includes a visualization instruction, configured to obtain a target object refresh result corresponding to the refresh operation, and visually display the target object refresh result.
The embodiment of the application also provides terminal equipment. The terminal equipment can be a server, a smart phone, a computer, a tablet personal computer and the like.
Referring to fig. 4, fig. 4 shows a schematic structural diagram of a terminal device provided in an embodiment of the present application, where the terminal device may be used to implement the target object refreshing method provided in the foregoing embodiment. The terminal device 1200 may be a smart phone or a tablet computer.
As shown in fig. 4, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer readable storage mediums, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. It will be appreciated by those skilled in the art that the configuration of the terminal device 1200 shown in fig. 4 does not constitute a limitation of the terminal device 1200, and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components. Wherein:
The RF circuit 110 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices. RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 110 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the target object refreshing method in the above embodiment, and the processor 180 executes various functional applications and target object refreshing by running the software programs and modules stored in the memory 120, so that the vibration reminding mode can be automatically selected to update data according to the current scene where the terminal device is located, thereby not only ensuring that the scenes such as a conference are not disturbed, but also ensuring that the user can perceive an incoming call, and improving the intelligence of the terminal device. Memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory remotely located relative to processor 180, which may be connected to terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may comprise a touch sensitive surface 131 and other input devices 132. The touch sensitive surface 131, also referred to as a touch display screen or touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch sensitive surface 131 or thereabout by any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a pre-set program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch control detection device detects the touch control direction of a user, detects signals brought by touch control operation and transmits the signals to the touch control controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch coordinates, sends the touch coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. In addition to the touch-sensitive surface 131, the input unit 130 may also comprise other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal device 1200, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and after the touch-sensitive surface 131 detects a touch operation thereon or thereabout, the touch-sensitive surface is transferred to the processor 180 to determine a type of touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in fig. 4 the touch-sensitive surface 131 and the display panel 141 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 131 may be integrated with the display panel 141 to implement the input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the terminal device 1200 are not described in detail herein.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and terminal device 1200. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, transmits the audio data to, for example, another terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. Audio circuitry 160 may also include an ear bud jack to provide communication of the peripheral headphones with terminal device 1200.
Terminal device 1200 may facilitate user email, web browsing, streaming media access, etc. via a transmission module 170 (e.g., wi-Fi module) that provides wireless broadband internet access to the user. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope of not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device 1200 also includes a power supply 190 that provides power to the various components, and in some embodiments, may be logically coupled to the processor 180 via a power management system to perform functions such as managing discharge, and managing power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera (such as a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. In particular, in the present embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, the terminal device 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, the one or more programs include instructions for:
monitoring instructions, which are used for monitoring whether the third party message substitution tool receives the object refreshing request;
the acquisition instruction is used for acquiring a target object identifier and target object definition information contained in the object refreshing request if the third party message sending tool is monitored to receive the object refreshing request;
The searching instruction is used for searching whether historical object definition information corresponding to the target object identification exists in a database according to the target object identification;
a comparison instruction, configured to compare the target object definition information with the historical object definition information if there is the historical object definition information corresponding to the target object identifier, so as to obtain a comparison result;
and the refreshing instruction is used for updating the target object in the Spring application framework according to the target object definition information if the comparison result shows that the difference exists between the target object definition information and the history object definition information.
In some embodiments, the refresh command is configured to invoke a Spring container corresponding to the target object, and perform a refresh operation on the target object in the Spring container running in the Spring application framework according to the target object definition information.
In some embodiments, the program further includes a delete instruction, configured to delete a target object in a Spring application framework if there is historical object definition information corresponding to the target object identifier in the database, and the target object identifier declares deletion of a target object corresponding to the target object identifier in the object refresh request.
In some embodiments, the program further includes a new instruction, configured to perform a new operation on the target object in the Spring application framework according to the target object definition information if there is no history object definition information corresponding to the target object identifier in the database.
In some embodiments, the priority levels of the add, update, and delete operations are sequentially decremented.
In some embodiments, the program further includes a visualization instruction, configured to obtain a target object refresh result corresponding to the refresh operation, and visually display the target object refresh result.
The embodiment of the application further provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer executes the target object refreshing method described in any one of the embodiments.
It should be noted that, for the target object refreshing method described in the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the target object refreshing method described in the embodiments of the present application may be implemented by controlling related hardware by using a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal device, and executed by at least one processor in the terminal device, and the execution may include the flow of implementing the embodiment of the target object refreshing method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), or the like.
For the target object refreshing device in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as read-only memory, magnetic or optical disk, etc.
The method, the device, the medium and the equipment for refreshing the target object provided by the embodiment of the application are described in detail. The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A target object refreshing method, comprising:
monitoring whether a third party message substitution tool receives an object refreshing request or not;
if the third party message sending tool is monitored to receive the object refreshing request, acquiring a target object identifier and target object definition information contained in the object refreshing request;
searching whether historical object definition information corresponding to the target object identification exists in a database according to the target object identification;
if the historical object definition information corresponding to the target object identification exists, comparing the target object definition information with the historical object definition information to obtain a comparison result;
and if the comparison result shows that the difference exists between the target object definition information and the historical object definition information, updating the target object in the Spring application framework according to the target object definition information.
2. The method for refreshing a target object according to claim 1, wherein the refreshing the target object in the Spring application framework according to the target object definition information comprises:
and calling a Spring container corresponding to the target object, and carrying out refreshing operation on the target object in the Spring container running in the Spring application framework according to the target object definition information.
3. The target object refreshing method of claim 1, wherein the method further comprises:
and if the historical object definition information corresponding to the target object identifier exists in the database, and the target object identifier declares to delete the target object corresponding to the target object identifier in the object refreshing request, deleting the target object in the Spring application framework.
4. The target object refreshing method of claim 3, wherein the method further comprises:
and if the historical object definition information corresponding to the target object identification does not exist in the database, performing new operation on the target object in the Spring application framework according to the target object definition information.
5. The method of claim 4, wherein the priorities of the adding operation, the updating operation, and the deleting operation are sequentially decreased.
6. The target object refreshing method of claim 1, wherein the method further comprises:
and obtaining a target object refreshing result corresponding to the refreshing operation, and visually displaying the target object refreshing result.
7. A target object refreshing apparatus, characterized in that the target object refreshing apparatus comprises:
The monitoring module is used for monitoring whether the third party message substitution transmitting tool receives the object refreshing request or not;
the acquisition module is used for acquiring a target object identifier and target object definition information contained in the object refreshing request if the third-party message sending tool receives the object refreshing request;
the searching module is used for searching whether historical object definition information corresponding to the target object identification exists in a database according to the target object identification;
the comparison module is used for comparing the target object definition information with the history object definition information if the history object definition information corresponding to the target object identification exists, so that a comparison result is obtained;
and the refreshing module is used for updating the target object in the Spring application framework according to the target object definition information if the comparison result shows that the difference exists between the target object definition information and the history object definition information.
8. The target object refreshing device of claim 7, wherein the refreshing module is configured to invoke a Spring container corresponding to the target object, and perform a refreshing operation on the target object in the Spring container running in the Spring application framework according to the target object definition information.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the target object refresh method of any one of claims 1 to 6.
10. A terminal device comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the target object refresh method of any one of claims 1 to 6.
CN202310358383.9A 2023-03-28 2023-03-28 Target object refreshing method, device, medium and equipment Pending CN116521308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310358383.9A CN116521308A (en) 2023-03-28 2023-03-28 Target object refreshing method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310358383.9A CN116521308A (en) 2023-03-28 2023-03-28 Target object refreshing method, device, medium and equipment

Publications (1)

Publication Number Publication Date
CN116521308A true CN116521308A (en) 2023-08-01

Family

ID=87396682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310358383.9A Pending CN116521308A (en) 2023-03-28 2023-03-28 Target object refreshing method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN116521308A (en)

Similar Documents

Publication Publication Date Title
CN106502703B (en) Function calling method and device
CN108039963B (en) Container configuration method and device and storage medium
US10506292B2 (en) Video player calling method, apparatus, and storage medium
CN111124412B (en) Game page drawing method, device, equipment and storage medium
CN112379976A (en) Event processing method and device, mobile terminal and storage medium
EP4195623A1 (en) Application interface migration system, method, and related device
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
CN111359210B (en) Data processing method and device, electronic equipment and storage medium
CN115589432A (en) Message push management method, device, medium and equipment
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
CN104717283A (en) File downloading control method, terminal and logic processing server
CN116521308A (en) Target object refreshing method, device, medium and equipment
CN114510417A (en) Image rendering effect testing method and device, electronic equipment and storage medium
CN111475141B (en) Method and device for generating list and electronic equipment
CN111144845B (en) Mobile terminal meeting reminding method and device
CN109799994B (en) Terminal component generation method and device
CN106681845B (en) Method and device for managing communication messages
CN116582585B (en) Message pushing method, device, medium and equipment
CN108280798B (en) Method and device for rendering and displaying browser kernel
CN110659329A (en) Data processing method and device and electronic equipment
CN115982110B (en) File running method, file running device, computer equipment and readable storage medium
CN113032361B (en) Database configuration changing method and device, electronic equipment and storage medium
CN116382776A (en) Cross-platform API migration method, device, medium and equipment
CN117407036A (en) Resource reloading method and device, electronic equipment and storage medium
CN117407010A (en) Software upgrading method, device, medium and equipment

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