From e7e60855ba19986b937f77e99e6f1e41dd11f960 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Mon, 17 Feb 2025 01:01:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20caffeine=20=E7=BC=93=E5=AD=98=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-prod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index b8a47f2c..c369e617 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -34,6 +34,8 @@ spring: time-to-live: 3600000 # 缓存null值,防止缓存穿透 cache-null-values: true + caffeine: + spec: initialCapacity=50,maximumSize=1000,expireAfterWrite=600s # 邮件配置 mail: host: smtp.youlai.tech @@ -48,8 +50,6 @@ spring: enable: true # 邮件发送者 from: youlaitech@163.com - caffeine: - spec: initialCapacity=50,maximumSize=500,expireAfterWrite=3600s mybatis-plus: mapper-locations: classpath*:/mapper/**/*.xml global-config: