From b9e4682d3ffb4446f41cf6170a3920a93d94f2d3 Mon Sep 17 00:00:00 2001 From: songww Date: Sun, 10 May 2020 22:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84ssrc=E7=AC=A6=E5=90=88?= =?UTF-8?q?=E5=9B=BD=E6=A0=87=EF=BC=8C=E5=B9=B6=E5=AE=8C=E5=96=84=E5=BE=88?= =?UTF-8?q?=E5=A4=9A=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index df0a190..4ec320e 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -16,35 +16,11 @@ spring: password: #超时时间 timeout: 10000 - # 可用连接实例的最大数目,默认值为8 - maxTotal: 512 - #控制一个pool最多有多少个状态为idle(空闲的)的jedis实例,默认值也是8 - maxIdle: 100 - #最小空闲连接数 - minIdle: 50 - #获取连接时的最大等待毫秒数,小于零:阻塞不确定的时间,默认-1 - maxWaitMillis: 10000 - #每次释放连接的最大数目 - numTestsPerEvictionRun: 100 - #释放连接的扫描间隔(毫秒) - timeBetweenEvictionRunsMillis: 3000 - #连接最小空闲时间 - minEvictableIdleTimeMillis: 1800000 - #连接空闲多久后释放,当空闲时间>该值且空闲连接>最大空闲连接数时直接释放 - softMinEvictableIdleTimeMillis: 10000 - #在获取连接的时候检查有效性,默认false - testOnBorrow: true - #在空闲时检查有效性,默认false - testWhileIdle: true - #在归还给pool时,是否提前进行validate操作 - testOnReturn: true - #连接耗尽时是否阻塞,false报异常,ture阻塞直到超时,默认true - blockWhenExhausted: false datasource: name: eiot url: jdbc:mysql://10.24.20.63:3306/eiot?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true username: root - password: Ptjsinspur19.? + password: 123456 type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.jdbc.Driver server: