Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The key-generator attribute of cache:annotation-driven element does not work when mode attribute is set to "aspectj" [SPR-8939] #13579

Closed
spring-projects-issues opened this issue Dec 16, 2011 · 1 comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

liuchiliang opened SPR-8939 and commented

I want to use custom keyGenerator when I use aspectj compile-time weaving, but the keyGenerator is always DefaultKeyGenerator.
The config is as below:
<cache:annotation-driven mode="aspectj" key-generator="myKeyGenerator"/>
<bean id="myKeyGenerator" class="xxx.MyKeyGenerator"/>

<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager" p:cache-manager-ref="ehcache"/>
<bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:config-location="classpath:ehcache.xml"/>

Affects: 3.1 GA

Referenced from: commits c39a14a

@spring-projects-issues
Copy link
Collaborator Author

Costin Leau commented

#9

@spring-projects-issues spring-projects-issues added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.1.1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant