- 检查事务配置
- 检查 mybatis 配置文件扫描路径是否正确
<!-- 自动扫描 --> <context:component-scan base-package="com.sharevip.dao" />
- 检查是否添加
<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" />
检查是否在service 层添加 注解
@Transactional
2024-02-15 21:36:58
<!-- 自动扫描 --> <context:component-scan base-package="com.sharevip.dao" />
<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" />
检查是否在service 层添加 注解
@Transactional