|
|
@ -34,23 +34,23 @@ spring: |
|
|
|
master: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
url: jdbc:mysql://172.22.32.9:3306/sfms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=30000 |
|
|
|
url: jdbc:mysql://localhost:3306/hella_cd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
|
username: root |
|
|
|
password: Microdoft@2021 |
|
|
|
password: 123456 |
|
|
|
# 读数据源 |
|
|
|
slave0: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
url: jdbc:mysql://172.22.32.9:3306/sfms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=30000 |
|
|
|
url: jdbc:mysql://localhost:3306/hella_cd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
|
username: root |
|
|
|
password: Microdoft@2021 |
|
|
|
password: 123456 |
|
|
|
# 读数据源 |
|
|
|
slave1: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
url: jdbc:mysql://172.22.32.9:3306/sfms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=30000 |
|
|
|
url: jdbc:mysql://localhost:3306/hella_cd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
|
username: root |
|
|
|
password: Microdoft@2021 |
|
|
|
password: 123456 |
|
|
|
# 读写分离类型,如: Static,Dynamic |
|
|
|
rules: |
|
|
|
readwrite-splitting: |
|
|
@ -152,10 +152,9 @@ spring: |
|
|
|
config: |
|
|
|
singleServerConfig: |
|
|
|
pingConnectionInterval: 60000 |
|
|
|
host: 172.22.32.9 # 地址 |
|
|
|
host: localhost # 地址 |
|
|
|
port: 6379 # 端口 |
|
|
|
database: 1 # 数据库索引 原来是4,保持一致的原因是开发本地增加了单据号,测试再次增加,查询的时候会有问题 |
|
|
|
password: Microdoft@2021 # 密码,建议生产环境开启 |
|
|
|
database: 5 # 数据库索引 原来是4,保持一致的原因是开发本地增加了单据号,测试再次增加,查询的时候会有问题 |
|
|
|
lettuce: |
|
|
|
pool: |
|
|
|
max-active: 512 # 连接池最大连接数(使用负值表示没有限制) |
|
|
@ -215,8 +214,6 @@ resilience4j: |
|
|
|
|
|
|
|
# Actuator 监控端点的配置项 |
|
|
|
management: |
|
|
|
server: |
|
|
|
port: -1 |
|
|
|
endpoint: |
|
|
|
health: |
|
|
|
show-details: ALWAYS |
|
|
|