JeecgBoot icon indicating copy to clipboard operation
JeecgBoot copied to clipboard

jeecgboot3_sas 后端微服务启动报错

Open 318313260 opened this issue 1 year ago • 1 comments

版本号:

jeecgboot3_sas 3.7.0

问题描述:

后端微服务启动报错(单体启动无异常).

  1. nacos 可正常启动
  2. gateway可正常启动
  3. jeecg-demo-cloud与jeecg-system-cloud启动均报错

错误1: `


APPLICATION FAILED TO START


Description:

The bean 'dataSource', defined in class path resource [com/alibaba/druid/spring/boot3/autoconfigure/DruidDataSourceAutoConfigure.class], could not be registered. A bean with that name has already been defined in class path resource [com/baomidou/dynamic/datasource/spring/boot/autoconfigure/DynamicDataSourceAutoConfiguration.class] and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true 配置中增加 spring.main.allow-bean-definition-overriding=true配置后报下面错误 错误2:*************************** APPLICATION FAILED TO START


Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class

Action:

Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).`

错误截图:

错误1

错误2

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;

318313260 avatar Aug 13 '24 08:08 318313260

druid 的bug,新版本已经修复,项目目录pom文件 druid.version 改成 1.2.23 就行了

liuling1314 avatar Aug 15 '24 10:08 liuling1314

尝试将 druid.version 改成 1.2.23 也不行 image 还是还是一样的问题

所以我直接在 jeecg-system-cloud-start 中做了排除 image 就就正常了,先这么处理吧

fateblessme avatar Aug 17 '24 13:08 fateblessme

你好,我更新了durid版本后启动是正常的了。仅供参考。

---原始邮件--- 发件人: @.> 发送时间: 2024年8月17日(周六) 晚上9:08 收件人: @.>; 抄送: @.@.>; 主题: Re: [jeecgboot/JeecgBoot] jeecgboot3_sas 后端微服务启动报错 (Issue #7074)

尝试将 druid.version 改成 1.2.23 也不行 image.png (view on web) 还是还是一样的问题

所以我直接在 jeecg-system-cloud-start 中做了排除 image.png (view on web) 就就正常了,先这么处理吧

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

318313260 avatar Aug 17 '24 13:08 318313260

druid 的bug,新版本已经修复,项目目录pom文件 druid.version 改成 1.2.23 就行了

对了 牛

rDearApple avatar Oct 21 '24 03:10 rDearApple