From eef2b68291439a4a019bd0bd9cbde50bd9be1c20 Mon Sep 17 00:00:00 2001 From: wangzhiwei Date: Tue, 21 Apr 2026 09:59:46 +0800 Subject: [PATCH] =?UTF-8?q?config(session):=20=E7=A6=81=E7=94=A8=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E6=8C=81=E4=B9=85=E5=8C=96=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=A4=B4=E5=83=8F=E4=B8=8A=E4=BC=A0=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 禁用会话持久化,避免启动时恢复损坏的会话文件 - 添加 userIconPath 配置项用于用户头像上传路径 - 在开发环境配置中同步添加用户头像路径配置 --- src/main/resources/application-dev.yml | 1 + src/main/resources/application.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index c7f62b4..2c69fb1 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -104,6 +104,7 @@ jetcache: web: upload: path: /kexue/agentSkills/upload/ + userIconPath: /kexue/agentSkills/resources/userIcons payment: # 微信支付配置 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 91f4fd0..e2ad121 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -4,6 +4,9 @@ spring: application: name: agentSkills version: 1.0.0 + # 禁用会话持久化,避免启动时恢复损坏的会话文件 + session: + store-type: none mvc: pathmatch: matching-strategy: ANT_PATH_MATCHER @@ -93,6 +96,7 @@ sms: web: upload: path: /kexue/agentSkills/upload/ + userIconPath: /kexue/agentSkills/resources/userIcons # 雪花算法配置 snowflake: