From 5d15287b2a06f978485ac6af71e33e1a82b43a65 Mon Sep 17 00:00:00 2001
From: kimi <kimi42345@gmail.com>
Date: 星期三, 15 四月 2020 16:29:55 +0800
Subject: [PATCH] fix  上传后生成版本连接池用完不释放问题

---
 src/main/resources/application-dev.yml |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
index be855ce..eedefec 100644
--- a/src/main/resources/application-dev.yml
+++ b/src/main/resources/application-dev.yml
@@ -9,7 +9,18 @@
     username: root
     password: 123456
     type: com.alibaba.druid.pool.DruidDataSource
-
+    druid:
+      maxActive: 3
+      maxWait: 30000
+      validationQuery: select 1
+      testWhileIdle: true
+      testOnBorrow: false
+      testOnReturn: false
+      timeBetweenEvictionRunsMillis: 60000
+      minEvictableIdleTimeMillis: 300000
+      removeAbandoned: true
+      removeAbandonedTimeout: 1800
+      logAbandoned: false
 
   activiti:
     database-schema-update: true
@@ -45,6 +56,9 @@
 #activiti:
 #  check-process-definitions: false
 redis:
+  url: http://180.169.94.250:9107
+
+user:
   url: http://180.169.94.250:9107
 
 rule:
@@ -88,3 +102,8 @@
 zookeeper:
   znode:
     parent: /hbase
+
+pool:
+  coresize: 5
+  coefficient: 20
+  timeout: 3000000
\ No newline at end of file

--
Gitblit v1.8.0