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/07/17 03:21:36 UTC

[GitHub] [incubator-shardingsphere] yangfqCode commented on issue #2714: load-balance-algorithm-class-name is not working

yangfqCode commented on issue #2714: load-balance-algorithm-class-name is not working
URL: https://github.com/apache/incubator-shardingsphere/issues/2714#issuecomment-512086087
 
 
   spring:
      shardingsphere:
         datasource:
            names: master,slave
            slave:
               password: cxm_db_test_123456
               type: com.zaxxer.hikari.HikariDataSource
               driver-class-name: com.mysql.cj.jdbc.Driver
               jdbc-url: jdbc:mysql://127.0.0.1:3306/cxm_business_stat?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=Asia/Shanghai
               username: root
            master:
               password: cxm_db_test_123456
               type: com.zaxxer.hikari.HikariDataSource
               driver-class-name: com.mysql.cj.jdbc.Driver
               jdbc-url: jdbc:mysql://127.0.0.1:3306/cxm_service_data_base?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=Asia/Shanghai
               username: root
         masterslave:
            load-balance-algorithm-class-name: com.cxm.LoadBalanceAlgorithm
            load-balance-algorithm-type: RANDOM1
            slave-data-source-names: slave
            name: ms
            master-data-source-name: master
         props:
            sql:
               show: 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