From d73cd5ed27396543dd401532246014f1fa91f9c0 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期二, 08 三月 2022 17:47:51 +0800 Subject: [PATCH] update 去除 oracle 多余连接参数 天生支持批处理 --- ruoyi-admin/src/main/resources/application-prod.yml | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/resources/application-prod.yml b/ruoyi-admin/src/main/resources/application-prod.yml index 9aac0e3..069639e 100644 --- a/ruoyi-admin/src/main/resources/application-prod.yml +++ b/ruoyi-admin/src/main/resources/application-prod.yml @@ -1,3 +1,10 @@ +--- # 閰嶇疆涓存椂璺緞瀛樺偍 +spring: + servlet: + multipart: + # 涓存椂鏂囦欢瀛樺偍浣嶇疆 閬垮厤涓存椂鏂囦欢琚郴缁熸竻鐞嗘姤閿� + location: /ruoyi/server/temp + --- # 鐩戞帶閰嶇疆 spring: boot: @@ -9,7 +16,7 @@ # 璁剧疆 Spring Boot Admin Server 鍦板潃 url: http://172.30.0.90:9090/admin instance: - prefer-ip: true # 娉ㄥ唽瀹炰緥鏃讹紝浼樺厛浣跨敤 IP + service-host-type: IP username: ruoyi password: 123456 @@ -51,7 +58,9 @@ # 涓诲簱鏁版嵁婧� master: driverClassName: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://172.30.0.36:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true + # jdbc 鎵�鏈夊弬鏁伴厤缃弬鑰� https://lionli.blog.csdn.net/article/details/122018562 + # rewriteBatchedStatements=true 鎵瑰鐞嗕紭鍖� 澶у箙鎻愬崌鎵归噺鎻掑叆鏇存柊鍒犻櫎鎬ц兘(瀵规暟鎹簱鏈夋�ц兘鎹熻�� 浣跨敤鎵归噺鎿嶄綔搴旇�冭檻鎬ц兘闂) + url: jdbc:mysql://172.30.0.36:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true username: root password: root # 浠庡簱鏁版嵁婧� @@ -61,6 +70,11 @@ url: username: password: +# oracle: +# driverClassName: oracle.jdbc.OracleDriver +# url: jdbc:oracle:thin:@//172.30.0.36:1521/XE +# username: ROOT +# password: root druid: # 鍒濆杩炴帴鏁� initialSize: 5 @@ -148,11 +162,5 @@ retryAttempts: 3 # 鍛戒护閲嶈瘯鍙戦�佹椂闂撮棿闅旓紝鍗曚綅锛氭绉� retryInterval: 1500 - # 鍙戝竷鍜岃闃呰繛鎺ョ殑鏈�灏忕┖闂茶繛鎺ユ暟 - subscriptionConnectionMinimumIdleSize: 1 # 鍙戝竷鍜岃闃呰繛鎺ユ睜澶у皬 subscriptionConnectionPoolSize: 50 - # 鍗曚釜杩炴帴鏈�澶ц闃呮暟閲� - subscriptionsPerConnection: 5 - # DNS鐩戞祴鏃堕棿闂撮殧锛屽崟浣嶏細姣 - dnsMonitoringInterval: 5000 -- Gitblit v1.9.3