CN113641700A - Data processing method and device based on Spring boot frame - Google Patents

Data processing method and device based on Spring boot frame Download PDF

Info

Publication number
CN113641700A
CN113641700A CN202111003667.3A CN202111003667A CN113641700A CN 113641700 A CN113641700 A CN 113641700A CN 202111003667 A CN202111003667 A CN 202111003667A CN 113641700 A CN113641700 A CN 113641700A
Authority
CN
China
Prior art keywords
data
query
data source
annotation
database
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.)
Granted
Application number
CN202111003667.3A
Other languages
Chinese (zh)
Other versions
CN113641700B (en
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.)
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Wodong Tianjun Information Technology Co Ltd
Priority to CN202111003667.3A priority Critical patent/CN113641700B/en
Publication of CN113641700A publication Critical patent/CN113641700A/en
Application granted granted Critical
Publication of CN113641700B publication Critical patent/CN113641700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种基于Spring boot框架的数据处理方法及装置,涉及计算机技术领域。该方法的一具体实施方式包括:获取数据查询请求;所述数据查询请求指示了待查询数据库中的数据标识以及数据源信息;所述待查询数据库中的数据源信息是根据Spring boot框架中starter机制配置的;根据所述数据查询请求,生成查询语句;根据所述查询语句从与所述数据源信息对应的数据源中获取与所述数据标识对应的目标数据。该实施方式简化了配置数据源的流程,实现不同数据源的隔离,从而避免了数据源冲突的问题。

Figure 202111003667

The invention discloses a data processing method and device based on a Spring boot framework, and relates to the technical field of computers. A specific implementation of the method includes: obtaining a data query request; the data query request indicates the data identifier and data source information in the database to be queried; the data source information in the database to be queried is based on the starter in the Spring boot framework. A query statement is generated according to the data query request; and target data corresponding to the data identifier is acquired from a data source corresponding to the data source information according to the query statement. This embodiment simplifies the process of configuring data sources and realizes the isolation of different data sources, thereby avoiding the problem of data source conflict.

Figure 202111003667

Description

一种基于Spring boot框架的数据处理方法及装置A data processing method and device based on Spring boot framework

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种基于Spring boot框架的数据处理方法及装置。The invention relates to the field of computer technology, and in particular, to a data processing method and device based on a Spring boot framework.

背景技术Background technique

数据可视化的展示对于业务的分析调整有着重要的意义。The display of data visualization is of great significance for business analysis and adjustment.

目前,主要使用手工拼写代码或使用模板生成代码来实现持久化层数据转化成报表数据的过程。At present, the process of converting persistence layer data into report data is mainly realized by manually spelling code or using template to generate code.

在实现本发明过程中,发明人发现现有技术中至少存在如下问题:In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art:

在数据可视化过程中,使用手工拼写代码或模板生成代码来转化多个数据源的数据时,需要频繁切换数据源,这有可能造成数据不兼容或数据不一致的情况,导致数据的可视化展示出错。In the process of data visualization, when using manual spelling code or template-generated code to convert data from multiple data sources, it is necessary to switch data sources frequently, which may cause data incompatibility or data inconsistency, resulting in errors in data visualization.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供一种基于Spring boot框架的数据处理方法和装置,能够通过Spring boot的starter机制配置不同类型的数据源,简化了配置数据源的流程,并且实现了不同数据源的隔离,从而避免了数据源冲突的问题。In view of this, the embodiments of the present invention provide a data processing method and device based on the Spring boot framework, which can configure different types of data sources through the starter mechanism of Spring boot, simplifies the process of configuring data sources, and realizes different data sources. isolation, thus avoiding the problem of data source conflict.

进一步的,通过查询注解生成对应于不同数据源类型的查询语句,并根据不同的查询语句分别从多个数据源中查询数据,可以提高代码的重用率,减少了拼写代码的工作量,并且通过转化注解将查询得到的目标数据快速转化为报表格式的数据,进而提高了从持久化层数据到报表数据的转化效率。Further, by generating query statements corresponding to different data source types through query annotations, and querying data from multiple data sources according to different query statements, the code reuse rate can be improved, the workload of spelling code can be reduced, and by The conversion annotation quickly converts the target data obtained by the query into the data in the report format, thereby improving the conversion efficiency from the persistence layer data to the report data.

为实现上述目的,根据本发明实施例的第一方面,提供了一种基于Spring boot框架的数据处理方法,包括:In order to achieve the above purpose, according to the first aspect of the embodiments of the present invention, a data processing method based on the Spring boot framework is provided, including:

获取数据查询请求;所述数据查询请求指示了待查询数据库中的数据标识以及数据源信息;所述待查询数据库中的数据源信息是根据Spring boot框架中starter机制配置的;Obtain a data query request; the data query request indicates the data identifier and data source information in the database to be queried; the data source information in the database to be queried is configured according to the starter mechanism in the Spring boot framework;

根据所述数据查询请求,生成查询语句;generating a query statement according to the data query request;

根据所述查询语句从与所述数据源信息对应的数据源中获取与所述数据标识对应的目标数据。The target data corresponding to the data identifier is acquired from the data source corresponding to the data source information according to the query statement.

可选地,该方法还包括:Optionally, the method further includes:

根据数据可视化所需的格式,利用转化注解解释器对所述目标数据进行转化。The target data is transformed using a transformation annotation interpreter according to the format required for data visualization.

可选地,所述根据数据可视化所需的格式,利用转化注解解释器对所述目标数据进行转化,包括:Optionally, according to the format required for data visualization, using a transformation annotation interpreter to transform the target data, including:

根据所述转化注解解释器,对所述目标数据进行补充,使得补充后的所述目标数据连续;According to the conversion annotation interpreter, the target data is supplemented, so that the supplemented target data is continuous;

基于补充后的目标数据,将所述目标数据组合成Json格式的报表数据。Based on the supplemented target data, the target data is combined into Json format report data.

可选地,该方法还包括:Optionally, the method further includes:

根据所述待查询数据库中的数据源信息包含的数据源类型和数据源地址信息,生成配置文件;Generate a configuration file according to the data source type and data source address information contained in the data source information in the database to be queried;

通过starter加载所述配置文件,生成所述待查询数据库中一个或多个数据源分别对应的链接,将所述链接放入Spring容器中。Load the configuration file through the starter, generate links corresponding to one or more data sources in the database to be queried, and put the links into the Spring container.

可选地,所述根据所述数据查询请求,生成查询语句,包括:Optionally, generating a query statement according to the data query request includes:

通过调用配置有查询注解的接口,获取所述接口对应的查询注解及参数;所述参数包含了对应于所述数据标识的标准SQL语句;By invoking the interface configured with the query annotation, the query annotation and parameter corresponding to the interface are obtained; the parameter includes a standard SQL statement corresponding to the data identifier;

根据所述待查询数据库中的数据源信息包含的数据源类型,通过查询注解解释器将所述标准SQL语句转化成所述数据源类型对应的查询语句。According to the data source type contained in the data source information in the database to be queried, the standard SQL statement is converted into a query statement corresponding to the data source type by a query annotation interpreter.

可选地,所述通过调用配置有查询注解的接口,获取所述接口对应的查询注解及参数,包括:Optionally, the query annotation and parameters corresponding to the interface are obtained by invoking an interface configured with query annotations, including:

通过调用所述接口,获取Spring容器返回的对应于所述接口的代理类;Obtain the proxy class corresponding to the interface returned by the Spring container by calling the interface;

通过调用所述代理类的invoke方法,获取所述查询注解以及所述参数。Obtain the query annotation and the parameter by calling the invoke method of the proxy class.

可选地,所述根据所述查询语句从与所述数据源信息对应的数据源中获取与所述数据标识对应的目标数据,包括:Optionally, obtaining the target data corresponding to the data identifier from the data source corresponding to the data source information according to the query statement includes:

通过调用Spring容器的连接类,将所述查询语句通过Spring容器中的链接发送给对应的数据源;By calling the connection class of the Spring container, the query statement is sent to the corresponding data source through the link in the Spring container;

根据所述查询语句从所述数据源中获取目标数据。Obtain target data from the data source according to the query statement.

根据本发明实施例的第二方面,提供了一种基于Spring boot框架的数据处理装置,包括:请求获取模块,生成模块和数据获取模块;其中,According to a second aspect of the embodiments of the present invention, a data processing device based on the Spring boot framework is provided, including: a request acquisition module, a generation module and a data acquisition module; wherein,

所述请求获取模块,用于获取数据查询请求;所述数据查询请求指示了待查询数据库中的数据标识以及数据源信息;所述待查询数据库中的数据源信息是根据Springboot框架中starter机制配置的;The request obtaining module is used to obtain a data query request; the data query request indicates the data identifier and data source information in the database to be queried; the data source information in the database to be queried is configured according to the starter mechanism in the Springboot framework of;

所述生成模块,用于根据所述数据查询请求,生成查询语句;The generating module is configured to generate a query statement according to the data query request;

所述数据获取模块,用于根据所述查询语句从与所述数据源信息对应的数据源中获取与所述数据标识对应的目标数据。The data acquisition module is configured to acquire target data corresponding to the data identifier from a data source corresponding to the data source information according to the query statement.

根据本发明实施例的第三方面,提供了一种电子设备,包括:According to a third aspect of the embodiments of the present invention, an electronic device is provided, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述第一方面提供的一种基于Spring boot框架的数据处理方法中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the Spring boot framework-based data processing methods provided in the first aspect above. method described.

根据本发明实施例的第四方面,提供了一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现如上述第一方面提供的一种基于Spring boot框架的数据处理方法中任一所述的方法。According to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements the Spring boot framework-based data provided in the above-mentioned first aspect The method described in any of the processing methods.

上述发明中的一个实施例具有如下优点或有益效果:能够通过Spring boot的starter机制配置不同类型的数据源,简化了配置数据源的流程,并且实现了不同数据源的隔离,从而避免了数据源冲突的问题。An embodiment of the above invention has the following advantages or beneficial effects: it can configure different types of data sources through the starter mechanism of Spring boot, simplifies the process of configuring data sources, and realizes the isolation of different data sources, thereby avoiding data sources. conflict issues.

进一步的,通过查询注解生成对应于不同数据源类型的查询语句,并根据不同的查询语句分别从多个数据源中查询数据,可以提高代码的重用率,减少了拼写代码的工作量,并且通过转化注解将查询得到的目标数据快速转化为报表格式的数据,进而提高了从持久化层数据到报表数据的转化效率。Further, by generating query statements corresponding to different data source types through query annotations, and querying data from multiple data sources according to different query statements, the code reuse rate can be improved, the workload of spelling code can be reduced, and by The conversion annotation quickly converts the target data obtained by the query into the data in the report format, thereby improving the conversion efficiency from the persistence layer data to the report data.

上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above non-conventional alternatives will be described below in conjunction with specific embodiments.

附图说明Description of drawings

附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used for better understanding of the present invention and do not constitute an improper limitation of the present invention. in:

图1是本发明一个实施例提供的一种基于Spring boot框架的数据处理方法的流程示意图;1 is a schematic flowchart of a data processing method based on the Spring boot framework provided by an embodiment of the present invention;

图2是本发明一个实施例提供的数据查询和转化的流程示意图;2 is a schematic flowchart of data query and conversion provided by an embodiment of the present invention;

图3是本发明一个实施例提供的基于Spring boot的自定义starter的配置流程示意图;3 is a schematic diagram of the configuration flow of a Spring boot-based custom starter provided by an embodiment of the present invention;

图4是本发明一个实施例提供的一种通过查询注解进行数据查询的流程示意图;4 is a schematic flowchart of a data query through query annotation provided by an embodiment of the present invention;

图5是本发明一个实施例提供的一种基于Spring boot框架的数据处理装置的结构示意图;5 is a schematic structural diagram of a data processing device based on the Spring boot framework provided by an embodiment of the present invention;

图6是本发明实施例可以应用于其中的示例性系统架构图;FIG. 6 is an exemplary system architecture diagram to which an embodiment of the present invention may be applied;

图7是适于用来实现本发明实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 7 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

需要指出的是,在不冲突的情况下,本发明的实施例以及实施例中的技术特征可以相互结合。It should be pointed out that the embodiments of the present invention and the technical features in the embodiments may be combined with each other without conflict.

如图1所示,本发明实施例提供了一种基于Spring boot框架的数据处理方法,该方法可以包括以下步骤S101至S103:As shown in FIG. 1, an embodiment of the present invention provides a data processing method based on the Spring boot framework, and the method may include the following steps S101 to S103:

步骤S101:获取数据查询请求;所述数据查询请求指示了待查询数据库中的数据标识以及数据源信息;所述待查询数据库中的数据源信息是根据Spring boot框架中starter机制配置的。Step S101: Obtain a data query request; the data query request indicates the data identifier and data source information in the database to be queried; the data source information in the database to be queried is configured according to the starter mechanism in the Spring boot framework.

在数据可视化的过程中,需要先将持久化层的数据查询出来再做转化,持久化层的数据通常存储于不同的数据源中。从数据查询请求中,可以确定需要查询的数据标识以及数据源信息。In the process of data visualization, the data of the persistence layer needs to be queried first and then converted. The data of the persistence layer is usually stored in different data sources. From the data query request, the data identifier and data source information to be queried can be determined.

可理解的是,数据查询请求中指示的数据源信息提供了关于数据源的具体访问信息,也即通过数据源信息可以连接并访问对应的数据库中的数据源并进行数据查询。在数据可视化的过程中,可以在代码中直接写入数据库的查询语句以及数据源的访问地址、数据源类型、数据源的访问用户及访问密码等信息。这种简单集成数据源的方式对于一个或少数几个数据源来说比较高效。然而在数据源较多情况下,在代码中集成大量数据源的信息比较容易出错,而且重复性的代码会较多,对系统具有一定的侵入性。It is understandable that the data source information indicated in the data query request provides specific access information about the data source, that is, the data source in the corresponding database can be connected and accessed to perform data query through the data source information. In the process of data visualization, the query statement of the database, the access address of the data source, the data source type, the access user and the access password of the data source can be directly written in the code. This simple way of integrating data sources is more efficient for one or a few data sources. However, in the case of many data sources, it is easy to make mistakes when integrating a large number of data sources in the code, and there will be more repetitive codes, which is intrusive to the system.

因此在本发明的一个实施例中,优选的采取基于Spring boot的框架中的starter机制来配置数据库中的数据源,具体方式如下:根据所述待查询数据库中的数据源信息包含的数据源类型和数据源地址信息,生成配置文件;通过starter加载所述配置文件,生成所述待查询数据库中一个或多个数据源分别对应的链接,将所述链接放入Spring容器中。Therefore, in an embodiment of the present invention, the starter mechanism in the framework based on Spring boot is preferably used to configure the data source in the database, and the specific method is as follows: according to the data source type contained in the data source information in the database to be queried and data source address information, generate a configuration file; load the configuration file through the starter, generate a link corresponding to one or more data sources in the database to be queried, and put the link into the Spring container.

其中,待查询数据库中的数据源可以是很多个,这些数据源通常为关系型数据库,但是数据库具体的类型可以不同,例如可以是SQLServer、Oracle、DB2、Mysql等。并且每一个数据源都有其地址信息,也即,数据源的访问信息,包括数据源的url地址、数据源访问时的用户以及密码信息等。There may be many data sources in the database to be queried, and these data sources are usually relational databases, but the specific types of the databases may be different, such as SQL Server, Oracle, DB2, Mysql, and the like. And each data source has its address information, that is, the access information of the data source, including the url address of the data source, the user and password information when the data source is accessed, and so on.

