跳至主要內容
Springboot整合Ureport

项目构建过程

开发构建说明

【1】创建Springboot项目

【2】引入ureport相关依赖

【3】配置application.yml配置文件

【4】编写config,引入ureport

步骤参考

​ 通过idea快速构建创建springboot项目,引入ureport相关依赖,构建pom.xml参考如下所示

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.6.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.rsp</groupId>
    <artifactId>springboot-ureport</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>springboot-ureport</name>
    <description>springboot ureport</description>
    <properties>
        <java.version>1.8</java.version>
        <spring.boot.version>2.2.6.RELEASE</spring.boot.version>
        <druid.version>1.1.22</druid.version>
        <mysql.version>5.1.47</mysql.version>
        <ureport.version>2.2.9</ureport.version>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
            <version>${spring.boot.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <version>${spring.boot.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
            <version>${spring.boot.version}</version>
        </dependency>

        <!-- 引入数据库连接相关jar -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid</artifactId>
            <version>${druid.version}</version>
        </dependency>

        <!-- 引入mysql数据库 -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql.version}</version>
        </dependency>

        <!-- 引入ureport相关依赖 -->
        <dependency>
            <groupId>com.syyai.spring.boot</groupId>
            <artifactId>ureport-spring-boot-starter</artifactId>
            <version>${ureport.version}</version>
        </dependency>

    </dependencies>

</project>

holic-x...大约 2 分钟框架组件SpringbootUreport可视化
01-Echarts入门学习

echarts官网:https://echarts.apache.org/zh/index.html

echarts入门demo

echarts插件引入

相关echarts插件可通过从下载的源代码或编译产物进行安装

echarts下载:https://echarts.apache.org/zh/download.html

从echarts官网下载源码文件,在dist文件夹中可以看到相应的js文件,在自身代码中引用即可,不同版本的echarts插件使用方式和方法可能有所差异,后续相关echarts学习以echarts-4.8.0+jquery-3.3.1为参考进行学习笔记整理


holic-x...大约 3 分钟框架组件Echarts可视化