@ -221,11 +221,11 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@@ -221,11 +221,11 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
}
catch(NoUniqueBeanDefinitionExceptionex){
thrownewIllegalStateException("No CacheResolver specified, and no unique bean of type "+
"CacheManager found. Mark one as primary or declare a specific CacheManager to use.");
"CacheManager found. Mark one as primary or declare a specific CacheManager to use.",ex);
}
catch(NoSuchBeanDefinitionExceptionex){
thrownewIllegalStateException("No CacheResolver specified, and no bean of type CacheManager found. "+
"Register a CacheManager bean or remove the @EnableCaching annotation from your configuration.");
"Register a CacheManager bean or remove the @EnableCaching annotation from your configuration.",ex);
@ -87,6 +89,7 @@ public class EnableCachingTests extends AbstractCacheAnnotationTests {
@@ -87,6 +89,7 @@ public class EnableCachingTests extends AbstractCacheAnnotationTests {
}
catch(IllegalStateExceptionex){
assertThat(ex.getMessage().contains("no unique bean of type CacheManager")).isTrue();
@ -121,6 +124,7 @@ public class EnableCachingTests extends AbstractCacheAnnotationTests {
@@ -121,6 +124,7 @@ public class EnableCachingTests extends AbstractCacheAnnotationTests {
}
catch(IllegalStateExceptionex){
assertThat(ex.getMessage().contains("no bean of type CacheManager")).isTrue();