Data visualization method and device based on spring boot, and storage medium
Patent Information
- Application Number
- CN202111328095.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-10
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2041-11-10
AI Technical Summary
[0005]本申请的主要目的在于提供一种基于Spring Boot的数据可视化方法、装置以及存储介质,以解决相关技术中对可视化数据无法灵活展示的问题
[0020]通过本申请,采用以下步骤:通过目标监控组件获取目标平台提供的网页接口信息,其中,接口信息中至少包括网页的IP地址以及网页的端口信息,其中,基于Spring Boot程序框架对目标监控组件进行配置;根据网页接口信息获取目标容器中的每个对象对应的组件标识信息;对组件标识信息进行解析,得到解析后的数据信息;将数据信息进行可视化展示。解决了相关技术中对可视化数据无法灵活展示的问题,通过对网页接口信息获取目标容器中的每个对象对应的组件标识信息进行解析,进而达到了对数据进行可视化灵活展示的效果。
Smart Images

Figure CN113986205B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data visualization technology, and more specifically, to a data visualization method, apparatus, and storage medium based on Spring Boot. Background Technology
[0002] In existing technologies, you can use the `mvn dependency:tree` command in IntelliJ IDEA to print the dependency tree and view the JAR package dependencies in the project; you can also open the `pom.xml` file in IntelliJ IDEA, right-click on the contents of the `pom.xml` file, select Diagrams -> Show Dependency to see the JAR package dependencies; or use the monitoring provided by Spring Boot to expose the functionality to view beans and their relationships, and access the browser to obtain the beans and the relationships between them.
[0003] For component-based development using Spring Boot and Maven, when there are too many JAR files, the dependencies become chaotic and version management becomes complex. The results of retrieving beans and the relationships between beans using existing technologies are not intuitive enough, requiring a lot of time to sort through the retrieved results. They also cannot be flexibly analyzed and statistically processed, and the desired results cannot be obtained quickly.
[0004] There is currently no effective solution to the problem of the inflexible display of visualized data in related technologies. Summary of the Invention
[0005] The main purpose of this application is to provide a data visualization method, device, and storage medium based on Spring Boot to solve the problem of inflexible display of visualized data in related technologies.
[0006] To achieve the above objectives, according to one aspect of this application, a data visualization method based on Spring Boot is provided. The method includes: obtaining web interface information provided by a target platform through a target monitoring component, wherein the interface information includes at least the IP address and port information of the webpage; configuring the target monitoring component based on the Spring Boot application framework; obtaining component identification information corresponding to each object in the target container based on the web interface information; parsing the component identification information to obtain parsed data information; and visualizing the data information.
[0007] Furthermore, obtaining web interface information provided by the target platform through the target monitoring component includes: querying the web interface information through the target platform's configuration information to obtain the queried web interface information, wherein the configuration information includes at least the web page's template group information, web page's template name information, web page's node name information, and web page's version number information.
[0008] Furthermore, after obtaining the component identification information corresponding to each object in the target container based on the web page interface information, the method also includes: querying the dependency relationship between each object based on the component identification information to obtain the query result; and importing the data in the query result into the first database according to the preset value.
[0009] Furthermore, the component identification information is parsed to obtain the parsed data information, which includes: parsing the attribute information of the component identification information to obtain the parsed data information, wherein the attribute information includes at least: the name of the component identification information, the version of the component identification information, and the dependency list of the component identification information.
[0010] Furthermore, after parsing the component identification information to obtain the parsed data information, the method also includes: storing the data information in a second database; and retrieving the data information by querying the second database.
[0011] Furthermore, visualizing the data information includes: querying the dependency relationship of the file package corresponding to the data information based on the name of the component identification information; obtaining the number of times the target file package is depended on from the dependency relationship; processing the image information to be displayed according to the different number of times it is depended on to obtain the processed image; and visualizing the processed image.
[0012] To achieve the above objectives, according to another aspect of this application, a data visualization device based on Spring Boot is provided. The device includes: a first acquisition unit, configured to acquire web interface information provided by a target platform through a target monitoring component, wherein the interface information includes at least the IP address and port information of the webpage, and wherein the target monitoring component is configured based on the Spring Boot application framework; a second acquisition unit, configured to acquire component identification information corresponding to each object in the target container based on the web interface information; a first parsing unit, configured to parse the component identification information to obtain parsed data information; and a first display unit, configured to visualize the data information.
[0013] Furthermore, the first acquisition unit includes: a first acquisition module, used to query the web page interface information through the configuration information of the target platform, and acquire the queried web page interface information, wherein the configuration information includes at least the template group information of the web page, the template name information of the web page, the node name information of the web page, and the version number information of the web page.
[0014] Furthermore, the device also includes: a first query unit, used to query the dependency relationship between each object based on the component identification information of each object after obtaining the component identification information of each object in the target container according to the web page interface information, and obtain query results; and a first import unit, used to import the data in the query results into the first database according to preset values.
[0015] Furthermore, the first parsing unit includes: a first parsing module, used to parse the attribute information of the component identification information to obtain parsed data information, wherein the attribute information includes at least: the name of the component identification information, the version of the component identification information, and the dependency list of the component identification information.
[0016] Furthermore, the device also includes: a first storage unit, used to store the parsed data information in a second database after parsing the component identification information; and a second query unit, used to retrieve the data information by querying the second database.
[0017] Furthermore, the first display unit includes: a first query module, used to query the dependency relationship of the file package corresponding to the data information based on the name of the component identification information; a second acquisition module, used to acquire the number of times the target file package is depended on from the dependency relationship; a first processing module, used to process the image information to be displayed according to the different number of times it is depended on, and obtain the processed image; and a first display module, used to visualize the processed image.
[0018] According to another aspect of the embodiments of this application, an electronic device is also provided, including one or more processors and a memory, wherein the computer program / instructions, when executed by the processor, perform any of the methods described above.
[0019] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, on which a computer program / instruction is stored, which, when executed by a processor, performs any of the methods described above.
[0020] This application employs the following steps: First, it obtains web interface information provided by the target platform through a target monitoring component. This interface information includes at least the webpage's IP address and port information. The target monitoring component is configured based on the Spring Boot framework. Second, it obtains the component identifier information corresponding to each object in the target container based on the web interface information. Third, it parses the component identifier information to obtain the parsed data information. Finally, it visualizes the data information. This solves the problem of inflexible data visualization in related technologies. By parsing the component identifier information corresponding to each object in the target container obtained from the web interface information, it achieves the effect of flexible data visualization. Attached Figure Description
[0021] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0022] Figure 1 This is a flowchart of a Spring Boot-based data visualization method provided according to an embodiment of this application;
[0023] Figure 2 This is a visual representation diagram of the data visualization method based on Spring Boot provided in the embodiments of this application;
[0024] Figure 3 This is a schematic diagram of a Spring Boot-based data visualization device provided according to an embodiment of this application. Detailed Implementation
[0025] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] For ease of description, the following explains some of the nouns or terms used in the embodiments of this application:
[0029] Spring Boot is a brand new framework designed to simplify the initial setup and development process of new Spring applications.
[0030] JavaBean: A reusable component written in Java that exposes member attributes of its internal fields by providing public methods that conform to a consistent design pattern.
[0031] PaaS stands for Platform as a Service, a business model that provides server platforms as a service, offering corresponding server platforms or development environments as services in the cloud computing era.
[0032] According to an embodiment of this application, a data visualization method based on Spring Boot is provided.
[0033] Figure 1 This is a flowchart of a Spring Boot-based data visualization method according to an embodiment of this application. Figure 1 As shown, the method includes the following steps:
[0034] Step S101: Obtain the web interface information provided by the target platform through the target monitoring component. The interface information includes at least the IP address and port information of the web page. The target monitoring component is configured based on the Spring Boot application framework.
[0035] For example, in the services provided by the PaaS cloud platform (corresponding to the target platform in this application, the same below), the monitoring configuration provided by the Spring Boot framework is first used to expose the function of viewing beans and their relationships, and then the function is adapted to different types of databases in the PaaS platform, and then the HTTP interface information is obtained through the target platform.
[0036] Optionally, in the data visualization method based on Spring Boot provided in this application embodiment, obtaining the web interface information provided by the target platform through the target monitoring component includes: querying the web interface information through the configuration information of the target platform to obtain the queried web interface information, wherein the configuration information includes at least the template group information of the web page, the template name information of the web page, the node name information of the web page, and the version number information of the web page.
[0037] Specifically, by using information such as the template group, template name, node name, and version number of the webpage configured in the target platform, the HTTP interface provided by the PaaS cloud platform is called and queried to obtain the IP address and port information of the webpage node.
[0038] Step S102: Obtain the component identification information corresponding to each object in the target container based on the web page interface information.
[0039] Specifically, based on the obtained node IP address and port information, the bean information in the Spring container of the target platform (corresponding to the component identification information in this application) is determined. The bean information is exported in the form of a message and saved to a data file.
[0040] Optionally, in the data visualization method based on Spring Boot provided in this application embodiment, after obtaining the component identification information corresponding to each object in the target container according to the web interface information, the method further includes: querying the dependency relationship between each object according to the component identification information to obtain the query result; and importing the data in the query result into the first database according to the preset value.
[0041] Specifically, after obtaining the component identification information corresponding to each object in the target container based on the web interface information, the bean information and the dependencies between the beans are obtained through the interface exposure function of the target platform. For example, in the Spring container, there are bean A, bean B, and bean C. In the program code of bean A, two startup parameters are defined. The initialization program of bean B obtains the values of these two parameters from the backend to override the initial default values. At this time, the system data is updated through the bean C program. Based on this, it can be seen that there is a dependency relationship between bean A, bean B, and bean C. Multiple beans and their dependencies are exported to multiple data files. It should be noted that when the amount of exported data is large, the maximum value that each data file can hold (corresponding to the preset value in this application) is imported into the in-memory database (corresponding to the first database in this application). By loading the files into the in-memory database, the processing of data is improved, and there is no memory leak problem, further ensuring the security of data operations.
[0042] Step S103: Parse the component identification information to obtain the parsed data information.
[0043] Specifically, the dependencies within the Spring container can be filtered based on keywords to remove redundant information, resulting in a more concise and clear parsing result.
[0044] Optionally, in the data visualization method based on Spring Boot provided in this application embodiment, parsing the component identification information to obtain the parsed data information includes: parsing the attribute information of the component identification information to obtain the parsed data information, wherein the attribute information includes at least: the name of the component identification information, the version of the component identification information, and the dependency list of the component identification information.
[0045] Specifically, the bean attribute includes information such as bean name, version, previous dependency list, and subsequent dependency list. It can filter the dependencies within the Spring container based on keywords, removing redundant information and making the parsing results more concise and clear.
[0046] Step S10 4: Visualize the data information.
[0047] Specifically, this application visualizes and dynamically displays all beans and their dependencies on the PaaS cloud container node. It also stores the beans and their relationships in a graph database to support more flexible queries.
[0048] Optionally, in the data visualization method based on Spring Boot provided in this application embodiment, after parsing the component identification information to obtain the parsed data information, the method further includes: storing the data information in a second database; and obtaining the data information by querying the second database.
[0049] Specifically, the parsed results can be stored in a MySQL database or a graph database. The data in the MySQL database is used to support page queries; the data in the graph database can be directly queried, and the query results can be displayed more intuitively in the form of images.
[0050] Optionally, in the data visualization method based on Spring Boot provided in this application embodiment, visualizing the data information includes: querying the dependency relationship of the file package corresponding to the data information according to the name of the component identification information; obtaining the number of times the target file package is depended on from the dependency relationship; processing the image information to be displayed according to the different number of times it is depended on to obtain the processed image; and visualizing the processed image.
[0051] For example, Figure 2 This is a visual representation diagram of a data visualization method based on Spring Boot provided in the embodiments of this application, such as... Figure 2 As shown, the visualization page includes input boxes / dropdown menus for viewing the IP address and port (i.e., port number) of the PaaS container, an input box for the name of bean_A, and an input box for the name of bean_B. If the bean input box is empty, all beans and their relationships will be displayed. Beans are represented by solid circles, and dependencies between beans are connected by lines with one-way arrows pointing towards the caller. If the bean_A input box is filled with "A" and the bean_B input box is empty, all dependencies and dependent relationships of "A" will be retrieved. To facilitate analysis of dependencies of provided JAR packages, the lines for dependent JAR packages are displayed with different thicknesses according to the number of times they are depended on, and the solid circles corresponding to beans can also be displayed using different colors.
[0052] In summary, the data visualization method based on Spring Boot provided in this application obtains web interface information provided by the target platform through the target monitoring component. This interface information includes at least the webpage's IP address and port information. The target monitoring component is configured based on the Spring Boot framework. The component identifier information for each object in the target container is obtained from the webpage interface information. The component identifier information is parsed to obtain the parsed data information. Finally, the data information is visualized. This solves the problem of inflexible data visualization in related technologies by parsing the component identifier information for each object in the target container obtained from the webpage interface information, thereby achieving a flexible visualization of the data.
[0053] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0054] This application also provides a Spring Boot-based data visualization device. It should be noted that this Spring Boot-based data visualization device can be used to execute the Spring Boot-based data visualization method provided in this application. The following describes the Spring Boot-based data visualization device provided in this application.
[0055] Figure 3 This is a schematic diagram of a Spring Boot-based data visualization device according to an embodiment of this application. Figure 3 As shown, the device includes: a first acquisition unit 301, a second acquisition unit 302, a first parsing unit 303, and a first display unit 304.
[0056] Specifically, the first acquisition unit 301 is used to acquire web interface information provided by the target platform through the target monitoring component. The interface information includes at least the IP address and port information of the web page. The target monitoring component is configured based on the Spring Boot program framework.
[0057] The second acquisition unit 302 is used to acquire component identification information corresponding to each object in the target container based on the web page interface information;
[0058] The first parsing unit 303 is used to parse the component identification information to obtain the parsed data information;
[0059] The first display unit 304 is used to visualize data information.
[0060] In summary, the data visualization device based on Spring Boot provided in this application embodiment obtains web interface information provided by the target platform through the target monitoring component via the first acquisition unit 301. The interface information includes at least the IP address and port information of the webpage. The target monitoring component is configured based on the Spring Boot program framework. The second acquisition unit 302 obtains the component identification information corresponding to each object in the target container based on the web interface information. The first parsing unit 303 parses the component identification information to obtain parsed data information. The first display unit 304 visualizes the data information, solving the problem of inflexible display of visualized data in related technologies. By parsing the component identification information corresponding to each object in the target container obtained from the web interface information, the device achieves the effect of flexible visualization of data.
[0061] Optionally, in the data visualization device based on Spring Boot provided in this application embodiment, the first acquisition unit includes: a first acquisition module, used to query the web page interface information through the configuration information of the target platform and acquire the queried web page interface information, wherein the configuration information includes at least the template group information of the web page, the template name information of the web page, the node name information of the web page, and the version number information of the web page.
[0062] Optionally, in the data visualization device based on Spring Boot provided in this application embodiment, the device further includes: a first query unit, used to query the dependency relationship between each object according to the component identification information of each object after obtaining the component identification information of each object in the target container according to the web page interface information, and obtain query results; and a first import unit, used to import the data in the query results into a first database according to preset values.
[0063] Optionally, in the data visualization device based on Spring Boot provided in this application embodiment, the first parsing unit includes: a first parsing module, used to parse the attribute information of the component identification information to obtain parsed data information, wherein the attribute information includes at least: the name of the component identification information, the version of the component identification information, and the dependency list of the component identification information.
[0064] Optionally, in the data visualization device based on Spring Boot provided in the embodiments of this application, the device further includes: a first storage unit, used to store the data information in a second database after parsing the component identification information to obtain the parsed data information; and a second query unit, used to obtain the data information by querying the second database.
[0065] Optionally, in the data visualization device based on Spring Boot provided in this application embodiment, the first display unit includes: a first query module, used to query the dependency relationship of the file package corresponding to the data information according to the name of the component identification information; a second acquisition module, used to acquire the number of times the target file package is depended on from the dependency relationship; a first processing module, used to process the image information to be displayed according to the different number of times it is depended on, and obtain the processed image; and a first display module, used to visualize the processed image.
[0066] The data visualization device based on Spring Boot includes a processor and a memory. The first acquisition unit 301, the second acquisition unit 302, the first parsing unit 303, the first display unit 304, etc. are all stored in the memory as program units. The processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.
[0067] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and data visualization based on Spring Boot can be achieved by adjusting kernel parameters.
[0068] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0069] This invention provides a storage medium on which a program is stored, which, when executed by a processor, implements a data visualization method based on Spring Boot.
[0070] This invention provides a processor for running a program, wherein the program executes a data visualization method based on Spring Boot during runtime.
[0071] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: obtaining web interface information provided by a target platform through a target monitoring component, wherein the interface information includes at least the IP address and port information of the webpage; configuring the target monitoring component based on the Spring Boot framework; obtaining component identification information corresponding to each object in the target container based on the web interface information; parsing the component identification information to obtain parsed data information; and visualizing the data information.
[0072] When the processor executes the program, it also performs the following steps: querying the web page interface information through the configuration information of the target platform, and obtaining the queried web page interface information, wherein the configuration information includes at least the template group information of the web page, the template name information of the web page, the node name information of the web page, and the version number information of the web page.
[0073] When the processor executes the program, it also performs the following steps: after obtaining the component identification information corresponding to each object in the target container based on the web page interface information, it queries the dependency relationship between each object based on the component identification information to obtain the query results; and imports the data in the query results into the first database according to preset values.
[0074] When the processor executes the program, it also performs the following steps: parsing the attribute information of the component identification information to obtain the parsed data information, wherein the attribute information includes at least: the name of the component identification information, the version of the component identification information, and the dependency list of the component identification information.
[0075] When the processor executes the program, it also performs the following steps: after parsing the component identification information and obtaining the parsed data information, it stores the data information in the second database; and retrieves the data information by querying the second database.
[0076] When the processor executes the program, it also performs the following steps: querying the dependency relationship of the file package corresponding to the data information based on the name of the component identification information; obtaining the number of times the target file package is depended on from the dependency relationship; processing the image information to be displayed according to the different number of times it is depended on to obtain the processed image; and visualizing the processed image.
[0077] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.
[0078] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: obtaining web interface information provided by the target platform through the target monitoring component, wherein the interface information includes at least the IP address and port information of the web page, wherein the target monitoring component is configured based on the Spring Boot program framework; obtaining component identification information corresponding to each object in the target container according to the web interface information; parsing the component identification information to obtain parsed data information; and visualizing the data information.
[0079] When executed on a data processing device, it is also suitable to execute an initialization program with the following steps: querying web page interface information through the configuration information of the target platform, and obtaining the queried web page interface information, wherein the configuration information includes at least the template group information of the web page, the template name information of the web page, the node name information of the web page, and the version number information of the web page.
[0080] When executed on a data processing device, it is also suitable to execute an initialization program with the following steps: after obtaining the component identification information corresponding to each object in the target container based on the web page interface information, querying the dependencies between each object based on the component identification information to obtain the query results; and importing the data in the query results into the first database according to preset values.
[0081] When executed on a data processing device, it is also suitable to execute an initialization program with the following method steps: parsing the attribute information of the component identification information to obtain the parsed data information, wherein the attribute information includes at least: the name of the component identification information, the version of the component identification information, and the dependency list of the component identification information.
[0082] When executed on a data processing device, it is also suitable to execute an initialization program with the following steps: after parsing the component identification information and obtaining the parsed data information, the data information is stored in a second database; and the data information is obtained by querying the second database.
[0083] When executed on a data processing device, it is also suitable to execute an initialization program with the following steps: query the dependency relationship of the file package corresponding to the data information based on the name of the component identification information; obtain the number of times the target file package is depended on from the dependency relationship; process the image information to be displayed according to the different number of times it is depended on to obtain the processed image; and visualize the processed image.
[0084] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0085] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0086] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0087] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0088] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, a web interface, and memory.
[0089] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0090] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0091] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0092] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0093] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A data visualization method based on Spring Boot, characterized in that, include: The target monitoring component obtains web interface information provided by the target platform, wherein the interface information includes at least the IP address and port information of the web page, and the target monitoring component is configured based on the Spring Boot program framework. Based on the web page interface information, obtain the component identification information corresponding to each object in the target container; The component identification information is parsed to obtain the parsed data information; The data information is visualized by: querying the dependency relationship of the file package corresponding to the data information based on the name of the component identification information; obtaining the number of times the target file package is depended on from the dependency relationship; processing the image information to be displayed according to the different numbers of times it is depended on to obtain the processed image; and visualizing the processed image, wherein the dependency relationship is connected by a line with a one-way arrow, and the target file package includes: a jar package, and the number of times the jar package is depended on is indicated by the thickness of the line. The parsing of the component identification information to obtain the parsed data information includes: parsing the attribute information of the component identification information to obtain the parsed data information, wherein the attribute information includes at least: the name of the component identification information, the version of the component identification information, and the dependency list of the component identification information; After obtaining the component identification information corresponding to each object in the target container based on the web page interface information, the method further includes: querying the dependency relationship between each object based on the component identification information to obtain the query result; and importing the data in the query result into the first database according to a preset value.
2. The method according to claim 1, characterized in that, Obtaining web interface information provided by the target platform through the target monitoring component includes: The webpage interface information is queried using the configuration information of the target platform to obtain the queried webpage interface information. The configuration information includes at least the template group information of the webpage, the template name information of the webpage, the node name information of the webpage, and the version number information of the webpage.
3. The method according to claim 1, characterized in that, After parsing the component identification information to obtain the parsed data information, the method further includes: The data information is stored in the second database; The data information is obtained by querying the second database.
4. A data visualization device based on Spring Boot, characterized in that, include: The first acquisition unit is used to acquire web interface information provided by the target platform through the target monitoring component, wherein the interface information includes at least the IP address and port information of the web page, and the target monitoring component is configured based on the Spring Boot program framework; The second acquisition unit is used to acquire component identification information corresponding to each object in the target container based on the web page interface information; The first parsing unit is used to parse the component identification information to obtain the parsed data information; The first display unit is used to visualize the data information. The first display unit includes: a first query module, used to query the dependency relationship of the file package corresponding to the data information based on the name of the component identification information; a second acquisition module, used to acquire the number of times the target file package is depended on from the dependency relationship; a first processing module, used to process the image information to be displayed according to the different numbers of times it is depended on, to obtain the processed image; and a first display module, used to visualize the processed image, wherein the dependency relationship is connected by a unidirectional arrow line, and the target file package includes: a jar package, and the number of times the jar package is depended on is indicated by the thickness of the line. The first parsing unit includes a first parsing module, used to parse the attribute information of the component identification information to obtain parsed data information, wherein the attribute information includes at least: the name of the component identification information, the version of the component identification information, and the dependency list of the component identification information; After obtaining the component identification information corresponding to each object in the target container based on the web page interface information, the method further includes: querying the dependency relationship between each object based on the component identification information to obtain the query result; and importing the data in the query result into the first database according to a preset value.
5. The apparatus according to claim 4, characterized in that, The first acquisition unit includes: The first acquisition module is used to query the web page interface information through the configuration information of the target platform to obtain the queried web page interface information, wherein the configuration information includes at least the template group information of the web page, the template name information of the web page, the node name information of the web page, and the version number information of the web page.
6. A computer-readable storage medium, characterized in that, The storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 3.
7. An electronic device, characterized in that, include: One or more processors, a memory, a display device, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing the Spring Boot-based data visualization method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Data visualization application development method and system
CN111694565A