|
vor 2 Jahren | |
---|---|---|
.. | ||
dataroom-core | vor 2 Jahren | |
dataroom-server | vor 2 Jahren | |
doc | vor 2 Jahren | |
.gitignore | vor 2 Jahren | |
.gitkeep | vor 2 Jahren | |
CONTRIBUTING.md | vor 2 Jahren | |
LICENSE | vor 2 Jahren | |
README.md | vor 2 Jahren | |
SECURITY.md | vor 2 Jahren | |
pom.xml | vor 2 Jahren |
🔥基于SpringBoot、MyBatisPlus、ElementUI、G2Plot、Echarts等技术栈的大屏设计器,具备大屏目录管理、大屏设计、大屏预览能力,支持MySQL、Oracle、PostgreSQL、JSON等数据集接入,对于复杂数据处理还可以使用Groovy脚本数据集,使用简单,完全免费,代码开源。
下面介绍如何在SpringBoot项目中集成大屏,📘前端大屏地址在这里
在项目的pom.xml
文件<dependencies>
标签中加入以下内容:
<dependency>
<groupId>com.gccloud</groupId>
<artifactId>dataroom-core</artifactId>
<version>最新版本号</version>
</dependency>
点击查询最新版本号
执行 doc/init.sql 文件
修改application-${spring.profiles.active}.yml
配置信息,其中 ${spring.profiles.active}
配置在application.yml
文件中定义
mybatis-plus:
# mybatis plus xml配置文件扫描,多个通过分号隔开
mapper-locations: classpath*:mapper/**/*.xml
# xml中别名文件扫描,多个通过逗号隔开
type-handlers-package: com.gccloud
spring:
resources:
static-locations: classpath:/static/,classpath:/META-INF/resources/,classpath:/META-INF/resources/webjars/,file:${gc.starter.file.basePath}
# 静态资源配置
mvc:
throw-exception-if-no-handler-found: true
# 静态资源访问接口前缀
static-path-pattern: /static/**
view:
prefix: classpath:/static/
suffix: .html
gc:
starter:
file:
# 一个存储文件的绝对路径,需要有写入权限
basePath: /root/big-screen
# 静态资源访问接口前缀
urlPrefix: http://127.0.0.1:${server.port}/${server.servlet.context-path}/static/
以上配置根据项目实际情况进行合并
@SpringBootApplication(scanBasePackages = {BigScreenConst.ScanPackage.COMPONENT})
@MapperScan(value = {BigScreenConst.ScanPackage.DAO})
http://gcpaas.gccloud.com/bigScreen
Apache License 2.0