在本发明的一个可实施方式中,可以根据Spring boot框架的原理自定义一个starter,根据starter的配置规范,将数据源的类型以及数据源的地址信息生成为starter的配置文件,通过starter加载配置文件后,为不同的数据源生成不同的数据源链接,将生成的链接放入到Spring容器中。在本发明的一个实施例中,通过自定义的starter自动配置数据源的流程可以如图3中步骤S301至304所示。In an embodiment of the present invention, a starter can be customized according to the principle of the Spring boot framework, and according to the configuration specification of the starter, the type of the data source and the address information of the data source are generated as the configuration file of the starter, and the configuration is loaded through the starter. After the file, generate different data source links for different data sources, and put the generated links into the Spring container. In an embodiment of the present invention, the process of automatically configuring the data source through a custom starter may be as shown in steps S301 to 304 in FIG. 3 .

可理解的是,在查询数据的时候,通过starter配置的数据源链接,可以方便地将查询语句通过这些链接发送给不同的数据源以获取目标数据,这样使得不同的数据源相互独立,从而可以起到隔绝数据源的效果。It is understandable that when querying data, through the data source links configured by the starter, the query statement can be easily sent to different data sources through these links to obtain the target data, which makes the different data sources independent of each other, so that the It has the effect of isolating the data source.

步骤S102:根据所述数据查询请求,生成查询语句。Step S102: Generate a query statement according to the data query request.

可理解的是,当获取到数据查询请求后,需要根据不同数据源类型确定不同的查询语句,以便使用这些查询语句在对应的数据源中查询数据。It is understandable that, after the data query request is obtained, different query statements need to be determined according to different data source types, so as to use these query statements to query data in the corresponding data source.

对于不同的数据库类型,其SQL查询语句不完全相同,例如,Mysql和SQLServer的数据库查询语句相似,但也存在比较多的差异。因此为了屏蔽底层查询语句的具体细节,提取出通用的查询流程,减少代码的重复量,在本发明的一个实施例中,优选采用注解的机制来实现,其方式如下:通过调用配置有查询注解的接口,获取所述接口对应的查询注解及参数;所述参数包含了对应于所述数据标识的标准SQL语句;根据所述待查询数据库中的数据源信息包含的数据源类型,通过查询注解解释器,将所述标准SQL语句转化成所述数据源类型对应的查询语句。For different database types, the SQL query statements are not exactly the same. For example, the database query statements of Mysql and SQL Server are similar, but there are also many differences. Therefore, in order to shield the specific details of the underlying query statement, extract a general query process, and reduce the amount of code duplication, in an embodiment of the present invention, it is preferable to use the annotation mechanism to achieve, the method is as follows: by calling the configuration with the query annotation interface, obtain the query annotations and parameters corresponding to the interface; the parameters include standard SQL statements corresponding to the data identifiers; according to the data source type contained in the data source information in the database to be queried, query annotations The interpreter converts the standard SQL statement into a query statement corresponding to the data source type.

在查询之前,可以预先定义一个查询注解,再新建一个接口,在该接口上配置该查询注解,也可以在系统已有的接口上配置该查询注解。在接口上配置查询注解时,可以在查询注解的参数中加入标准SQL语句,该SQL语句是针对要查询的数据标识而组织的。Before querying, you can define a query annotation in advance, create a new interface, configure the query annotation on the interface, or configure the query annotation on the existing interface of the system. When configuring query annotations on the interface, you can add standard SQL statements to the parameters of the query annotations. The SQL statements are organized according to the data identifiers to be queried.

例如,当前数据查询请求指示了需要从一张数据表中查询出message_type为messageA的所有数据,其中,数据标识为messageA,数据表为stripe_log_table,标准的SQL语句可以是:Select*From Stripe_log_table where message_type=’messageA’。假如新建的接口为Test(),查询注解为@SelectSql(),那么可以将此标准SQL语句作为查询注解@SelectSql的参数,并将添加了参数的查询注解添加到接口之前,如下所示:For example, the current data query request indicates that all data whose message_type is messageA needs to be queried from a data table, wherein the data identifier is messageA, the data table is stripe_log_table, and the standard SQL statement can be: Select*From Stripe_log_table where message_type= 'messageA'. If the newly created interface is Test() and the query annotation is @SelectSql(), you can use this standard SQL statement as a parameter of the query annotation @SelectSql, and add the parameter-added query annotation before the interface, as shown below:

@SelectSql(“Select*From Stripe_log_table where message_type=’messageA’”)Test()。@SelectSql("Select*From Stripe_log_table where message_type='messageA'")Test().

当然,查询注解中还可以包含其他参数,例如在标准SQL查询语句中通过传递参数的方式来确定要查询的数据标识,例如message_type的值可以由变量$messageType来确定,这个变量可以通过调用Test()接口传递给查询注解。例如可以写成如下方式:Of course, the query annotation can also contain other parameters. For example, in a standard SQL query statement, the data identifier to be queried is determined by passing parameters. For example, the value of message_type can be determined by the variable $messageType, which can be determined by calling Test( ) interface passed to the query annotation. For example, it can be written as follows:

@SelectSql(“Select*From Stripe_log_table where message_type=’$messageType’”)Test(@SqlParam(“messageType”)String messageType)。其中,@SqlParam(“messageType”)即为向@SelectSql传递参数的注解。@SelectSql("Select*From Stripe_log_table where message_type='$messageType'")Test(@SqlParam("messageType")String messageType). Among them, @SqlParam("messageType") is the annotation for passing parameters to @SelectSql.

在调用接口之前,还可以在starter的配置中配置查询注解所在的Java包,以便在starter启动时,自动在Java包中扫描接口,为配置有查询注解的接口生成动态代理类。该配置过程可以如图3中步骤S305至S308中所示。Before calling the interface, you can also configure the Java package where the query annotation is located in the configuration of the starter, so that when the starter starts, the interface is automatically scanned in the Java package, and a dynamic proxy class is generated for the interface configured with the query annotation. The configuration process may be as shown in steps S305 to S308 in FIG. 3 .

在调用接口时,本发明的一个可实施方式是:通过调用所述接口,获取Spring容器返回的对应于所述接口的代理类;通过调用所述代理类的invoke方法,获取所述查询注解以及所述参数。When invoking the interface, one possible implementation of the present invention is: by invoking the interface, the proxy class corresponding to the interface returned by the Spring container is obtained; by invoking the invoke method of the proxy class, the query annotation and the parameters.

例如,在调用Test()接口时,Spring容器会返回基于starter的配置生成的对应于Test()接口的动态代理类P,通过调用动态代理类P中的invoke()方法,获取到Test()接口上配置的查询注解@SelectSql,以及查询注解中的参数,也即标准的SQL语句。For example, when calling the Test() interface, the Spring container will return the dynamic proxy class P corresponding to the Test() interface generated based on the configuration of the starter, and obtain the Test() by calling the invoke() method in the dynamic proxy class P. The query annotation @SelectSql configured on the interface, and the parameters in the query annotation, that is, standard SQL statements.

在获取到标准的SQL语句之后,本发明的一个可实施方式为:根据所述根据所述待查询数据库中的数据源信息包含的数据源类型,通过查询注解解释器,将所述标准SQL语句转化成所述数据源类型对应的查询语句。After the standard SQL statement is obtained, an embodiment of the present invention is: according to the data source type contained in the data source information in the database to be queried, query the annotation interpreter to convert the standard SQL statement Converted into a query statement corresponding to the data source type.

其中,查询注解解释器可以根据starter中配置的数据源类型的不同,将查询注解参数中包含的标准SQL语句转化为与数据源类型对应的原生查询语句。例如,对于Mysql类型的数据源,则转化为符合Mysql查询语法的查询语句,对于SQLServer类型的数据源,则转化为符合SQLServer查询语法的查询语句。Among them, the query annotation interpreter can convert the standard SQL statement contained in the query annotation parameter into the native query statement corresponding to the data source type according to the different data source types configured in the starter. For example, for a data source of Mysql type, it is converted into a query statement that conforms to the Mysql query syntax, and for a data source of SQL Server type, it is converted to a query statement that conforms to the SQL Server query syntax.

