Annotating interfaces or interface methods with @Cache*
annotations is not recommended by the official Spring documentation. If you
use the weaving-based aspect (mode="aspectj"), the @Cache*
annotations will be ignored, and no caching proxy will be created.
What is the potential impact?
- Confusing Code: Developers may mistakenly believe that caching is in effect, leading to confusion and incorrect assumptions
about application performance.
This rule raises an issue when an interface or an interface method is annotated with a @Cache*
annotation.