From b5b1b0e5f40c2870b188962f255f9410011e8143 Mon Sep 17 00:00:00 2001 From: besscroft Date: Sat, 16 Sep 2023 21:22:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E5=92=8C=E7=BC=93=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- heming-admin/src/main/resources/application-dev.yml | 7 ++++--- pom.xml | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/heming-admin/src/main/resources/application-dev.yml b/heming-admin/src/main/resources/application-dev.yml index b7ddf86..b99fc27 100644 --- a/heming-admin/src/main/resources/application-dev.yml +++ b/heming-admin/src/main/resources/application-dev.yml @@ -41,9 +41,10 @@ spring: connection-test-query: select 1 # 缓存 cache: - type: redis - caffeine: - spec: maximumSize=500,initialCapacity=100,expireAfterAccess=600s + type: REDIS + redis: + timeToLive: 68400000 + cacheNullValues: true # MyBatis配置 mybatis: diff --git a/pom.xml b/pom.xml index 0286022..d44ed16 100644 --- a/pom.xml +++ b/pom.xml @@ -66,6 +66,10 @@ spring-boot-configuration-processor true + + org.springframework.boot + spring-boot-starter-validation + org.springframework.boot spring-boot-starter-test