可理解的是,将通用的查询流程提取到查询注解中,通过查询注解解释器对于不同的数据源类型生成对应的查询语句,可以减少重复性的代码量。而且查询注解解释器可以做到兼容常用的不同类型的数据源,在每次新增数据查询请求时,查询注解解释器可以做较少改动即能适应于不同的数据源类型,节省了因为数据源不同而修改代码的时间。It is understandable that the general query process is extracted into query annotations, and the query annotation interpreter generates corresponding query statements for different data source types, which can reduce the amount of repetitive code. Moreover, the query annotation interpreter can be compatible with different types of data sources that are commonly used. Every time a new data query request is added, the query annotation interpreter can adapt to different data source types with less changes, saving data The time to modify the code depending on the source.

步骤S103:根据所述查询语句从与所述数据源信息对应的数据源中获取与所述数据标识对应的目标数据。Step S103: Acquire target data corresponding to the data identifier from a data source corresponding to the data source information according to the query statement.

通过查询注解解释器转化生成了与数据源类型对应的查询语言后,则可以将查询语句发送给数据源进行查询,以得到目标数据。在本发明的一个实施例中,可以采用如下方式:通过调用Spring容器中的连接类,将所述查询语句通过Spring容器中的链接发送给对应的数据源;根据所述查询语句从所述数据源中获取目标数据。After the query language corresponding to the data source type is converted and generated by the query annotation interpreter, the query statement can be sent to the data source for query to obtain the target data. In an embodiment of the present invention, the following methods may be adopted: by invoking the connection class in the Spring container, the query statement is sent to the corresponding data source through the link in the Spring container; Get the target data from the source.

其中Spring容器中的连接类是在通过starter配置数据源时被装载进Spring容器中的。通过调用此连接类,可以将生成的不同类型数据源对应的查询语句发送给不同类型的数据源,例如,将Mysql的查询语句发送给数据库中类型为Mysql的数据源,将SQLServer的查询语句发送给数据库中类型为SQLServer的数据源。从而可以通过这些查询语句从不同的数据源中查询出目标数据。The connection class in the Spring container is loaded into the Spring container when the data source is configured through the starter. By calling this connection class, the generated query statements corresponding to different types of data sources can be sent to different types of data sources. Gives a data source of type SQLServer in the database. Therefore, the target data can be queried from different data sources through these query statements.

在获取到目标数据之后,可以将目标数据存储到内存中,以便后续提供给转化注解使用。After the target data is obtained, the target data can be stored in the memory for subsequent use by the transformation annotation.

可理解的是,通过查询注解以及查询注解解释器,使得在新增数据查询请求时,可以将已有的查询注解中的标准SQL语句修改成新增数据标识的标准SQL查询语句,或者新增一个查询注解并在参数中写入对应于新增数据标识的标准SQL语句,即能完成新增的查询目标数据的目的,这样可以大大节省重写代码的时间,提高数据可视化的效率。It is understandable that, through the query annotation and the query annotation interpreter, when a data query request is added, the standard SQL statement in the existing query annotation can be modified into a standard SQL query statement with a new data identifier, or a new data query can be added. A query annotation and writing a standard SQL statement corresponding to the newly added data identifier in the parameter can complete the purpose of querying the newly added target data, which can greatly save the time of rewriting the code and improve the efficiency of data visualization.

在从多个数据源获取到目标数据之后,需要将这些目标数据进行转化得到数据可视化所需的格式,也即转化为报表数据,以便可以根据报表数据生成具体的报表图形,例如生成折线图、柱状图、饼图等。After obtaining target data from multiple data sources, these target data need to be transformed to obtain the format required for data visualization, that is, converted into report data, so that specific report graphics can be generated according to the report data, such as generating line charts, Column charts, pie charts, etc.

在对目标数据进行转化时,本发明的一个实施例优选采用了注解机制来做数据转化,其方式可以如下:根据数据可视化所需的格式,利用转化注解解释器对所述目标数据进行转化。When transforming the target data, an embodiment of the present invention preferably adopts an annotation mechanism to transform the data, and the method may be as follows: according to the format required for data visualization, the target data is transformed using a transformation annotation interpreter.

其中,转化注解解释器可以将转化注解获取的数据进行转化处理从而得到报表数据。转化注解解释器对于数据的处理流程是通用的,可以兼容多种报表数据格式,适用于大部分常用数据源的数据转化。可理解的是,在新增数据可视化的请求时,转化注解解释器可以不做太多改动即可以将数据转化为需要的报表数据格式,节省了大量手工拼写代码的时间,达到快速响应并转化报表数据的目的,从而提高了报表数据的转化效率。The conversion annotation interpreter can convert the data obtained by the conversion annotation to obtain report data. The conversion annotation interpreter is universal for data processing, compatible with a variety of report data formats, and suitable for data conversion of most common data sources. It is understandable that when a new data visualization request is added, the conversion annotation interpreter can convert the data into the required report data format without making too many changes, saving a lot of time for manual code spelling, and achieving rapid response and conversion. The purpose of report data, thereby improving the conversion efficiency of report data.

使用转化注解解释器对目标数据进行转化的具体方式,可以如本发明的一个实施例中提供的,包括:根据所述转化注解解释器,对所述目标数据进行补充,使得补充后的所述目标数据连续;基于补充后的目标数据,将所述目标数据组合成Json格式的报表数据。The specific way of using the transformation annotation interpreter to transform the target data may be provided in an embodiment of the present invention, including: supplementing the target data according to the transformation annotation interpreter, so that the complemented The target data is continuous; based on the supplemented target data, the target data is combined into Json format report data.

在目标数据存储在内存之后,通过转化注解利用反射机制从内存里存储的目标数据中读取数据,再通过转化注解解释器将这些数据放入对应的集合中以方便转化。例如,将转化注解@X读取的数据放入集合x中,将转化注解@Y读取的数据放入集合y中,将转化注解@Data读取的数据放入在集合z中。这样可以按照生成折线图的坐标轴来对应数据集合,例如,X坐标轴的数据在x集合中,Y坐标轴的数据在y集合中,而X-Y坐标轴对应的点具体数据在集合z中。After the target data is stored in the memory, use the reflection mechanism to read the data from the target data stored in the memory through the transformation annotation, and then put the data into the corresponding collection through the transformation annotation interpreter to facilitate transformation. For example, put the data read by the transformation annotation @X into the set x, put the data read by the transformation annotation @Y into the set y, and put the data read by the transformation annotation @Data into the set z. In this way, the data set can be corresponding to the coordinate axis of the generated line chart. For example, the data of the X coordinate axis is in the x set, the data of the Y coordinate axis is in the y set, and the specific data of the point corresponding to the X-Y coordinate axis is in the set z.

其中在集合z中,数据的key为X’-Y’,key中的X’和Y’的值可能已经都在集合x和集合y中,也可能其中一个在已有的集合x或y中,还有可能均不在集合x与集合y中。也就是说结合集合z中的数据,可以有以下四种情况:对于集合z中的数据Z1,其对应的key为(X’1-Y’1),key中的X’1在集合x中,Y’1在集合y中;对于数据Z2,其对应的key为(X’2-Y’2),key中的X’2在集合x,Y’2不在集合y中;对于数据Z3,其对应的key为(X’3-Y’3),key中的X’3不在集合x中,Y’3在集合y中;对于数据Z4,其对应的key为(X’4-Y’4),key中的X’4不在集合x,Y’4也不在集合y中。In the set z, the key of the data is X'-Y', and the values of X' and Y' in the key may already be in the set x and y, or one of them may be in the existing set x or y. , and possibly neither in set x nor set y. That is to say, in combination with the data in the set z, there can be the following four situations: For the data Z1 in the set z, the corresponding key is (X'1-Y'1), and the X'1 in the key is in the set x. , Y'1 is in set y; for data Z2, its corresponding key is (X'2-Y'2), X'2 in key is in set x, and Y'2 is not in set y; for data Z3, The corresponding key is (X'3-Y'3), X'3 in the key is not in the set x, and Y'3 is in the set y; for the data Z4, the corresponding key is (X'4-Y' 4), X'4 in key is not in set x, and Y'4 is not in set y either.

