diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheProperties.java index fc1297359c7..6e1ce5dfa1c 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheProperties.java @@ -47,7 +47,7 @@ public class CacheProperties { * Comma-separated list of cache names to create if supported by the underlying cache * manager. Usually, this disables the ability to create additional caches on-the-fly. */ - private final List cacheNames = new ArrayList(); + private List cacheNames = new ArrayList(); private final JCache jcache = new JCache(); @@ -73,6 +73,10 @@ public class CacheProperties { return this.cacheNames; } + public void setCacheNames(List cacheNames) { + this.cacheNames = cacheNames; + } + public JCache getJcache() { return this.jcache; }