加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

采用基于XML方式配置事务

发布时间:2020-12-15 22:48:16 所属栏目:百科 来源:网络整理
导读: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 i
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>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读