那么为了让X、Y坐标轴的数据与z集合中的数据一一对应,可以将z集合数据的key里不在集合x中的X’的值,补充到对应的x集合中;将z集合数据的key里不在集合y中的Y’的值,补充到对应的y集合中。Then in order to make the data of the X and Y coordinate axes correspond one-to-one with the data in the z set, the value of X' in the key of the z set data that is not in the set x can be added to the corresponding x set; the z set data can be added to the corresponding x set. The value of Y' in the key that is not in the set y is added to the corresponding y set.

对于连续型的坐标轴数据,还可以补充坐标集合中缺少的连续值,以使坐标轴数据连续。例如,Y轴为时间轴,当前集合y中的数据为7月1日、7月3日、7月5日,此时可以补充集合中没有的数据,例如,7月2日、7月4日这两个数据,以使得坐标轴Y的时间数据连续。For continuous coordinate axis data, the missing continuous values in the coordinate set can also be supplemented to make the coordinate axis data continuous. For example, the Y axis is the time axis, and the data in the current collection y are July 1, July 3, and July 5. At this time, the data that is not in the collection can be supplemented, for example, July 2, July 4 These two data of day, so that the time data of the coordinate axis Y is continuous.

根据补充后的数据集合x、y、z,将集合中的数据组合成Json格式的报表数据,以便为生成可视化的报表图形时所使用。According to the supplemented data sets x, y, and z, the data in the set is combined into Json format report data, so as to be used when generating a visual report graph.

根据本发明实施例提供一种基于Spring boot框架的数据处理方法,能够通过Spring boot的starter机制配置不同类型的数据源,简化了配置数据源的流程,并且实现了不同数据源的隔离,从而避免了数据源冲突的问题。According to an embodiment of the present invention, a data processing method based on the Spring boot framework is provided, which can configure different types of data sources through the starter mechanism of Spring boot, simplifies the process of configuring the data sources, and realizes the isolation of different data sources, thereby avoiding The problem of data source conflict is solved.

进一步的,通过查询注解生成对应于不同数据源类型的查询语句,并根据不同的查询语句分别从多个数据源中查询数据,可以提高代码的重用率,减少了拼写代码的工作量,并且通过转化注解将查询得到的目标数据快速转化为报表格式的数据,进而提高了从持久化层数据到报表数据的转化效率。Further, by generating query statements corresponding to different data source types through query annotations, and querying data from multiple data sources according to different query statements, the code reuse rate can be improved, the workload of spelling code can be reduced, and by The conversion annotation quickly converts the target data obtained by the query into the data in the report format, thereby improving the conversion efficiency from the persistence layer data to the report data.

图2是本发明一个实施例提供的一种数据查询和转化的流程示意图。其具体步骤如下:FIG. 2 is a schematic flowchart of a data query and transformation provided by an embodiment of the present invention. The specific steps are as follows:

步骤S201:获取查询注解。Step S201: Obtain query annotations.

通过调用配置有查询注解的接口,获取查询注解以及参数。Obtain query annotations and parameters by calling the interface configured with query annotations.

步骤S202:通过查询注解解释器,生成查询语句。Step S202: Generate a query statement through the query annotation interpreter.

通过查询注解解释器,将查询注解中包含的标准SQL语句转化生成为与数据源类型相对应的查询语句。Through the query annotation interpreter, the standard SQL statement contained in the query annotation is converted into a query statement corresponding to the data source type.

步骤S203:将查询语句发送给数据源。Step S203: Send the query statement to the data source.

通过starter配置的Spring容器中的链接,将查询语句发送给不同类型的数据源。Query statements are sent to different types of data sources through links in the Spring container configured by the starter.

步骤S204:从数据源中通过查询语句获取目标数据。Step S204: Obtain target data from a data source through a query statement.

获取到目标数据后,将目标数据存储在内存中。After obtaining the target data, store the target data in the memory.

步骤S205:通过转化注解读取目标数据。Step S205: Read the target data through the conversion annotation.

利用反射机制通过转化注解从内存里的目标数据中获取转化注解对应的数据。Use the reflection mechanism to obtain the data corresponding to the transformation annotation from the target data in the memory through the transformation annotation.

步骤S206:通过转化注解解释器,生成报表数据。Step S206: Generate report data by converting the annotation interpreter.

通过转化注解解释器,将转化注解获取的数据进行补充,并将数据组合成Json格式的报表数据。后续可以将生成的报表数据发送给生成报表图形的接口以便生成图表。Through the conversion annotation interpreter, the data obtained by the conversion annotation is supplemented, and the data is combined into Json format report data. Subsequently, the generated report data can be sent to the interface for generating report graphs to generate graphs.

如图3所示,本发明实施例提供了一种基于Spring boot框架的数据处理方法中自定义starter配置数据源以及配置接口的动态代理的流程示意图。As shown in FIG. 3 , an embodiment of the present invention provides a schematic flowchart of a custom starter configuration data source and a dynamic proxy configuration interface in a data processing method based on the Spring boot framework.

其中,配置数据源的具体步骤可以为S301至S304:The specific steps of configuring the data source may be S301 to S304:

步骤S301:将数据源信息写入自定义bean对应的配置文件。Step S301: Write the data source information into the configuration file corresponding to the custom bean.

其中数据源信息包括数据源的类型以及数据源的url地址、数据源的访问用户及密码信息。。The data source information includes the type of the data source, the url address of the data source, the access user and password information of the data source. .

步骤S302:确定是否满足创建bean的条件。Step S302: Determine whether the conditions for creating a bean are satisfied.

步骤S303:加载自定义bean。Step S303: Load the custom bean.

步骤S304:加载对应的配置文件,根据数据源类型,生成不同的链接,放入Spring容器中。Step S304: Load the corresponding configuration file, generate different links according to the data source type, and put them into the Spring container.

加载bean对应的数据源的配置文件,根据数据源类型的不同,生成不同的数据源的链接,将这些链接放入Spring容器中。Load the configuration file of the data source corresponding to the bean, generate links to different data sources according to the type of data source, and put these links into the Spring container.

配置接口的动态代理的具体步骤可以为S305至S308:The specific steps for configuring the dynamic proxy of the interface may be S305 to S308:

步骤S305:配置查询注解所在Java包。Step S305: Configure the Java package where the query annotation is located.

其中查询注解可以为多个,将查询注解所在包的路径写入starter的配置文件中。There can be multiple query annotations, and the path of the package where the query annotation is located is written into the configuration file of the starter.

步骤S306:导入查询注解扫描器。Step S306: Import the query annotation scanner.

步骤S307:根据注解所在Java包,扫描接口。Step S307: Scan the interface according to the Java package where the annotation is located.

使用步骤S306中的扫描器,对Java包中的接口进行扫描,获取配置有查询注解的接口。Use the scanner in step S306 to scan the interfaces in the Java package to obtain interfaces configured with query annotations.

步骤S308:生成接口对应的动态代理类,将动态代理类放入beanDefinition中。Step S308: Generate a dynamic proxy class corresponding to the interface, and put the dynamic proxy class into the beanDefinition.

在配置完查询注解的接口动态代理类后,在Spring的后续流程则可以根据beanDefinition对bean进行实例化,然后在接口的调用过程中,通过Spring容器中实例化的bean返回对应的动态代理类,利用动态代理类中的方法获取查询注解参数中的标准SQL语句,并通过查询注解解释器生成对应于不同数据源类型的查询语句,从不同数据源中查询数据。其具体流程可以如图4所示。After configuring the interface dynamic proxy class of the query annotation, in the subsequent process of Spring, the bean can be instantiated according to the beanDefinition, and then during the interface invocation process, the corresponding dynamic proxy class is returned through the instantiated bean in the Spring container. Use the methods in the dynamic proxy class to obtain standard SQL statements in query annotation parameters, and generate query statements corresponding to different data source types through the query annotation interpreter to query data from different data sources. The specific process can be shown in Figure 4.

