基于springboot+Echarts+js制作实时大屏
最近工作中让完成一个实时大屏的东西,就是类似于电商实时数据成交数据的那种大屏,但是在网上查阅的资料对于后台的js的转输都有点模糊,于是自己写了一个较为完整的实现后台数据大屏显示的spring项目。若有不足之处,还请各位大佬批评与指正。
项目所需工具
博主这里所用的是IntelliJ IDEA 2020.1,这边给出相应的下载链接,可激活。内置相应的解释说明
链接:https://pan.baidu.com/s/1jFg-EdqGLncCv43fl6KqUg
提取码:4mgi
数据库使用的是mysql-5.7.25版本,当然您也可以使用其他版本。jdk版本为1.8,maven版本设置为3.5.2(大家可自行百度下载)
关于项目的目录结构,这边也一并贴出来供大家进行参考
关于创建项目的步骤
之后一步一步进行next即可
目录
一、在pom中添加所需依赖
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency<