Polishing

This commit is contained in:
Juergen Hoeller
2019-12-01 11:11:42 +01:00
parent 9404a8a108
commit dcedd29deb
4 changed files with 16 additions and 15 deletions

View File

@@ -77,6 +77,7 @@ public class JCacheAspectSupport extends AbstractCacheInvoker implements Initial
return this.cacheOperationSource;
}
@Override
public void afterPropertiesSet() {
Assert.state(getCacheOperationSource() != null, "The 'cacheOperationSource' property is required: " +
"If there are no cacheable methods, then don't use a cache aspect.");