|
@@ -6,16 +6,17 @@ spring:
|
|
druid:
|
|
druid:
|
|
# 主库数据源
|
|
# 主库数据源
|
|
master:
|
|
master:
|
|
- url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
|
|
+ url: jdbc:mysql://localhost:3306/big_model?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
username: root
|
|
username: root
|
|
- password: root
|
|
|
|
|
|
+ password: Hongshan2024#longjiang%xinyi
|
|
# 从库数据源
|
|
# 从库数据源
|
|
slave:
|
|
slave:
|
|
# 从数据源开关/默认关闭
|
|
# 从数据源开关/默认关闭
|
|
- enabled: false
|
|
|
|
- url:
|
|
|
|
- username:
|
|
|
|
- password:
|
|
|
|
|
|
+ enabled: true
|
|
|
|
+ driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
|
+ url: jdbc:sqlserver://10.0.3.53:1433;SelectMethod=Cursor;DatabaseName=信义
|
|
|
|
+ username: hongshan
|
|
|
|
+ password: hongshan
|
|
# 初始连接数
|
|
# 初始连接数
|
|
initialSize: 5
|
|
initialSize: 5
|
|
# 最小连接池数量
|
|
# 最小连接池数量
|
|
@@ -35,11 +36,11 @@ spring:
|
|
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
|
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
|
maxEvictableIdleTimeMillis: 900000
|
|
maxEvictableIdleTimeMillis: 900000
|
|
# 配置检测连接是否有效
|
|
# 配置检测连接是否有效
|
|
- validationQuery: SELECT 1 FROM DUAL
|
|
|
|
|
|
+ validationQuery: SELECT 1
|
|
testWhileIdle: true
|
|
testWhileIdle: true
|
|
testOnBorrow: false
|
|
testOnBorrow: false
|
|
testOnReturn: false
|
|
testOnReturn: false
|
|
- webStatFilter:
|
|
|
|
|
|
+ webStatFilter:
|
|
enabled: true
|
|
enabled: true
|
|
statViewServlet:
|
|
statViewServlet:
|
|
enabled: true
|
|
enabled: true
|
|
@@ -61,6 +62,7 @@ spring:
|
|
multi-statement-allow: true
|
|
multi-statement-allow: true
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
application:
|
|
application:
|
|
ali-cloud:
|
|
ali-cloud:
|
|
enable-sms: true
|
|
enable-sms: true
|