|
@@ -6,12 +6,12 @@ spring:
|
|
|
druid:
|
|
|
# 主库数据源
|
|
|
master:
|
|
|
-# url: jdbc:mysql://mysql8-compose:3306/red?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=CST&autoReconnect=true&failOverReadOnly=false
|
|
|
-# username: post
|
|
|
-# password: post
|
|
|
- url: jdbc:mysql://localhost:3306/post?useUnicode=true&characterEncoding=utf8
|
|
|
- username: root
|
|
|
- password: huianan
|
|
|
+ url: jdbc:mysql://mysql8-compose:3306/red?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=CST&autoReconnect=true&failOverReadOnly=false
|
|
|
+ username: post
|
|
|
+ password: post
|
|
|
+# url: jdbc:mysql://localhost:3306/post?useUnicode=true&characterEncoding=utf8
|
|
|
+# username: root
|
|
|
+# password: huianan
|
|
|
# 从库数据源
|
|
|
slave:
|
|
|
# 从数据源开关/默认关闭
|