【发布时间】:2013-11-25 18:54:19
【问题描述】:
我目前正在编写一个自定义 @Cacheable 注释,除了 Spring 的 @Cacheable 提供的那些之外,它还将采用额外的元数据属性。但是,Spring 需要知道如何解析这个新注解。我的理解是我需要扩展和覆盖 AnnotationCacheOperationSource 的 determineCacheOperations() 以便可以使用适当的解析新注释CacheableOperation 类从它初始化。这是正确的方法吗?
问候,
史蒂夫
【问题讨论】:
-
@Steve,你的问题解决了吗,如果可以,请分享一下。我也被这个问题阻止了。感谢您对此的帮助