|
@@ -10,25 +10,21 @@ spring:
|
|
|
password: root
|
|
|
datasource:
|
|
|
dynamic:
|
|
|
- primary: mysql
|
|
|
+ primary: master
|
|
|
# 数据库配置
|
|
|
datasource:
|
|
|
- mysql:
|
|
|
+ master:
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
platform: mysql
|
|
|
- url: jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
|
|
|
+ url: jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true
|
|
|
+ username: root
|
|
|
+ password: lantone
|
|
|
+ med:
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
+ platform: mysql
|
|
|
+ url: jdbc:mysql://192.168.2.236:3306/med_2021?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true
|
|
|
username: root
|
|
|
password: lantone
|
|
|
- #定义初始连接数
|
|
|
- initialSize: 0
|
|
|
- #定义最大连接数
|
|
|
- maxActive: 20
|
|
|
- #定义最大空闲
|
|
|
- maxIdle: 20
|
|
|
- #定义最小空闲
|
|
|
- minIdle: 1
|
|
|
- #定义最长等待时间
|
|
|
- maxWait: 60000
|
|
|
|
|
|
|
|
|
cloud:
|