diff --git a/pom.xml b/pom.xml
index 82e78e181..d879eb929 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
runtime
-
+
javax.cache
cache-api
diff --git a/src/main/java/org/springframework/samples/petclinic/system/CacheConfig.java b/src/main/java/org/springframework/samples/petclinic/system/CacheConfig.java
index 4bc23bbe6..13e194c35 100755
--- a/src/main/java/org/springframework/samples/petclinic/system/CacheConfig.java
+++ b/src/main/java/org/springframework/samples/petclinic/system/CacheConfig.java
@@ -3,9 +3,9 @@ package org.springframework.samples.petclinic.system;
import javax.cache.configuration.Configuration;
import javax.cache.configuration.MutableConfiguration;
-import org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer;
+import org.springframework.boot.autoconfigure.cache.JCacheManagerCustomizer;
import org.springframework.cache.annotation.EnableCaching;
-import org.springframework.cache.jcache.JCacheCacheManager;
+import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;
/**
@@ -14,17 +14,19 @@ import org.springframework.context.annotation.Profile;
@org.springframework.context.annotation.Configuration
@EnableCaching
@Profile("production")
-class CacheConfig implements CacheManagerCustomizer {
+class CacheConfig {
- @Override
- public void customize(JCacheCacheManager cacheManager) {
- Configuration