spring: shardingsphere: druid: username: root password: jjb123456 allows: denys: props: sql: show: true enabled: true masterslave: name: ms master-data-source-name: master slave-data-source-names: slave-1 datasource: names: master,slave-1 master: url: jdbc:mysql://${mysql.host}:${mysql.port}/${mysql.db}?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai username: ${mysql.username} password: ${mysql.password} type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.jdbc.Driver initial-size: 6 min-idle: 1 maxActive: 100 maxWait: 60000 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 300000 testWhileIdle: true testOnBorrow: false testOnReturn: false poolPreparedStatements: true maxPoolPreparedStatementPerConnectionSize: 20 filters: stat,slf4j connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 wall: multi-statement-allow: true slave-1: url: jdbc:mysql://${mysql.host}:${mysql.port}/${mysql.db}?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai username: ${mysql.username} password: ${mysql.password} type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.jdbc.Driver initial-size: 6 min-idle: 1 maxActive: 100 maxWait: 60000 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 300000 testWhileIdle: true testOnBorrow: false testOnReturn: false poolPreparedStatements: true maxPoolPreparedStatementPerConnectionSize: 20 filters: stat,slf4j connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 wall: multi-statement-allow: true