From 56b5694738691d6f6d7a9cc3aa99c2cd6bbfe975 Mon Sep 17 00:00:00 2001 From: Foy Lian Date: Mon, 20 Aug 2018 15:19:40 +0800 Subject: [PATCH] cache --- carp-admin/src/main/resources/config/application.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/carp-admin/src/main/resources/config/application.yml b/carp-admin/src/main/resources/config/application.yml index 6470a59..166ae06 100644 --- a/carp-admin/src/main/resources/config/application.yml +++ b/carp-admin/src/main/resources/config/application.yml @@ -4,6 +4,11 @@ server: #servlet: #context-path: /admin spring: + resources: + cache: + #period: 1d + cachecontrol: + max-age: 1d datasource: name: adminPrdEnv url: jdbc:mysql://127.0.0.1/carp?useUnicode=true&characterEncoding=utf-8&useSSL=false