|
@ -20,9 +20,11 @@ spring:
|
|
|
test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
|
|
|
min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
|
|
|
time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
|
|
|
# sleuth:
|
|
|
# sampler:
|
|
|
# percentage: 1.0 #采用需要的请求的百分比 默认是0.1 即 10%
|
|
|
|
|
|
http:
|
|
|
multipart:
|
|
|
max-file-size: 5MB
|
|
|
|
|
|
redis:
|
|
|
database: 0 # Database index used by the connection factory.
|
|
|
password: # Login password of the redis server.
|