will not be managed by Spring/ [managed: 15; max: 15]

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

猜你喜欢

转载自www.cnblogs.com/laxilo/p/10493367.html