為什么要在兩個(gè)地方配置method
老師在“配置事務(wù)的通知”和“配置AOP的切面”是都配置了對哪個(gè)方法加強(qiáng)
在“配置事務(wù)的通知”中指定了transfer方法:
<tx:method?name="transfer"?propagation="REQUIRED"/>
在“配置AOP的切面”中指定了任意方法:
<aop:pointcut?expression="execution(*?demo3.AccountService+.*(..))"?id="pointcut1"/>
,請問這是否重復(fù)了?
2016-09-19
可以組合使用
2016-08-29