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
This commit is contained in:
izeye 2015-06-15 14:35:22 +09:00 committed by Stephane Nicoll
parent 79adcc9421
commit 0112260767
2 changed files with 2 additions and 2 deletions

View File

@ -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");
}
}

View File

@ -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");
}