This commit is contained in:
Stephane Nicoll 2015-03-30 09:42:08 +02:00
parent 45023caa47
commit 72561f8969
1 changed files with 2 additions and 2 deletions

View File

@ -111,11 +111,11 @@ public class CacheAutoConfiguration {
private CacheProperties cacheProperties;
@Autowired(required = false)
private CacheManager beanFactory;
private CacheManager cacheManager;
@PostConstruct
public void checkHasCacheManager() {
Assert.notNull(this.beanFactory, "No cache manager could "
Assert.notNull(this.cacheManager, "No cache manager could "
+ "be auto-configured, check your configuration (caching "
+ "type is '" + this.cacheProperties.getType() + "')");
}