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

 

转载于:https://www.cnblogs.com/laxilo/p/10493367.html

你可能感兴趣的:(will not be managed by Spring/ [managed: 15; max: 15])