jeecgboot / JimuReport

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

若依框架的springboot3+jdk21,启动报错 #2761

Closed jacky8466 closed 2 months ago

jacky8466 commented 2 months ago
版本号:

jimureport-spring-boot3-starter-fastjson2 1.7.32

问题描述:

启动报错: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'saasModeSecurityUtil': Unsatisfied dependency expressed through field 'jimuReportService': Error creating bean with name 'jimuReportServiceImpl': Unsatisfied dependency expressed through field 'jmReportDbSourceService': Error creating bean with name 'jmReportDbSourceServiceImpl': Unsatisfied dependency expressed through field 'dataSourceDao': No qualifying bean of type 'org.jeecg.modules.jmreport.desreport.dao.JimuReportDataSourceDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jimuReportShareDao' defined in URL [jar:file:/E:/repo/org/jeecgframework/jimureport/jimureport-spring-boot3-starter-fastjson2/1.7.32/jimureport-spring-b

错误日志&截图:

image image

重现步骤:

若依框架里的springboot3版本

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

zhangdaiscott commented 2 months ago

扫码路径配置了吗

zhangdaiscott commented 2 months ago

https://help.jeecg.com/jimureport/projectJoin/ruoyi.html

jacky8466 commented 2 months ago

扫码路径配置了吗

肯定配了哦,之前的版本是springboot2 现在是升级到springboot3了,不过用的是mybatis-plus,在springboot2中是能正常访问的

jacky8466 commented 2 months ago

我的依赖包版本信息 `

4.3.0 UTF-8 UTF-8 21 3.3.0 2.0.1 3.0.3 2.1.0 1.2.23 1.21 2.3.3 2.1.0 2.0.51 6.6.1 2.11.0 4.1.2 4.1.2 2.3 3.12.1 1.18.32 3.5.7 5.8.29 0.12.5 33.2.1-jre 2.5.1 1.7.32 3.3.1 `
zhangdaiscott commented 2 months ago

你把minidao排除了,minidao版本换成 下面的版本试试

<dependency>
  <groupId>org.jeecgframework.boot3</groupId>
  <artifactId>minidao-pe</artifactId>
  <version>1.10.1</version>
</dependency>
jacky8466 commented 2 months ago

你把minidao排除了,minidao版本换成 下面的版本试试

<dependency>
  <groupId>org.jeecgframework.boot3</groupId>
  <artifactId>minidao-pe</artifactId>
  <version>1.10.1</version>
</dependency>

你把minidao排除了,minidao版本换成 下面的版本试试

<dependency>
  <groupId>org.jeecgframework.boot3</groupId>
  <artifactId>minidao-pe</artifactId>
  <version>1.10.1</version>
</dependency>

加上这个启动不报错了,前台页面显示正常,单后台有异常日志,虽然不是可以忽略,单看着难受: `请求地址'/jmreport/desreport_/cdn/axios/axios.min.map',发生系统异常. org.springframework.web.servlet.resource.NoResourceFoundException: No static resource cdn/axios/axios.min.map.

zhangdaiscott commented 2 months ago

截图

zhangdaiscott commented 2 months ago

集成依赖 springboot2版本

<dependency>
  <groupId>org.jeecgframework.jimureport</groupId>
  <artifactId>jimureport-spring-boot-starter</artifactId>
  <version>1.7.8</version>
</dependency>

springboot3版本

<dependency>
  <groupId>org.jeecgframework.jimureport</groupId>
  <artifactId>jimureport-spring-boot3-starter-fastjson2</artifactId>
  <version>1.7.8</version>
</dependency>
zhangdaiscott commented 2 months ago

ws

1298191366 commented 2 months ago

经测试,集成1.7.8应该就没有问题了,文档

<dependency>
  <groupId>org.jeecgframework.jimureport</groupId>
  <artifactId>jimureport-spring-boot3-starter-fastjson2</artifactId>
  <version>1.7.8</version>
</dependency>

image