Skip to content

Document how to use custom @Cacheable annotation with AspectJ [SPR-11503] #16128

@spring-projects-issues

Description

@spring-projects-issues

Sylvain LAURENT opened SPR-11503 and commented

The documentation about using custom annotations for @Cacheable should warn that such annotations are not picked up when using AspectJ because the pointcuts of org.springframework.cache.aspectj.AnnotationCacheAspect only care about base annotations and not custom annotations.

If one wants to use custom annotations with aspectj weaving, one has to declare a custom aspectj advice...


Affects: 4.0.2

Reference URL: http://docs.spring.io/spring/docs/4.0.2.RELEASE/spring-framework-reference/html/cache.html#cache-annotation-stereotype

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions