From 5e5b9e36fc97f12e6341250f170b4c211ca8400e Mon Sep 17 00:00:00 2001
From: 秦芳睿 <1425609123@qq.com>
Date: 星期日, 13 四月 2025 21:21:33 +0800
Subject: [PATCH] perf(server): 增大数据库连接池最大活跃数

---
 JAVA/SMTAIServer/src/main/resources/application.yml |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/JAVA/SMTAIServer/src/main/resources/application.yml b/JAVA/SMTAIServer/src/main/resources/application.yml
index 7811fc6..90eebfa 100644
--- a/JAVA/SMTAIServer/src/main/resources/application.yml
+++ b/JAVA/SMTAIServer/src/main/resources/application.yml
@@ -9,8 +9,9 @@
     driver-class-name: org.postgresql.Driver
     username: postgres
 
-    #url: jdbc:postgresql://127.0.0.1:15432/huishui_ai?ApplicationName=huishui_ai_web
-    #password: p@ssw0rd
+
+#    url: jdbc:postgresql://192.168.100.61:5432/ai_server?ApplicationName=WateNetWeb
+#    password: Ai123@JXZL
 
     url: jdbc:postgresql://192.168.123.74:5432/huishui_ai?ApplicationName=huishui_ai_web
     password: p@ssw0rd
@@ -35,7 +36,7 @@
       # 鍒濆鍖栧ぇ灏忥紝鏈�灏忥紝鏈�澶�
       initial-size: 0
       min-idle: 10
-      max-active: 1024
+      max-active: 4096
       # 閰嶇疆鑾峰彇杩炴帴绛夊緟瓒呮椂鐨勬椂闂�
       max-wait: 60000
       # 閰嶇疆闂撮殧澶氫箙鎵嶈繘琛屼竴娆℃娴嬶紝妫�娴嬮渶瑕佸叧闂殑绌洪棽杩炴帴锛屽崟浣嶆绉�
@@ -70,7 +71,7 @@
       #  reset-enable: false
       #  # 鐧诲綍鐢ㄦ埛鍚�/瀵嗙爜
       #  login-username: root
-      #  login-password: 123   
+      #  login-password: 123
   servlet:
     multipart:
       max-file-size: 10GB

--
Gitblit v1.9.3