|
|
@ -31,46 +31,68 @@ spring: |
|
|
|
datasource: |
|
|
|
names: master,slave0,slave1 |
|
|
|
# 主数据源 |
|
|
|
# master: |
|
|
|
# type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
# driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
# url: jdbc:mysql://192.168.122.43:23113/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
# username: intex |
|
|
|
# password: Microsoft@2024 |
|
|
|
# # 读数据源 |
|
|
|
# slave0: |
|
|
|
# type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
# driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
# url: jdbc:mysql://192.168.122.43:23113/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
# username: intex |
|
|
|
# password: Microsoft@2024 |
|
|
|
# # 读数据源 |
|
|
|
# slave1: |
|
|
|
# type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
# driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
# url: jdbc:mysql://192.168.122.43:23113/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
# username: intex |
|
|
|
# password: Microsoft@2024 |
|
|
|
master: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
url: jdbc:mysql://192.168.122.43:23113/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
username: intex |
|
|
|
password: Microsoft@2024 |
|
|
|
url: jdbc:mysql://10.56.17.106:3306/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
username: root |
|
|
|
password: Microdoft@2021 |
|
|
|
# 读数据源 |
|
|
|
slave0: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
url: jdbc:mysql://192.168.122.43:23113/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
username: intex |
|
|
|
password: Microsoft@2024 |
|
|
|
url: jdbc:mysql://10.56.17.106:3306/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
username: root |
|
|
|
password: Microdoft@2021 |
|
|
|
# 读数据源 |
|
|
|
slave1: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
url: jdbc:mysql://192.168.122.43:23113/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
username: intex |
|
|
|
password: Microsoft@2024 |
|
|
|
url: jdbc:mysql://10.56.17.106:3306/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
username: root |
|
|
|
password: Microdoft@2021 |
|
|
|
|
|
|
|
# 主数据源 |
|
|
|
# master: |
|
|
|
# type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
# driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
# url: jdbc:mysql://10.56.17.106:3306/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
# username: root |
|
|
|
# password: Microdoft@2021 |
|
|
|
# url: jdbc:mysql://dev.ccwin-in.com:23113/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
# username: intex |
|
|
|
# password: Microsoft@2024 |
|
|
|
# # 读数据源 |
|
|
|
# slave0: |
|
|
|
# type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
# driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
# url: jdbc:mysql://10.56.17.106:3306/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
# username: root |
|
|
|
# password: Microdoft@2021 |
|
|
|
# url: jdbc:mysql://dev.ccwin-in.com:23113/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
# username: intex |
|
|
|
# password: Microsoft@2024 |
|
|
|
# # 读数据源 |
|
|
|
# slave1: |
|
|
|
# type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
# driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
# url: jdbc:mysql://10.56.17.106:3306/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
# username: root |
|
|
|
# password: Microdoft@2021 |
|
|
|
# url: jdbc:mysql://dev.ccwin-in.com:23113/dcxny_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&failOverReadOnly=false&socketTimeout=600000&connectTimeout=600000 |
|
|
|
# username: intex |
|
|
|
# password: Microsoft@2024 |
|
|
|
|
|
|
|
# 读写分离类型,如: Static,Dynamic |
|
|
|
rules: |
|
|
@ -172,12 +194,15 @@ spring: |
|
|
|
config: |
|
|
|
singleServerConfig: |
|
|
|
pingConnectionInterval: 60000 |
|
|
|
host: 192.168.122.43 # 地址 |
|
|
|
port: 23114 # 端口 |
|
|
|
database: 11 # 数据库索引 |
|
|
|
# host: 172.16.1.230 # 地址 |
|
|
|
# host: 192.168.122.43 # 地址 |
|
|
|
# port: 23114 # 端口 |
|
|
|
# database: 11 # 数据库索引 |
|
|
|
# host: localhost # 地址 |
|
|
|
# port: 6379 # 端口 |
|
|
|
# database: 1 # 数据库索引 |
|
|
|
# database: 9 # 数据库索引 原来是4,保持一致的原因是开发本地增加了单据号,测试再次增加,查询的时候会有问题 |
|
|
|
host: 10.56.17.106 # 地址 |
|
|
|
port: 6379 # 端口 |
|
|
|
database: 1 # 数据库索引 |
|
|
|
# password: # 密码,建议生产环境开启 |
|
|
|
lettuce: |
|
|
|
pool: |
|
|
|