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

 

posted @ 2019-03-07 23:34  你真的好美  阅读(3922)  评论(0编辑  收藏  举报