jeecgboot3_sas 后端微服务启动报错
版本号:
jeecgboot3_sas 3.7.0
问题描述:
后端微服务启动报错(单体启动无异常).
- nacos 可正常启动
- gateway可正常启动
- 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).`
错误截图:
友情提示:
- 未按格式要求发帖、描述过于简单的,会被直接删掉;
- 描述问题请图文并茂,方便我们理解并快速定位问题;
- 如果使用的不是master,请说明你使用的分支;
druid 的bug,新版本已经修复,项目目录pom文件 druid.version 改成 1.2.23 就行了
尝试将 druid.version 改成 1.2.23 也不行
还是还是一样的问题
所以我直接在 jeecg-system-cloud-start 中做了排除
就就正常了,先这么处理吧
你好,我更新了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: @.***>
druid 的bug,新版本已经修复,项目目录pom文件 druid.version 改成 1.2.23 就行了
对了 牛