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