Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动项目时报datasource错误 #7505

Open
AllureLove1998 opened this issue Nov 27, 2024 · 1 comment
Open

启动项目时报datasource错误 #7505

AllureLove1998 opened this issue Nov 27, 2024 · 1 comment

Comments

@AllureLove1998
Copy link

版本号:3.7.1
问题描述:

昨天刚拉取的3.7.1版本的代码,可以正常启动,今天启动后就报错,在spring里加入allow-bean-definition-overriding:true仍未解决

Description:

The bean 'dataSource', defined in class path resource [com/alibaba/druid/spring/boot/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

错误截图:

image

友情提示:

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

67gogo commented Nov 28, 2024

我也出现这个问题了,请问解决了么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants