From 4b539390029c93f965df2ee46d05c739df90631b Mon Sep 17 00:00:00 2001
From: ageer <ageerle@163.com>
Date: 星期六, 12 四月 2025 15:18:16 +0800
Subject: [PATCH] feat: mcp支持,模块重构

---
 ruoyi-admin/src/main/resources/application-dev.yml |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/application-dev.yml b/ruoyi-admin/src/main/resources/application-dev.yml
similarity index 79%
rename from ruoyi-modules/ruoyi-system/src/main/resources/application-dev.yml
rename to ruoyi-admin/src/main/resources/application-dev.yml
index 44530d4..09c609c 100644
--- a/ruoyi-modules/ruoyi-system/src/main/resources/application-dev.yml
+++ b/ruoyi-admin/src/main/resources/application-dev.yml
@@ -25,10 +25,9 @@
         master:
           type: ${spring.datasource.type}
           driverClassName: com.mysql.cj.jdbc.Driver
-          url: jdbc:mysql://43.139.70.230:3306/ruoyi-ai?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
-          username: ruoyi-ai
-          password: ruoyi-ai
-
+          url: jdbc:mysql://43.139.70.230:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
+          username: ry-vue
+          password: xx
 
       hikari:
         # 鏈�澶ц繛鎺ユ睜鏁伴噺
@@ -97,3 +96,23 @@
   signName: 娴嬭瘯
   # 鑵捐涓撶敤
   sdkAppId:
+
+spring:
+  ai:
+    openai:
+      api-key: sk-xX
+      base-url: https://api.pandarobot.chat
+    ollama:
+      base-url: http://localhost:11434
+      init:
+        pull-model-strategy: always
+        timeout: 60s
+        max-retries: 1
+    mcp:
+      client:
+        enabled: true
+        name: call-mcp-server
+        sse:
+          connections:
+            server1:
+              url: http://127.0.0.1:8080

--
Gitblit v1.9.3