File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
org.springframework.aspects/src
test/java/org/springframework/cache/config Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 13
13
<aspect name =" org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect" />
14
14
<aspect name =" org.springframework.scheduling.aspectj.AnnotationAsyncExecutionAspect" />
15
15
<aspect name =" org.springframework.transaction.aspectj.AnnotationTransactionAspect" />
16
+ <aspect name =" org.springframework.cache.aspectj.AnnotationCacheAspect" />
16
17
</aspects >
17
18
18
19
</aspectj >
Original file line number Diff line number Diff line change 2
2
<beans xmlns =" http://www.springframework.org/schema/beans" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
3
xmlns : aop =" http://www.springframework.org/schema/aop"
4
4
xmlns : p =" http://www.springframework.org/schema/p"
5
- xsi : schemaLocation =" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
6
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd" >
5
+ xmlns : cache =" http://www.springframework.org/schema/cache"
6
+ xmlns : context =" http://www.springframework.org/schema/context"
7
+ xsi : schemaLocation =" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
8
+ http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
9
+ http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
10
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd" >
7
11
8
- < bean id = " annotationSource " class = " org.springframework.cache.annotation.AnnotationCacheOperationSource " />
9
-
12
+
13
+ <!--
10
14
<aop:config>
11
15
<aop:advisor advice-ref="debugInterceptor" pointcut="execution(* *..CacheableService.*(..))" order="1"/>
12
16
</aop:config>
15
19
<property name="cacheManager" ref="cacheManager"/>
16
20
<property name="cacheOperationSources" ref="annotationSource"/>
17
21
</bean>
18
-
22
+
23
+ <bean id="annotationSource" class="org.springframework.cache.annotation.AnnotationCacheOperationSource"/>
24
+ -->
25
+
26
+ <cache : annotation-driven mode =" aspectj" />
27
+
19
28
<bean id =" cacheManager" class =" org.springframework.cache.support.SimpleCacheManager" >
20
29
<property name =" caches" >
21
30
<set >
You can’t perform that action at this time.
0 commit comments