图4是本发明一个实施例提供的一种基于Spring boot框架的数据处理方法中数据查询的流程示意图,具体步骤可以如下:4 is a schematic flowchart of a data query in a data processing method based on the Spring boot framework provided by an embodiment of the present invention, and the specific steps may be as follows:

步骤S401:运行时,调用配置有查询注解的接口。Step S401: At runtime, the interface configured with the query annotation is invoked.

步骤S402:Spring容器返回动态代理类。Step S402: The Spring container returns the dynamic proxy class.

Spring容器返回通过starter配置的接口对应的动态代理类。The Spring container returns the dynamic proxy class corresponding to the interface configured through the starter.

步骤S403:调用动态代理类中的invoke方法。Step S403: call the invoke method in the dynamic proxy class.

步骤S404:获取查询注解及参数。Step S404: Obtain query annotations and parameters.

通过invoke方法以及反射机制,可以获取接口上的查询注解及参数。Through the invoke method and reflection mechanism, query annotations and parameters on the interface can be obtained.

步骤S405:根据查询注解解释器生成不同的查询语句。Step S405: Generate different query statements according to the query annotation interpreter.

将查询注解参数中包含的标准SQL语句转化为对应于不同数据源类型的原生查询语句。Convert standard SQL statements contained in query annotation parameters into native query statements corresponding to different data source types.

步骤S406:调用Spring容器中的连接类。Step S406: Invoke the connection class in the Spring container.

Spring容器中的连接类是在starter配置数据源时装载到Spring容器中的。通过连接类,可以将这些原生的查询语句通过Spring容器中的链接发送给不同的数据源,从而从不同的数据源中查询出目标数据。The connection class in the Spring container is loaded into the Spring container when the starter configures the data source. Through the connection class, these native query statements can be sent to different data sources through the links in the Spring container, so as to query the target data from different data sources.

步骤S407:获取查询结果并返回。Step S407: Obtain the query result and return it.

获取从不同的数据源中查询到的目标数据,将结果返回给代理类的invoke方法,从而将目标数据返回并存储到内存里。Obtain the target data queried from different data sources, and return the result to the invoke method of the proxy class, thereby returning and storing the target data in memory.

如图5所示,本发明实施例提供了一种基于Spring boot框架的数据处理装置500,包括:请求获取模块501,生成模块502和数据获取模块503;其中,As shown in FIG. 5, an embodiment of the present invention provides a data processing apparatus 500 based on the Spring boot framework, including: a request acquisition module 501, a generation module 502 and a data acquisition module 503; wherein,

所述请求获取模块501,用于获取数据查询请求;所述数据查询请求指示了待查询数据库中的数据标识以及数据源信息;所述待查询数据库中的数据源信息是根据Springboot框架中starter机制配置的;The request obtaining module 501 is used to obtain a data query request; the data query request indicates the data identifier and data source information in the database to be queried; the data source information in the database to be queried is based on the starter mechanism in the Springboot framework configured;

所述生成模块502,用于根据所述数据查询请求,生成查询语句;The generating module 502 is configured to generate a query statement according to the data query request;

所述数据获取模块503,用于根据所述查询语句从与所述数据源信息对应的数据源中获取与所述数据标识对应的目标数据。The data acquisition module 503 is configured to acquire target data corresponding to the data identifier from a data source corresponding to the data source information according to the query statement.

本发明一个实施例中,所述请求获取模块501,用于根据所述待查询数据库中的数据源信息包含的数据源类型和数据源地址信息,生成配置文件;通过starter加载所述配置文件,生成所述待查询数据库中一个或多个数据源分别对应的链接,将所述链接放入Spring容器中。In an embodiment of the present invention, the request obtaining module 501 is configured to generate a configuration file according to the data source type and data source address information contained in the data source information in the database to be queried; load the configuration file through a starter, Links corresponding to one or more data sources in the database to be queried are generated, and the links are put into the Spring container.

本发明一个实施例中,所述生成模块502,用于通过调用配置有查询注解的接口,获取所述接口对应的查询注解及参数;所述参数包含了对应于所述数据标识的标准SQL语句;根据所述待查询数据库中的数据源信息包含的数据源类型,通过查询注解解释器,将所述标准SQL语句转化成所述数据源类型对应的查询语句。In an embodiment of the present invention, the generating module 502 is configured to obtain query annotations and parameters corresponding to the interface by calling an interface configured with query annotations; the parameters include standard SQL statements corresponding to the data identifiers ; According to the data source type contained in the data source information in the database to be queried, the standard SQL statement is converted into a query statement corresponding to the data source type through a query annotation interpreter.

本发明一个实施例中,所述生成模块502,用于通过调用所述接口,获取Spring容器返回的对应于所述接口的代理类;通过调用所述代理类的invoke方法,获取所述查询注解以及所述参数。In an embodiment of the present invention, the generating module 502 is configured to obtain the proxy class corresponding to the interface returned by the Spring container by calling the interface; and obtain the query annotation by calling the invoke method of the proxy class and the parameters.

本发明一个实施例中,所述数据获取模块503,用于通过调用Spring容器中的连接类,将所述查询语句通过Spring容器中的链接发送给对应的数据源;根据所述查询语句从所述数据源中获取目标数据。In an embodiment of the present invention, the data acquisition module 503 is configured to send the query statement to the corresponding data source through the link in the Spring container by invoking the connection class in the Spring container; Obtain the target data from the data source described above.

本发明一个实施例中,所述数据获取模块503,用于根据数据可视化所需的格式,利用转化注解解释器对所述目标数据进行转化。In an embodiment of the present invention, the data acquisition module 503 is configured to transform the target data by using a transformation annotation interpreter according to a format required for data visualization.

本发明一个实施例中,所述数据获取模块503,用于根据所述转化注解解释器,对所述目标数据进行补充,使得补充后的所述目标数据连续;基于补充后的目标数据,将所述目标数据组合成Json格式的报表数据。In an embodiment of the present invention, the data acquisition module 503 is configured to supplement the target data according to the conversion annotation interpreter, so that the supplemented target data is continuous; The target data is combined into report data in Json format.

根据本发明实施例提供一种基于Spring boot框架的数据处理装置,能够通过Spring boot的starter机制配置不同类型的数据源,简化了配置数据源的流程,并且实现了不同数据源的隔离,从而避免了数据源冲突的问题。According to an embodiment of the present invention, a data processing device based on the Spring boot framework is provided, which can configure different types of data sources through the starter mechanism of Spring boot, simplifies the process of configuring data sources, and realizes the isolation of different data sources, thereby avoiding The problem of data source conflict is solved.

进一步的,通过查询注解生成对应于不同数据源类型的查询语句,并根据不同的查询语句分别从多个数据源中查询数据,可以提高代码的重用率,减少了拼写代码的工作量,并且通过转化注解将查询得到的目标数据快速转化为报表格式的数据,进而提高了从持久化层数据到报表数据的转化效率。Further, by generating query statements corresponding to different data source types through query annotations, and querying data from multiple data sources according to different query statements, the code reuse rate can be improved, the workload of spelling code can be reduced, and by The conversion annotation quickly converts the target data obtained by the query into the data in the report format, thereby improving the conversion efficiency from the persistence layer data to the report data.

图6出了可以应用本发明实施例的一种基于Spring boot框架的数据处理方法及装置的示例性系统架构600FIG. 6 shows an exemplary system architecture 600 of a data processing method and apparatus based on the Spring boot framework to which embodiments of the present invention can be applied

如图6示,系统架构600可以包括终端设备601、602、603,网络604和服务器605。网络604用以在终端设备601、602、603和服务器605之间提供通信链路的介质。网络604可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 6 , the system architecture 600 may include terminal devices 601 , 602 , and 603 , a network 604 and a server 605 . The network 604 is a medium used to provide a communication link between the terminal devices 601 , 602 , 603 and the server 605 . Network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备601、602、603通过网络604与服务器605交互,以接收或发送消息等。The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages and the like.

