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>