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/20 11:29:15 UTC

[GitHub] imhager opened a new issue #1900: springboot2.1.1 with mybatis, druid dataSource duplicate

imhager opened a new issue #1900: springboot2.1.1 with mybatis,druid dataSource duplicate
URL: https://github.com/apache/incubator-shardingsphere/issues/1900
 
 
   ## Question
   
   ### Which version of Sharding-Jdbc do you using?(您使用的Sharding-Jdbc版本为?)
    sharding-jdbc-spring-boot-starter:3.1.0
   springboot: 2.1.1.release
   druid-spring-boot-starter:1.1.10
   mybatis-spring-boot-starter:1.3.2
   
   ### Expected behavior (您预期的结果是)
   正常运行
   
   ### Actual behavior (实际运行的结果是)
   The bean 'dataSource', defined duplicate.
   
   ### Steps to reproduce the behavior (可重现问题的操作步骤)
   
   
   ***************************
   APPLICATION FAILED TO START
   ***************************
   
   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.
   

----------------------------------------------------------------
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