From 0bd9d490e32dea154d20cebd67f70a426510523f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E5=90=9B=E7=A6=B9?= <2673609096@qq.com> Date: Sat, 16 Aug 2025 14:10:10 +0800 Subject: [PATCH] =?UTF-8?q?farm=E6=A8=A1=E5=9D=97-=E5=9C=B0=E5=8C=BA?= =?UTF-8?q?=E8=A1=A8=E8=B7=B3=E8=BF=87=E7=A7=9F=E6=88=B7=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-server/src/main/resources/application-dev.yaml | 3 +++ yudao-server/src/main/resources/application.yaml | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/yudao-server/src/main/resources/application-dev.yaml b/yudao-server/src/main/resources/application-dev.yaml index d10dd0c6..4cfdc0c4 100644 --- a/yudao-server/src/main/resources/application-dev.yaml +++ b/yudao-server/src/main/resources/application-dev.yaml @@ -63,6 +63,9 @@ spring: port: 6379 # 端口 database: 1 # 数据库索引 # password: 123456 # 密码,建议生产环境开启 + mongodb: + uri: mongodb://mongo_BiKBdR:mongo_KaShrX@223.83.129.121:27017/farming-platform-iot?authSource=farming-platform-iot + auto-index-creation: true --- #################### 定时任务相关配置 #################### diff --git a/yudao-server/src/main/resources/application.yaml b/yudao-server/src/main/resources/application.yaml index 3c77fe90..c0ff9edc 100644 --- a/yudao-server/src/main/resources/application.yaml +++ b/yudao-server/src/main/resources/application.yaml @@ -318,4 +318,13 @@ yudao: debug: false # 插件配置 TODO 芋艿:【IOT】需要处理下 pf4j: - pluginsDir: /Users/anhaohao/code/gitee/ruoyi-vue-pro/plugins # 插件目录 \ No newline at end of file + pluginsDir: /Users/anhaohao/code/gitee/ruoyi-vue-pro/plugins # 插件目录 + +spring: + task: + execution: + pool: + core-size: 16 # 默认核心线程数,可根据实际需求调整 + max-size: 32 # 最大线程数 + queue-capacity: 1000 # 队列容量 + keep-alive: 60s # 空闲线程存活时间 \ No newline at end of file