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-prod.yml |   36 +++++++++++++++++++++++++-----------
 1 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml
index 75741a9..1163102 100644
--- a/src/main/resources/application-prod.yml
+++ b/src/main/resources/application-prod.yml
@@ -2,8 +2,7 @@
   port: 9010
 bak:
   url: 220.158.10.151
-img:
-  url: d:/datagovernance/file/activiti/
+
 baks:
   url: jdbc:mysql://127.0.0.1:3306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
   username: root
@@ -12,15 +11,25 @@
 spring:
   datasource:
     driver-class-name: com.mysql.jdbc.Driver
-    url:  jdbc:mysql://180.169.94.250:8306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
+    url: jdbc:mysql://180.169.94.250:8306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
     username: masterdata
     password: md123!
-    hikari:
-      minimum-idle: 3
-      max-lifetime: 30000
-      connection-test-query: select 1
+    type: com.alibaba.druid.pool.DruidDataSource
+    druid:
+      maxActive: 20
+      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
+    database-schema-update: flase
 
   thymeleaf:
     cache: false
@@ -45,12 +54,13 @@
       column-underline: true
 
 redis:
-  host: http://180.169.94.250
-  port: 9107
+  url: http://180.169.94.250:9107
 
 rule:
   url: http://180.169.94.250:9107
 
+user:
+  url: http://180.169.94.250:9107
 
 xxljob:
   local: http://180.169.94.250:9010
@@ -80,4 +90,8 @@
       username: masterdata
       password: md123!
   bigdata:
-    db:hbase?
\ No newline at end of file
+    db:hbase?
+
+pool:
+  coresize: 5
+  coefficient: 20
\ No newline at end of file

--
Gitblit v1.8.0