Commit 01122607 authored by izeye's avatar izeye Committed by Stephane Nicoll

Fix typo in cache auto-configurations

Make sure that the EhCache support is triggered if
`spring.cache.ehcache.config` is set and the cache type is set to `auto`.

Same thing for Hazelcast.

Closes gh-3227
parent 79adcc94
......@@ -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");
}
}
......
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment