2026-07-02 15:03:16 +08:00
|
|
|
spring:
|
2026-06-26 11:43:58 +08:00
|
|
|
shardingsphere:
|
|
|
|
|
druid:
|
2026-07-02 15:03:16 +08:00
|
|
|
username: root
|
2026-06-26 11:43:58 +08:00
|
|
|
password: jjb123456
|
|
|
|
|
allows:
|
|
|
|
|
denys:
|
|
|
|
|
props:
|
|
|
|
|
sql:
|
|
|
|
|
show: true
|
|
|
|
|
enabled: true
|
|
|
|
|
masterslave:
|
2026-07-01 17:13:41 +08:00
|
|
|
name: ms
|
|
|
|
|
master-data-source-name: master
|
|
|
|
|
slave-data-source-names: slave-1
|
2026-06-26 11:43:58 +08:00
|
|
|
datasource:
|
|
|
|
|
names: master,slave-1
|
|
|
|
|
master:
|
2026-07-02 15:03:16 +08:00
|
|
|
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}
|
2026-06-26 11:43:58 +08:00
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
2026-07-02 15:03:16 +08:00
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
2026-06-26 11:43:58 +08:00
|
|
|
initial-size: 6
|
2026-07-02 15:03:16 +08:00
|
|
|
min-idle: 1
|
|
|
|
|
maxActive: 100
|
2026-06-26 11:43:58 +08:00
|
|
|
maxWait: 60000
|
|
|
|
|
timeBetweenEvictionRunsMillis: 60000
|
|
|
|
|
minEvictableIdleTimeMillis: 300000
|
|
|
|
|
testWhileIdle: true
|
|
|
|
|
testOnBorrow: false
|
|
|
|
|
testOnReturn: false
|
|
|
|
|
poolPreparedStatements: true
|
|
|
|
|
maxPoolPreparedStatementPerConnectionSize: 20
|
2026-07-02 15:03:16 +08:00
|
|
|
filters: stat,slf4j
|
2026-06-26 11:43:58 +08:00
|
|
|
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
|
|
|
|
wall:
|
|
|
|
|
multi-statement-allow: true
|
|
|
|
|
slave-1:
|
2026-07-02 15:03:16 +08:00
|
|
|
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}
|
2026-06-26 11:43:58 +08:00
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
2026-07-02 15:03:16 +08:00
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
2026-06-26 11:43:58 +08:00
|
|
|
initial-size: 6
|
2026-07-02 15:03:16 +08:00
|
|
|
min-idle: 1
|
|
|
|
|
maxActive: 100
|
2026-06-26 11:43:58 +08:00
|
|
|
maxWait: 60000
|
|
|
|
|
timeBetweenEvictionRunsMillis: 60000
|
|
|
|
|
minEvictableIdleTimeMillis: 300000
|
|
|
|
|
testWhileIdle: true
|
|
|
|
|
testOnBorrow: false
|
|
|
|
|
testOnReturn: false
|
|
|
|
|
poolPreparedStatements: true
|
|
|
|
|
maxPoolPreparedStatementPerConnectionSize: 20
|
2026-07-02 15:03:16 +08:00
|
|
|
filters: stat,slf4j
|
2026-06-26 11:43:58 +08:00
|
|
|
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
|
|
|
|
wall:
|
2026-07-01 17:13:41 +08:00
|
|
|
multi-statement-allow: true
|