终端设备601、602、603可以是具有显示屏并且支持信息浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting information browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

服务器605可以是提供各种服务的服务器,例如对用户利用终端设备601、602、603提出的数据查询请求提供支持的后台管理服务器。后台管理服务器可以对接收到的数据查询请求等数据进行分析等处理,并将处理结果反馈给终端设备。The server 605 may be a server that provides various services, such as a background management server that provides support for data query requests made by users using the terminal devices 601 , 602 , and 603 . The background management server can analyze and process the received data query request and other data, and feed back the processing result to the terminal device.

需要说明的是,本发明实施例所提供的基于Spring boot框架的数据处理方法一般由服务器605执行,相应地,基于Spring boot框架的数据处理装置一般设置于服务器605中。It should be noted that the data processing method based on the Spring boot framework provided by the embodiment of the present invention is generally executed by the server 605 , and accordingly, the data processing apparatus based on the Spring boot framework is generally set in the server 605 .

应该理解,图6的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 6 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.

下面参考图7,其示出了适于用来实现本发明实施例的终端设备的计算机系统700的结构示意图。图7出的终端设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring next to FIG. 7 , it shows a schematic structural diagram of a computer system 700 suitable for implementing a terminal device according to an embodiment of the present invention. The terminal device shown in FIG. 7 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.

如图7示,计算机系统700包括中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有系统700操作所需的各种程序和数据。CPU 701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7, a computer system 700 includes a central processing unit (CPU) 701, which can be processed according to a program stored in a read only memory (ROM) 702 or a program loaded from a storage section 708 into a random access memory (RAM) 703 Various appropriate actions and processes are performed. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701 , the ROM 702 , and the RAM 703 are connected to each other through a bus 704 . An input/output (I/O) interface 705 is also connected to bus 704 .

以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器Z10也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc. ; and a communication section 709 including a network interface card such as a LAN card, a modem, and the like. The communication section 709 performs communication processing via a network such as the Internet. Drive Z10 is also connected to I/O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

特别地,根据本发明公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本发明的系统中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as computer software programs in accordance with the disclosed embodiments of the present invention. For example, embodiments disclosed herein include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 709 and/or installed from the removable medium 711 . When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the system of the present invention are executed.

需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

描述于本发明实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块也可以设置在处理器中,例如,可以描述为:一种处理器包括获取模块,生成模块,确定模块。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,获取模块还可以被描述为“获取请求的模块”。The modules involved in the embodiments of the present invention may be implemented in a software manner, and may also be implemented in a hardware manner. The described modules can also be set in the processor, for example, it can be described as: a processor includes an acquisition module, a generation module, and a determination module. Wherein, the names of these modules do not constitute a limitation of the module itself under certain circumstances, for example, the acquisition module may also be described as "the module that acquires the request".

作为另一方面,本发明还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该设备包括:获取数据查询请求;所述数据查询请求指示了待查询数据库中的数据标识以及数据源信息;所述待查询数据库中的数据源信息是根据Spring boot框架中starter机制配置的;根据所述数据查询请求,生成查询语句;根据所述查询语句从与所述数据源信息对应的数据源中获取与所述数据标识对应的目标数据。As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or may exist alone without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the device includes: obtaining a data query request; the data query request indicates the data in the database to be queried Identification and data source information; the data source information in the database to be queried is configured according to the starter mechanism in the Spring boot framework; according to the data query request, a query statement is generated; according to the query statement, from and the data source information The target data corresponding to the data identifier is obtained from the corresponding data source.

根据本发明实施例的技术方案,能够通过Spring boot的starter机制配置不同类型的数据源,简化了配置数据源的流程,并且实现了不同数据源的隔离,从而避免了数据源冲突的问题。According to the technical solution of the embodiment of the present invention, different types of data sources can be configured through the starter mechanism of Spring boot, which simplifies the process of configuring data sources, and realizes the isolation of different data sources, thereby avoiding the problem of data source conflicts.

进一步的,通过查询注解生成对应于不同数据源类型的查询语句,并根据不同的查询语句分别从多个数据源中查询数据,可以提高代码的重用率,减少了拼写代码的工作量,并且通过转化注解将查询得到的目标数据快速转化为报表格式的数据,进而提高了从持久化层数据到报表数据的转化效率。Further, by generating query statements corresponding to different data source types through query annotations, and querying data from multiple data sources according to different query statements, the code reuse rate can be improved, the workload of spelling code can be reduced, and by The conversion annotation quickly converts the target data obtained by the query into the data in the report format, thereby improving the conversion efficiency from the persistence layer data to the report data.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. A data processing method based on a Spring boot frame is characterized by comprising the following steps:
acquiring a data query request; the data query request indicates data identification and data source information in a database to be queried; the data source information in the database to be inquired is configured according to a starter mechanism in a Spring boot frame;
generating a query statement according to the data query request;
and acquiring target data corresponding to the data identification from a data source corresponding to the data source information according to the query statement.
2. The method of claim 1, further comprising:
and converting the target data by using a conversion annotation interpreter according to a format required by data visualization.
3. The method of claim 2, wherein translating the target data with a translation annotation interpreter according to a format required for data visualization comprises:
supplementing the target data according to the conversion annotation interpreter, so that the supplemented target data are continuous;
and combining the target data into report data in a Json format based on the supplemented target data.
4. The method of claim 1, further comprising:
generating a configuration file according to the data source type and the data source address information contained in the data source information in the database to be queried;
and loading the configuration file through a starter, generating links corresponding to one or more data sources in the database to be queried respectively, and putting the links into a Spring container.
5. The method of claim 1, wherein generating a query statement from the data query request comprises:
acquiring query annotations and parameters corresponding to an interface by calling the interface configured with the query annotations; the parameter comprises a standard SQL statement corresponding to the data identifier;
and converting the standard SQL statement into a query statement corresponding to the data source type through a query annotation interpreter according to the data source type contained in the data source information in the database to be queried.
6. The method according to claim 5, wherein the obtaining of the query annotation and the parameter corresponding to the interface by calling the interface configured with the query annotation comprises:
acquiring an agent class corresponding to the interface returned by the Spring container by calling the interface;
and acquiring the query annotation and the parameter by calling an invoke method of the proxy class.
7. The method of claim 4, wherein the obtaining target data corresponding to the data identifier from the data source corresponding to the data source information according to the query statement comprises:
sending the query statement to a corresponding data source through a link in a Spring container by calling a connection class in the Spring container;
and acquiring target data from the data source according to the query statement.
8. A Spring boot frame-based data processing apparatus, comprising: the device comprises a request acquisition module, a generation module and a data acquisition module; wherein,
the request acquisition module is used for acquiring a data query request; the data query request indicates data identification and data source information in a database to be queried; the data source information in the database to be inquired is configured according to a starter mechanism in a Spring boot frame;
the generating module is used for generating a query statement according to the data query request;
and the data acquisition module is used for acquiring target data corresponding to the data identifier from a data source corresponding to the data source information according to the query statement.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202111003667.3A 2021-08-30 2021-08-30 A data processing method and device based on Spring boot framework Active CN113641700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111003667.3A CN113641700B (en) 2021-08-30 2021-08-30 A data processing method and device based on Spring boot framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111003667.3A CN113641700B (en) 2021-08-30 2021-08-30 A data processing method and device based on Spring boot framework

Publications (2)

Publication Number Publication Date
CN113641700A true CN113641700A (en) 2021-11-12
CN113641700B CN113641700B (en) 2025-02-21

Family

ID=78424450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111003667.3A Active CN113641700B (en) 2021-08-30 2021-08-30 A data processing method and device based on Spring boot framework

Country Status (1)

