Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
[ch06] Use AspectJExpressionPointcut.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhsim86 committed Sep 13, 2017
1 parent 5e2b189 commit f989cec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/resources/applicationContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
<property name="transactionManager" ref="transactionManager"/>
</bean>

<bean id="transactionPointcut" class="ch06.springbook.aop.NameMatchClassMethodPointcut">
<property name="mappedClassName" value="*ServiceImpl" />
<property name="mappedName" value="upgrade*" />
<bean id="transactionPointcut" class="org.springframework.aop.aspectj.AspectJExpressionPointcut">
<property name="expression" value="execution(* *..*ServiceImpl.upgrade*(..))" />
</bean>

<bean id="transactionAdvisor" class="org.springframework.aop.support.DefaultPointcutAdvisor">
Expand Down

0 comments on commit f989cec

Please sign in to comment.