Skip to content

Commit

Permalink
fix:修复参数验证和缓存问题
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Sep 16, 2023
1 parent a2e206d commit b5b1b0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions heming-admin/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down

0 comments on commit b5b1b0e

Please sign in to comment.