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 2021/11/19 04:52:03 UTC

[GitHub] [shardingsphere] agoodcoolman commented on issue #12869: Error creating bean with name 'dataSource' defined in class path resource [org/apache/shardingsphere/shardingjdbc/spring/boot/SpringBootConfiguration.class]

agoodcoolman commented on issue #12869:
URL: https://github.com/apache/shardingsphere/issues/12869#issuecomment-973738012


   the same question,
   use sharding-jdbc-5.0.0  
   
   this is my ymal config
   
   `schemaName: sharding_db
   mode:
     type: memory
   dataSources:
     ds0:
       type: com.zaxxer.hikari.HikariDataSource
       driver-class-name: 
       jdbc-url: 
       username: 
       password: 
     ds1:
       type: com.zaxxer.hikari.HikariDataSource
       driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
       jdbc-url: 
       username: 
       password: 
   rules:
     tables:
       data_door_info_all:
         actual-data-nodes: ds${[0,1]}.data_door_info_all_$->{[0,1,2,3]}
         databaseStrategy:
           standard:
             sharding-column: id
             shardingAlgorithmName: hash_mode
         table-strategy:
           standard:
             sharding-column: idcard
             sharding-algorithm-name: hash_mode
     defaultTableStrategy:
       none:
     sharding-algorithms:
       hash_mod:
         type: MOD
         props:
           sharding-count: 3
   
   keyGenerators:
     snowflake:
       type: SNOWFLAKE
       props:
         worker-id: 123`


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org