jeecgboot / JimuReport

「可视化报表,DataV、帆软的开源替代」积木报表是一款类Excel操作风格,在线拖拽设计的报表工具。功能涵盖: 报表设计、打印设计、图形报表、仪表盘门户设计、大屏设计等,完全免费!秉承“简单、易用、专业”的产品理念,极大的降低报表开发难度、缩短开发周期、解决各类报表难题。
http://jimureport.com
GNU General Public License v3.0
6.34k stars 1.63k forks source link

spring-boot+mybatis-plus+postgresql数据库 集成积木报表 无法新建报表 #1109

Closed yueshibing closed 2 years ago

yueshibing commented 2 years ago
版本号:1.5.0
问题描述:我是spring-boot+mybatis-plus+postgresql数据库 集成积木报表,集成后,jmreport/list可以打开列表页面,但是当我点 新建报表或者想点开示例报表时,会给我报freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> reportConfig [in template "jmreport/desreport/index.ftl" at line 13, column 33]
错误日志&截图:

image image 后台报错日志.txt

重现步骤:spring-boot+mybatis-plus+postgresql数据库 集成积木报表 正常进入jmreport/list点击新建报表

友情提示(为了提高issue处理效率):

yueshibing commented 2 years ago

将我配置整个拿来 server: port: 10001 servlet: context-path: / logging: config: classpath:logback-spring.xml

配置来源 yml:本地配置文件 dataBase:数据库

configSource: dataBase

模板引擎

spring: thymeleaf: check-template-location: true suffix: .html encoding: UTF-8 mode: HTML prefix: classpath:/ cache: false servlet: content-type: text/html; charset=utf-8 mvc: static-path-pattern: /** servlet: multipart: enabled: true max-file-size: 5MB max-request-size: 5MB

profiles:

include: localConfig

resources: static-locations: classpath:/resources/ cache: type: caffeine caffeine: spec: maximumSize=5000,expireAfterWrite=3600s datasource:

type: com.alibaba.druid.pool.DruidDataSource

driver-class-name: org.postgresql.Driver
druid:
  url: jdbc:postgresql://127.0.0.1:5432/postgres
  username: postgres
  password: 123456

JimuReport[minidao配置]

minidao: base-package: org.jeecg.modules.jmreport.desreport.dao*

数据库类型:mysql|postgresql|oracle|sqlserver

db-type: postgresql

JimuReport[上传配置]

jeecg:

local|minio|alioss

uploadType: local

local

path:

文件路径

upload: D:\test\upload

alioss

oss: endpoint: oss-cn-beijing.aliyuncs.com accessKey: ?? secretKey: ?? staticDomain: ?? bucketName: ??

minio

minio: minio_url: http://minio.jeecg.com minio_name: ?? minio_pass: ?? bucketName: ??

mybatis配置

mybatis-plus:

config-location: classpath:mybatis/mybatis-config.xml #指定全局配置文件的位

mapper-locations: classpath*:mybatis/*/.xml #指定sql映射文件的位置

configuration: map-underscore-to-camel-case: true auto-mapping-behavior: full log-impl: org.apache.ibatis.logging.stdout.StdOutImpl mapper-locations: classpath:mybatis/mapper/*.xml

开启Swagger

swagger: enable: true management: security: enabled: false endpoints: web: exposure: include: '*' endpoint: health: show-details: always shutdown: enabled: true auditevents: # 1、显示当前引用程序的审计事件信息,默认开启 enabled: true cache: time-to-live: 10s # 配置端点缓存响应的时间 health: diskspace: enabled: true

yueshibing commented 2 years ago

我引入fastjson高版本解决了这个问题