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 | 75 +++++++++++++++++++++++++++++++------ 1 files changed, 62 insertions(+), 13 deletions(-) diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 74d55c7..1163102 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -4,22 +4,32 @@ url: 220.158.10.151 baks: - url1: jdbc:mysql://127.0.0.1:3306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true + url: jdbc:mysql://127.0.0.1:3306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true username: root password: datacvg123! spring: datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://192.168.2.230:3306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true + 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 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 @@ -28,12 +38,14 @@ servlet: content-type: text/html encoding: utf-8 + logging: level: com: highdatas: mdm: mapper: DEBUG + mybatis-plus: mapper-locations: classpath:mapping/*.xml type-aliases-package: com.highdatas.mdm.mapper @@ -41,8 +53,45 @@ db-config: column-underline: true -exists: - callback: - url: http://192.168.2.68:18080/activiti/getBusinessId -#activiti: -# check-process-definitions: false \ No newline at end of file +redis: + 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 + url: http://180.169.94.250:6890 + bak: +xxl: + job: + accessToken: + executor: + ip: + port: 9909 + logpath: /data/applogs/xxl-job/jobhandler + logretentiondays: 1 + appname: assemble + admin: + addresses: http://192.168.2.68:8090/xxl-job-admin + + +master: + unbigdata: + db: + host: 180.169.94.250 + url: jdbc:mysql://180.169.94.250:8306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true + type: MYSQL + port: 8306 + schema: data_admin + username: masterdata + password: md123! + bigdata: + db:hbase? + +pool: + coresize: 5 + coefficient: 20 \ No newline at end of file -- Gitblit v1.8.0