采用基于XML方式配置事务

32     <!-- 使用xml配置事务 -->
33 <aop:config>
34 <aop:pointcut id="transactionpointcut" expression="execution(* cn.itcast.service..*.*(..))" />
35 <aop:advisor advice-ref="txAdvice" pointcut-ref="transactionpointcut" />
36 </aop:config>
37 <tx:advice id="txAdvice" transaction-manager="txManager">
38 <tx:attributes>
39 <tx:method name="get*" read-only="true" propagation="NOT_SUPPORTED" />
40 <tx:method name="*" />
41 </tx:attributes>
42 </tx:advice>

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念