Country Link
CN (1) CN113641700B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114297204A (en) * 2021-12-31 2022-04-08 奇安信科技集团股份有限公司 Data storage and retrieval method and device for heterogeneous data source
CN115033312A (en) * 2022-08-09 2022-09-09 中化现代农业有限公司 ElasticSearch data operation method and device
CN115237889A (en) * 2022-08-03 2022-10-25 平安付科技服务有限公司 Database switching method and device, storage medium and computer equipment
CN115422167A (en) * 2022-09-27 2022-12-02 北京柏睿数据技术股份有限公司 Cross-data source database view visualization construction method and system
CN116910081A (en) * 2023-06-30 2023-10-20 北京柏睿数据技术股份有限公司 Data dynamic query method and system based on pluggable connector
CN117331964A (en) * 2023-12-01 2024-01-02 成都明途科技有限公司 Data query method, device, equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040027350A1 (en) * 2002-08-08 2004-02-12 Robert Kincaid Methods and system for simultaneous visualization and manipulation of multiple data types
CN106855889A (en) * 2016-12-29 2017-06-16 深圳市华傲数据技术有限公司 The development approach and device of the extemporaneous query function of the tables of data of different data sources
US20180011903A1 (en) * 2016-07-07 2018-01-11 Accenture Global Solutions Limited Query rewriting in a relational data harmonization framework
CN108345691A (en) * 2018-03-15 2018-07-31 北京神州泰岳软件股份有限公司 Data source general procedure framework establishment method, data source processing method and processing device
US10191734B1 (en) * 2015-12-15 2019-01-29 Open Text Corporation Method and system for software application optimization using natural language-based queries
CN109299172A (en) * 2018-08-27 2019-02-01 北京神州泰岳软件股份有限公司 It is a kind of based on Spring Boot varying environment data source cut-in method and device
CN110019350A (en) * 2017-07-28 2019-07-16 北京京东尚科信息技术有限公司 Data query method and apparatus based on configuration information
CN110825767A (en) * 2019-11-15 2020-02-21 江苏满运软件科技有限公司 Data query method, platform, equipment and storage medium
US20200142953A1 (en) * 2018-11-01 2020-05-07 Dell Products L.P. Enterprise Form Dependency Visualization and Management
CN111209298A (en) * 2020-01-06 2020-05-29 平安科技(深圳)有限公司 Method, device, equipment and storage medium for querying database data
CN111698205A (en) * 2020-04-29 2020-09-22 中国平安财产保险股份有限公司 Service calling method and related equipment
CN111813394A (en) * 2020-05-22 2020-10-23 广州太平洋电脑信息咨询有限公司 Zeus framework development method based on Springboot and Zeus framework
CN112579625A (en) * 2020-09-28 2021-03-30 京信数据科技有限公司 Multi-source heterogeneous data treatment method and device
CN112685032A (en) * 2020-12-31 2021-04-20 北京赛思信安技术股份有限公司 Dynamic api visualization generation method based on spring boot frame
CN113094387A (en) * 2021-04-08 2021-07-09 杭州数梦工场科技有限公司 Data query method and device, electronic equipment and machine-readable storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040027350A1 (en) * 2002-08-08 2004-02-12 Robert Kincaid Methods and system for simultaneous visualization and manipulation of multiple data types
US10191734B1 (en) * 2015-12-15 2019-01-29 Open Text Corporation Method and system for software application optimization using natural language-based queries
US20180011903A1 (en) * 2016-07-07 2018-01-11 Accenture Global Solutions Limited Query rewriting in a relational data harmonization framework
CN106855889A (en) * 2016-12-29 2017-06-16 深圳市华傲数据技术有限公司 The development approach and device of the extemporaneous query function of the tables of data of different data sources
CN110019350A (en) * 2017-07-28 2019-07-16 北京京东尚科信息技术有限公司 Data query method and apparatus based on configuration information
CN108345691A (en) * 2018-03-15 2018-07-31 北京神州泰岳软件股份有限公司 Data source general procedure framework establishment method, data source processing method and processing device
CN109299172A (en) * 2018-08-27 2019-02-01 北京神州泰岳软件股份有限公司 It is a kind of based on Spring Boot varying environment data source cut-in method and device
US20200142953A1 (en) * 2018-11-01 2020-05-07 Dell Products L.P. Enterprise Form Dependency Visualization and Management
CN110825767A (en) * 2019-11-15 2020-02-21 江苏满运软件科技有限公司 Data query method, platform, equipment and storage medium
CN111209298A (en) * 2020-01-06 2020-05-29 平安科技(深圳)有限公司 Method, device, equipment and storage medium for querying database data
CN111698205A (en) * 2020-04-29 2020-09-22 中国平安财产保险股份有限公司 Service calling method and related equipment
CN111813394A (en) * 2020-05-22 2020-10-23 广州太平洋电脑信息咨询有限公司 Zeus framework development method based on Springboot and Zeus framework
CN112579625A (en) * 2020-09-28 2021-03-30 京信数据科技有限公司 Multi-source heterogeneous data treatment method and device
CN112685032A (en) * 2020-12-31 2021-04-20 北京赛思信安技术股份有限公司 Dynamic api visualization generation method based on spring boot frame
CN113094387A (en) * 2021-04-08 2021-07-09 杭州数梦工场科技有限公司 Data query method and device, electronic equipment and machine-readable storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114297204A (en) * 2021-12-31 2022-04-08 奇安信科技集团股份有限公司 Data storage and retrieval method and device for heterogeneous data source
CN114297204B (en) * 2021-12-31 2024-12-20 奇安信科技集团股份有限公司 Data storage and retrieval method and device for heterogeneous data sources
CN115237889A (en) * 2022-08-03 2022-10-25 平安付科技服务有限公司 Database switching method and device, storage medium and computer equipment
CN115033312A (en) * 2022-08-09 2022-09-09 中化现代农业有限公司 ElasticSearch data operation method and device
CN115422167A (en) * 2022-09-27 2022-12-02 北京柏睿数据技术股份有限公司 Cross-data source database view visualization construction method and system
CN115422167B (en) * 2022-09-27 2023-02-17 北京柏睿数据技术股份有限公司 Cross-data source database view visualization construction method and system
CN116910081A (en) * 2023-06-30 2023-10-20 北京柏睿数据技术股份有限公司 Data dynamic query method and system based on pluggable connector
CN117331964A (en) * 2023-12-01 2024-01-02 成都明途科技有限公司 Data query method, device, equipment and storage medium
CN117331964B (en) * 2023-12-01 2024-02-27 成都明途科技有限公司 Data query method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113641700B (en) 2025-02-21

Similar Documents

Publication Publication Date Title
CN108519967B (en) Chart visualization method and device, terminal and storage medium
CN113641700A (en) Data processing method and device based on Spring boot frame
CN112860798B (en) Data processing method and device, electronic equipment and storage medium
CN107832045B (en) Method and apparatus for cross programming language interface conversion
CN111026931B (en) Data query method, device, equipment and medium
CN113760948A (en) Method and device for querying data
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN110109983B (en) Method and device for operating Redis database
JPH05342006A (en) Object directed programming system
CN110647316B (en) Method and device for generating universal business object, computer equipment and storage medium
WO2017156916A1 (en) Data access method and device
CN106997393A (en) Data query method, device, server and storage medium
CN115344614A (en) Data processing method, device, storage medium and electronic equipment
CN114036183A (en) A data ETL processing method, device, equipment and medium
CN110764770A (en) Method and device for conversion and assignment between objects
CN111125064A (en) Method and device for generating database mode definition statement
CN110134427A (en) A method and device for generating code files
CN117540805A (en) Data processing methods, devices, electronic equipment and storage media
CN114610806A (en) Data query method and device, electronic equipment and storage medium
CN113138760B (en) Page generation method and device, electronic equipment and medium
CN116028028A (en) Request function generation method, device, equipment and storage medium
CN112256710B (en) Metadata-based data statistical analysis chart generation system, method and equipment
CN114398074A (en) Method and device for automatic interface development
CN110888869A (en) A data processing method and device
CN117742689A (en) Screen configuration method, device, system, electronic device and storage medium

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
GR01 Patent grant
GR01 Patent grant