首页 > 代码库 > spring AOP 配置

spring AOP 配置

 

 

<tx:advice id="txAdvice" transaction-manager="transactionManager">        <tx:attributes>            <tx:method name="save*" propagation="REQUIRED" rollback-for="Exception" />            <tx:method name="add*" propagation="REQUIRED" rollback-for="Exception" />            <tx:method name="del*" propagation="REQUIRED" rollback-for="Exception" />            <tx:method name="insert*" propagation="REQUIRED" rollback-for="Exception" />            <tx:method name="update*" propagation="REQUIRED" rollback-for="Exception" />        </tx:attributes>    </tx:advice>    <aop:config>        <aop:advisor advice-ref="txAdvice"            pointcut="execution(* com.ibm.common.generic.service..*.*(..))" />        <aop:advisor advice-ref="txAdvice"            pointcut="execution(* com.ibm.bas.mes.config.service..*.*(..))" />        <aop:advisor advice-ref="txAdvice"            pointcut="execution(* com.ibm.bas.mes.message.service..*.*(..))" />        <aop:advisor advice-ref="txAdvice"            pointcut="execution(* com.ibm.bas.rse.insm.service..*.*(..))" />    </aop:config>

 

spring AOP 配置