【免费开源】积木JimuBI大屏集成eladmin

JimuBI介绍

JimuBI 是一个JAVA语言的低代码数据可视化大屏BI产品,将大屏、仪表盘、移动面板、图表或页面元素封装为基础组件,无需编写代码即可完成业务需求。

这是JeecgBoot团队出品的另外一款报表产品,积木报表已经成为业内报表首先,预测该大屏即将覆盖全行业。

  • 酷炫大屏 轻松设计,通过拖拽完成大屏设计,80多种组件及20多种边框装饰满足您的设计需求。
  • 智能仪表盘 简单易用,拖拽式操作自由布局,页面自适应;支持门户交互设计,移动端设计。
  • 大屏采用类word风格,可以随意拖动组件

eladmin介绍

eladmin是一款基于Spring Boot、Mybatis-Plus、Spring Security、Redis和Vue等技术栈构建的开源后台管理系统。

本示例来介绍一下JimuBI 大屏集成eladmin。

1、eladmin项目目录

2、执行初始化脚本积木报表sql

jimureport.sql

3、pom中引入积木BI大屏最新依赖

目前积木BI大屏只支持springboot2版本
注意:使用积木BI大屏需要引入积木报表,集成积木报表
从1.9.1起正式将 jimureport-dashboard-spring-boot-starter 更名为 jimubi-spring-boot-starter,请大家注意区分

    <!-- 积木报表 -->
    <dependency>
        <groupId>org.jeecgframework.jimureport</groupId>
        <artifactId>jimureport-spring-boot-starter</artifactId>
        <version>1.9.1</version>
    </dependency>
    <!-- 积木BI大屏 -->
    <dependency>
        <groupId>org.jeecgframework.jimureport</groupId>
        <artifactId>jimubi-spring-boot-starter</artifactId>
        <version>1.9.1</version>
        <exclusions>
            <!--排除swagger-->
            <exclusion>
                <groupId>com.github.xiaoymin</groupId>
                <artifactId>knife4j-openapi2-spring-boot-starter</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

最新版本可以从 http://jimureport.com/doc/log 中查询到

4、AppRun添加积木依赖扫描

    @SpringBootApplication(scanBasePackages = {"me.zhengjie","org.jeecg"})

5、实现扩展接口

    [@Service](https://my.oschina.net/service)
    public class OnlDragExternalServiceImpl implements IOnlDragExternalService {
    }

6、RedisConfig配置类注入jmRedisTemplate

1.9.0及1.9.0以后版本不需要添加此配置类,1.9.0以前版本需要添加此配置类,否则会影响项目正常启动

    @Bean("jmRedisTemplate")
    public RedisTemplate<String, Object> stringRedisTemplate(RedisConnectionFactory connectionFactory) {
        RedisTemplate<String, Object> template = new RedisTemplate<>();
        //序列化
        FastJsonRedisSerializer<Object> fastJsonRedisSerializer = new FastJsonRedisSerializer<>(Object.class);
        // value值的序列化采用fastJsonRedisSerializer
        template.setValueSerializer(fastJsonRedisSerializer);
        template.setHashValueSerializer(fastJsonRedisSerializer);
        // fastjson 升级到 1.2.83 后需要指定序列化白名单
        ParserConfig.getGlobalInstance().addAccept("org.jeecg.modules.drag");
        // key的序列化采用StringRedisSerializer
        template.setKeySerializer(new StringRedisSerializer());
        template.setHashKeySerializer(new StringRedisSerializer());
        template.setConnectionFactory(connectionFactory);
        return template;
    }

7、SpringSecurityConfig权限控制放开

1)需要把/jimureport和/drag请求放开

    //过滤掉积木报表和仪表盘请求路径
    .antMatchers("/jmreport/**","/drag/**").permitAll()

2)在ConfigurerAdapter配置类中添加仪表盘的静态资源访问路径

    registry.addResourceHandler("/drag/**").addResourceLocations("classpath:/static/drag/").setCachePeriod(0);

8、dev.yml添加minidao配置(可忽略)

    #持久层框架
    minidao:
      base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*

9、项目启动访问

eladmin默认端口8000

http://localhost:8000/drag/list
相关推荐
韩仔搭建42 分钟前
七星棋牌顶级运营产品全开源修复版源码教程:6端支持,200+子游戏玩法,完整搭建指南(含代码解析)
游戏·开源
customer087 小时前
【开源免费】基于SpringBoot+Vue.JS个人博客系统(JAVA毕业设计)
java·vue.js·spring boot·后端·开源
customer088 小时前
【开源免费】基于SpringBoot+Vue.JS打卡健康评测系统(JAVA毕业设计)
java·vue.js·spring boot·后端·开源
BeanInJ9 小时前
当一个后端下载了一个VUE开源项目,怎么开始着手玩一下
前端·vue.js·开源
钱彬 (Qian Bin)13 小时前
基于Django+Bootstrap+深度学习 构建商业级人脸识别系统(代码开源)
python·深度学习·django·开源·bootstrap·人脸识别·教程
GitCode官方13 小时前
GitCode 助力至善云学:构建智慧教育平台
开源·gitcode·g-star
OpenTiny社区16 小时前
Node.js技术原理分析系列——如何在Node.js中新增一个内置模块
前端·开源·node.js·opentiny
264玫瑰资源库16 小时前
七星棋牌源码高阶技术指南:6端互通、200+子游戏玩法深度剖析与企业级搭建实战(完全开源)
游戏·开源
胖头鱼不吃鱼-16 小时前
开源低代码平台与 Vue.js
开源·vue
架构文摘JGWZ17 小时前
Sun-Panel:简洁且美观的导航首页开源项目!!
ui·开源·开源软件·工具