配置文件微调
This commit is contained in:
parent
63cf1fee47
commit
2d78703bc3
@ -1,4 +1,12 @@
|
|||||||
spring:
|
spring:
|
||||||
|
cache:
|
||||||
|
redis:
|
||||||
|
# 指定存活时间(ms)
|
||||||
|
time-to-live: 86400000
|
||||||
|
# 指定前缀
|
||||||
|
use-key-prefix: true
|
||||||
|
# 是否缓存空值,可以防止缓存穿透
|
||||||
|
cache-null-values: true
|
||||||
data:
|
data:
|
||||||
# redis 配置
|
# redis 配置
|
||||||
redis:
|
redis:
|
||||||
|
@ -50,13 +50,6 @@ spring:
|
|||||||
cache:
|
cache:
|
||||||
# 指定缓存类型 jcache 本地缓存 redis 缓存
|
# 指定缓存类型 jcache 本地缓存 redis 缓存
|
||||||
type: redis
|
type: redis
|
||||||
redis:
|
|
||||||
# 指定存活时间(ms)
|
|
||||||
time-to-live: 86400000
|
|
||||||
# 指定前缀
|
|
||||||
use-key-prefix: true
|
|
||||||
# 是否缓存空值,可以防止缓存穿透
|
|
||||||
cache-null-values: true
|
|
||||||
mvc:
|
mvc:
|
||||||
pathmatch:
|
pathmatch:
|
||||||
matching-strategy: ANT_PATH_MATCHER
|
matching-strategy: ANT_PATH_MATCHER
|
||||||
|
Loading…
Reference in New Issue
Block a user