You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/02/25 06:20:56 UTC

[GitHub] imhager edited a comment on issue #1900: springboot2.1.1 with mybatis, druid dataSource duplicate

imhager edited a comment on issue #1900: springboot2.1.1 with mybatis,druid dataSource duplicate
URL: https://github.com/apache/incubator-shardingsphere/issues/1900#issuecomment-466886214
 
 
   > > You can use `spring.main.allow-bean-definition-overriding=true` configuration to resolve this error
   > 
   > @imhager. Can this configuration solve your problem? If still has questions, please let us know.
   
   thank you for your help.
   
   ```
   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.
   
   Action:
   
   Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
   ```
   
   if i set this value, shardingjdbc/SpringBootConfiguration.DataSource and DruidDataSourceAutoConfigure.DataSource will not affect each other, is it?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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