1. 程式人生 > >will not be managed by Spring/ [managed: 15; max: 15]

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

ase tis scan contex rev not ger context tran

  1. 檢查事務配置
  2. 檢查 mybatis 配置文件掃描路徑是否正確
<!-- 自動掃描 -->
<context:component-scan base-package="com.sharevip.dao" />
  1. 檢查是否添加
  <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" />
檢查是否在service 層添加 註解
@Transactional

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