You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/12/19 12:48:42 UTC
[GitHub] [incubator-shardingsphere] Z-J-Fei opened a new issue #3773:
DataSource naming conflict between sharding-jdbc and druid
Z-J-Fei opened a new issue #3773: DataSource naming conflict between sharding-jdbc and druid
URL: https://github.com/apache/incubator-shardingsphere/issues/3773
Description:
The bean 'dataSource', defined in class path resource [io/shardingsphere/shardingjdbc/spring/boot/SpringBootConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class] and overriding is disabled.
druid-spring-boot-starter:1.1.20
sharding-jdbc-spring-boot-starter:3.1.0
springboot:2.2.2
what should I do?
Except (spring.main.allow-bean-definition-overriding = true)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] terrymanu closed issue #3773: DataSource
naming conflict between sharding-jdbc and druid
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #3773: DataSource naming conflict between sharding-jdbc and druid
URL: https://github.com/apache/incubator-shardingsphere/issues/3773
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #3773:
DataSource naming conflict between sharding-jdbc and druid
Posted by GitBox <gi...@apache.org>.
KomachiSion commented on issue #3773: DataSource naming conflict between sharding-jdbc and druid
URL: https://github.com/apache/incubator-shardingsphere/issues/3773#issuecomment-567862452
Would you tell me why do you use `druid-spring-boot-starter`, if only druid and shardingsphere, there are no necessary to use druid-spring-boot-starter.
If you want to use multiple Datasource in spring boot, the only way is using self-configuration to create Datasources by yourself.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] KomachiSion edited a comment on issue
#3773: DataSource naming conflict between sharding-jdbc and druid
Posted by GitBox <gi...@apache.org>.
KomachiSion edited a comment on issue #3773: DataSource naming conflict between sharding-jdbc and druid
URL: https://github.com/apache/incubator-shardingsphere/issues/3773#issuecomment-567862452
Would you mind tell me why do you use `druid-spring-boot-starter`, if only druid and shardingsphere, there are no necessary to use druid-spring-boot-starter.
If you want to use multiple Datasource in spring boot, the only way is using self-configuration to create Datasources by yourself.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services