<tx:advice id="txAdvice" transaction-manager="transactionManager">
        <tx:attributes>
            <tx:method name="save*" propagation="REQUIRED" />
            <tx:method name="delete*" propagation="REQUIRED" />
            <tx:method name="update*" propagation="REQUIRED" />
            <tx:method name="get*" read-only="true" propagation="NOT_SUPPORTED" />
            <tx:method name="find*" read-only="true" propagation="NOT_SUPPORTED" />
        </tx:attributes>
    </tx:advice>

    <aop:config>
        <aop:pointcut id="memberDaoCut" expression="bean(memberDao)" />
        <aop:advisor pointcut-ref="memberDaoCut" advice-ref="txAdvice" />
    </aop:config>

 

相关文章:

  • 2021-09-01
  • 2022-01-10
  • 2021-08-31
  • 2021-07-09
猜你喜欢
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2021-11-18
  • 2022-01-07
  • 2022-02-12
  • 2021-06-04
相关资源
相似解决方案