<aop:config>
<aop:advisor pointcut="execution(* com.zte..*Service.*(..))"
advice-ref="txAdvice" />
</aop:config>
<tx:advice id="txAdvice">
<tx:attributes>
<tx:method name="*" />
<tx:method name="load*" read-only="false" />
</tx:attributes>
</tx:advice>
--对所有的service起事务提交的作用
本文介绍了一种使用 Spring AOP 和声明式事务管理的方法,通过配置实现了对所有 service 层方法的统一事务控制。
3298

被折叠的 条评论
为什么被折叠?



