diff --git a/pom.xml b/pom.xml
index 8313aacc829f1bc40c5be228774269b7f00a56ad..c8dd86a586e4c2820814ed41798de2a006808e31 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,6 +14,8 @@
SpringBoot-kwan
Demo project for Spring Boot
+ 1.8
+ 1.8
1.8
UTF-8
@@ -230,7 +232,12 @@
org.springframework.boot
spring-boot-starter-thymeleaf
- 3.1.2
+
+
+
+ com.github.ben-manes.caffeine
+ caffeine
+
diff --git a/src/main/java/com/kwan/springbootkwan/config/CacheConfig.java b/src/main/java/com/kwan/springbootkwan/config/CacheConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..fb2c478aaed946f542b32f6dd33bb763a740dd87
--- /dev/null
+++ b/src/main/java/com/kwan/springbootkwan/config/CacheConfig.java
@@ -0,0 +1,30 @@
+package com.kwan.springbootkwan.config;
+
+import com.github.benmanes.caffeine.cache.Caffeine;
+import org.springframework.cache.CacheManager;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.cache.caffeine.CaffeineCacheManager;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import java.util.concurrent.TimeUnit;
+
+@Configuration
+@EnableCaching
+public class CacheConfig {
+
+ @Bean
+ public Caffeine