熟悉Spring的大大们进啊
我在配置Spring的时候,想配置两个切面
<aop:config>
<aop:pointcut id="allManageMethod"
expression="execution(* com.lhq.prj.bms.service.impl.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod"/>
</aop:config>
这是其中的一个切面
我还想配置另一个切面为 * com.czccb.bmsh.service.impl.*.*(..) 该怎么配置啊,是不是就像下面这样啊
<aop:config>
<aop:pointcut id="allManageMethod1"
expression="execution(* com.lhq.prj.bms.service.impl.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod1"/>
<aop:pointcut id="allManageMethod2"
expression="execution(* com.czccb.bmsh.service.impl.*.*(..)"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod2"/>
</aop:config>
这样行不行啊,还是需要别的配置方法啊,大家帮帮我啊,谢谢了