(一)项目结构
(二)执行初始化脚本
https://github.com/jeecgboot/JimuReport/tree/master/db
(三)pom中引入积木报表最新依赖
org.jeecgframework.jimureport
jimureport-spring-boot-starter
${version}
(四)RuoYiApplication添加积木扫描路径
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class },scanBasePackages = {“org.jeecg.modules.jmreport”,“com.ruoyi”})
注:根据自己项目的包名调整代码
(五)SecurityConfig拦截排除(项目没有加入Token机制)
.antMatchers(“/jmreport/**”).anonymous()
(六)启动项目访问
若依默认端口是8848,可以根据自己的需求集成到若依系统里面(如集成到菜单)
积木报表访问地址:http://localhost:8848/jmreport/list
(七)集成到菜单
(1)创建自己的module