diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/EhCacheCacheConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/EhCacheCacheConfiguration.java index 4f0a0ea621..a3e19e3fea 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/EhCacheCacheConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/EhCacheCacheConfiguration.java @@ -71,7 +71,7 @@ class EhCacheCacheConfiguration { static class ConfigAvailableCondition extends CacheConfigFileCondition { public ConfigAvailableCondition() { - super("EhCache", "spring.config.ehcache", "classpath:/ehcache.xml"); + super("EhCache", "spring.cache.ehcache", "classpath:/ehcache.xml"); } } diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/HazelcastCacheConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/HazelcastCacheConfiguration.java index 427ebaa021..81893823bb 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/HazelcastCacheConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/HazelcastCacheConfiguration.java @@ -81,7 +81,7 @@ class HazelcastCacheConfiguration { static class ConfigAvailableCondition extends CacheConfigFileCondition { public ConfigAvailableCondition() { - super("Hazelcast", "spring.config.hazelcast", "file:./hazelcast.xml", + super("Hazelcast", "spring.cache.hazelcast", "file:./hazelcast.xml", "classpath:/hazelcast.xml"); }