|
@@ -46,9 +46,6 @@ spring:
|
|
|
autoconfigure:
|
|
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
|
|
datasource:
|
|
|
- url: jdbc:mysql://139.186.27.96:3390/track?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true
|
|
|
- username: hcst
|
|
|
- password: hcst@2020
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
|
dynamic:
|
|
@@ -78,11 +75,11 @@ spring:
|
|
|
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
|
|
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
|
|
datasource:
|
|
|
-# master:
|
|
|
-# url: jdbc:mysql://139.186.27.96:3390/track?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true
|
|
|
-# username: hcst
|
|
|
-# password: hcst@2020
|
|
|
-# driver-class-name: com.mysql.jdbc.Driver
|
|
|
+ master:
|
|
|
+ url: jdbc:mysql://139.186.27.96:3390/track?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true
|
|
|
+ username: hcst
|
|
|
+ password: hcst@2020
|
|
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
# 多数据源配置
|
|
|
#multi-datasource1:
|
|
|
# url: jdbc:mysql://39.106.184.70:3306/track?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
|