<!-- 1. 配置事务管理器 -->
<bean ></property>
</bean>

<!-- 2. 配置事务属性, 需要事务管理器 -->
<tx:advice />
  </tx:attributes>
</tx:advice>

<!-- 3. 配置事务切点, 并把切点和事务属性关联起来 -->
<aop:config>
  <aop:pointcut expression="execution(* com.atguigu.spring.hibernate.service.*.*(..))"  />
</aop:config>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
猜你喜欢
  • 2021-12-24
  • 2021-10-26
  • 2021-11-19
  • 2021-05-28
  • 2021-11-22
  • 2022-12-23
相关资源
相似解决方案