只是用一个从库
This commit is contained in:
@@ -37,26 +37,26 @@ spring:
|
|||||||
idle-timeout: ${idle-timeout}
|
idle-timeout: ${idle-timeout}
|
||||||
max-lifetime: ${max-lifetime}
|
max-lifetime: ${max-lifetime}
|
||||||
connection-timeout: ${connection-timeout}
|
connection-timeout: ${connection-timeout}
|
||||||
slave-0:
|
# slave-0:
|
||||||
driver-class-name: ${driver-class-name}
|
# driver-class-name: ${driver-class-name}
|
||||||
jdbc-url: jdbc:mysql://localhost:3306/duanju?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
# jdbc-url: jdbc:mysql://localhost:3306/duanju?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
||||||
username: root
|
# username: root
|
||||||
password: acddb0c84a192ada
|
# password: acddb0c84a192ada
|
||||||
minimum-idle: ${minimum-idle}
|
# minimum-idle: ${minimum-idle}
|
||||||
maximum-pool-size: ${maximum-pool-size}
|
# maximum-pool-size: ${maximum-pool-size}
|
||||||
idle-timeout: ${idle-timeout}
|
# idle-timeout: ${idle-timeout}
|
||||||
max-lifetime: ${max-lifetime}
|
# max-lifetime: ${max-lifetime}
|
||||||
connection-timeout: ${connection-timeout}
|
# connection-timeout: ${connection-timeout}
|
||||||
slave-1:
|
# slave-1:
|
||||||
driver-class-name: ${driver-class-name}
|
# driver-class-name: ${driver-class-name}
|
||||||
jdbc-url: jdbc:mysql://172.18.96.9:3306/duanju?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
# jdbc-url: jdbc:mysql://172.18.96.9:3306/duanju?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
||||||
username: root
|
# username: root
|
||||||
password: VideoUser1@
|
# password: VideoUser1@
|
||||||
minimum-idle: ${minimum-idle}
|
# minimum-idle: ${minimum-idle}
|
||||||
maximum-pool-size: ${maximum-pool-size}
|
# maximum-pool-size: ${maximum-pool-size}
|
||||||
idle-timeout: ${idle-timeout}
|
# idle-timeout: ${idle-timeout}
|
||||||
max-lifetime: ${max-lifetime}
|
# max-lifetime: ${max-lifetime}
|
||||||
connection-timeout: ${connection-timeout}
|
# connection-timeout: ${connection-timeout}
|
||||||
slave-2:
|
slave-2:
|
||||||
driver-class-name: ${driver-class-name}
|
driver-class-name: ${driver-class-name}
|
||||||
jdbc-url: jdbc:mysql://172.18.96.8:3306/duanju?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
jdbc-url: jdbc:mysql://172.18.96.8:3306/duanju?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
||||||
@@ -74,7 +74,8 @@ spring:
|
|||||||
#数据源
|
#数据源
|
||||||
duanju:
|
duanju:
|
||||||
master-data-source-name: master-0
|
master-data-source-name: master-0
|
||||||
slave-data-source-names: slave-0,slave-1,slave-2
|
# slave-data-source-names: slave-0,slave-1,slave-2
|
||||||
|
slave-data-source-names: slave-2
|
||||||
# - slave-0
|
# - slave-0
|
||||||
# - slave-1
|
# - slave-1
|
||||||
# - slave-2
|
# - slave-2
|
||||||
|
|||||||
Reference in New Issue
Block a user