whiltemoon commented on issue #11047:
URL: 
https://github.com/apache/shardingsphere/issues/11047#issuecomment-870156801


   spring:
     shardingsphere:
       props:
         sql-show: true
       datasource:
         names:
           master,slave
         common:
           type: com.alibaba.druid.pool.DruidDataSource
           driver-class-name: com.mysql.cj.jdbc.Driver
         master:
           driver-class-name: com.mysql.cj.jdbc.Driver
           type: com.alibaba.druid.pool.DruidDataSource
           url: jdbc:xxxxx
           username: xxx
           password: xxx
           druid:
             initial-size: 5
             max-active: 20
             min-idle: 5
         slave:
           driver-class-name: com.mysql.cj.jdbc.Driver
           type: com.alibaba.druid.pool.DruidDataSource
           url: jdbc:mysql://sxxxx
           username: xxx
           password: xxx
           druid:
             initial-size: 5
             max-active: 20
             min-idle: 5
       rules:
         readwrite-splitting:
           data-sources:
             ds:
               write-data-source-name: master
               read-data-source-names: slave


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to