【免费开源】积木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
相关推荐
想用offer打牌1 天前
RocketMQ如何防止消息丢失?
java·后端·架构·开源·rocketmq
大刘讲IT1 天前
面向中小企业的企业AI Agent未来3年构建蓝图规划
人工智能·经验分享·ai·开源·制造
中冕—霍格沃兹软件开发测试1 天前
探索性测试:思维驱动下的高效缺陷狩猎
人工智能·科技·开源·appium·bug
草梅友仁1 天前
草梅 Auth 1.12.0 发布与墨梅博客立项经验 | 2025 年第 50 周草梅周报
开源·github·ai编程
嗝o゚1 天前
鸿蒙智慧屏与Flutter适配:无硬件功能的兼容处理
flutter·华为·开源·harmonyos
likeshop 好像科技1 天前
新手学习AI智能体Agent逻辑设计的指引
人工智能·学习·开源·github
豆豆1 天前
企业网站模板 开源企业网站模板 网页模板源码 整站网站源码
开源·cms·源码·建站系统·网站源码·网页源码·模板源码
嗝o゚2 天前
开源鸿蒙 Flutter 应用包瘦身实战
flutter·华为·开源·harmonyos
中冕—霍格沃兹软件开发测试2 天前
Git版本控制在测试项目管理中的应用
人工智能·git·科技·开源·appium·bug
武汉唯众智创2 天前
高职510220开源技术与应用专业产教协同育人解决方案
开源·开源技术·开源技术与应用专业·开源技术与应用·开源开发·开源应用·开源技术与应用实训室