|
|
@@ -13,16 +13,21 @@ spring:
|
|
|
strict: true
|
|
|
datasource:
|
|
|
# 主库数据源
|
|
|
+# master:
|
|
|
+# username: root
|
|
|
+# password: "#09SilverB"
|
|
|
+# url: jdbc:mysql://8.142.144.205:3306/tld?useUnicode=true&characterEncoding=utf-8&useSSL=true&rewriteBatchedStatements=true&allowMultiQueries=true
|
|
|
+# driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
master:
|
|
|
username: root
|
|
|
password: "#09SilverB"
|
|
|
- url: jdbc:mysql://8.142.144.205:3306/tld?useUnicode=true&characterEncoding=utf-8&useSSL=true&rewriteBatchedStatements=true&allowMultiQueries=true
|
|
|
+ url: jdbc:mysql://10.2.111.91:3306/tld?useUnicode=true&characterEncoding=utf-8&useSSL=true&rewriteBatchedStatements=true&allowMultiQueries=true
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
- # 从数据源
|
|
|
+ #从数据源
|
|
|
slave:
|
|
|
# 从数据源开关/默认关闭
|
|
|
enabled: true
|
|
|
- url: jdbc:mysql://8.142.144.205:3306/tld?useUnicode=true&characterEncoding=utf-8&useSSL=true&rewriteBatchedStatements=true&allowMultiQueries=true
|
|
|
+ url: jdbc:mysql://10.2.111.92:3306/tld?useUnicode=true&characterEncoding=utf-8&useSSL=true&rewriteBatchedStatements=true&allowMultiQueries=true
|
|
|
username: root
|
|
|
password: "#09SilverB"
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
@@ -41,8 +46,8 @@ spring:
|
|
|
async:
|
|
|
request-timeout: 20000
|
|
|
redis:
|
|
|
- host: 8.142.144.205
|
|
|
-# host: 10.2.111.91
|
|
|
+# host: 8.142.144.205
|
|
|
+ host: 10.2.111.91
|
|
|
port: 6379
|
|
|
password: '#09SilverB'
|
|
|
jedis:
|