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 2020/01/18 17:38:34 UTC

[GitHub] [incubator-shardingsphere] darcydai commented on issue #3964: Hintmanager databaseShardingOnly problem

darcydai commented on issue #3964: Hintmanager  databaseShardingOnly problem
URL: https://github.com/apache/incubator-shardingsphere/issues/3964#issuecomment-575921675
 
 
   maybe I have the same problem, in my case , I configuration is 
    `spring.shardingsphere.datasource.names=house,shenyang,beijing
   
   spring.shardingsphere.datasource.house.type=com.zaxxer.hikari.HikariDataSource
   spring.shardingsphere.datasource.house.driver-class-name=com.mysql.jdbc.Driver
   spring.shardingsphere.datasource.house.jdbc-url=jdbc:mysql://localhost:21010/db_house?useSSL=false&useUnicode=true&characterEncoding=utf8
   spring.shardingsphere.datasource.house.username=root
   spring.shardingsphere.datasource.house.password=aA111111
   
   spring.shardingsphere.datasource.shenyang.type=com.zaxxer.hikari.HikariDataSource
   spring.shardingsphere.datasource.shenyang.driver-class-name=com.mysql.jdbc.Driver
   spring.shardingsphere.datasource.shenyang.jdbc-url=jdbc:mysql://localhost:21010/db_shenyang?useSSL=false&useUnicode=true&characterEncoding=utf8
   spring.shardingsphere.datasource.shenyang.username=root
   spring.shardingsphere.datasource.shenyang.password=aA111111
   
   spring.shardingsphere.datasource.beijing.type=com.zaxxer.hikari.HikariDataSource
   spring.shardingsphere.datasource.beijing.driver-class-name=com.mysql.jdbc.Driver
   spring.shardingsphere.datasource.beijing.jdbc-url=jdbc:mysql://localhost:21010/db_beijing?useSSL=false&useUnicode=true&characterEncoding=utf8
   spring.shardingsphere.datasource.beijing.username=root
   spring.shardingsphere.datasource.beijing.password=aA111111
   spring.shardingsphere.sharding.default-database-strategy.hint.algorithm-class-name=com.mh.house.sharding.CityBaseHintShardingAlgorithm
   `  
   
   but the method trace never enters my defined HintShardingAlgorithm ->CityBaseHintShardingAlgorithm.
   
   
   

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