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:
parent
79adcc9421
commit
0112260767
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue