【免费开源】积木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
相关推荐
文慧的科技江湖16 小时前
光伏管理系统产品需求文档(PRD) -【详细功能需求及研发核心字段清单】
运维·开源·慧知重卡开源充电桩平台·慧知开源充电桩平台·开源充电桩平台·光伏开源管理系统
思想者00116 小时前
开源 OKR 目标管理系统
开源
Source.Liu16 小时前
【Matrix】Matrix 开源 Rust 项目全景
rust·开源
林会17 小时前
DeerFlow本地部署!调用本地大模型
python·开源
yumgpkpm17 小时前
Qwen3.6正式开源,华为昇腾910B实现高效适配
华为·ai作画·stable diffusion·开源·ai写作·llama·gpu算力
a11177617 小时前
PascalEditor( 3D建筑编辑器 开源)
前端·开源·html
冬奇Lab1 天前
一天一个开源项目(第75篇):Hermes Agent - Nous Research 开源的自我进化 AI Agent
人工智能·开源·资讯
金融Tech趋势派2 天前
Hermes Agent开源45天登顶GitHub,深度解析其记忆机制与部署方案
人工智能·微信·开源·github·企业微信·openclaw·hermes agent
万岳软件开发小城2 天前
从SaaS到私有化部署:食堂采购系统源码的开发技术选型分析
开源·源码·软件开发·食堂采购系统源码·食堂采购软件开发·食堂采购平台搭建·erp系统开发