|
|
@@ -26,6 +26,14 @@ spring:
|
|
26
|
26
|
url: jdbc:mysql://172.16.0.46:3306/depot-yunnan?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
|
|
27
|
27
|
username: root
|
|
28
|
28
|
password: 123456
|
|
|
29
|
+ #验证连接是否有效。此参数必须设置为非空字符串,下面三项设置成true才能生效
|
|
|
30
|
+ validationQuery: SELECT 1
|
|
|
31
|
+ #指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除.
|
|
|
32
|
+ testWhileIdle: true
|
|
|
33
|
+ #指明是否在从池中取出连接前进行检验,如果检验失败,则从池中去除连接并尝试取出另一个
|
|
|
34
|
+ testOnBorrow: true
|
|
|
35
|
+ #指明是否在归还到池中前进行检验
|
|
|
36
|
+ testOnReturn: true
|
|
29
|
37
|
# 缓存配置
|
|
30
|
38
|
session:
|
|
31
|
39
|
store-type: redis
|