通常是封裝在某一級的接口或者類沒有事務聲明所致
<aop:config>
<aop:pointcut id="systemDaoMethods" expression="execution(* com.unitedbiz.system.dao.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="systemDaoMethods"/>
</aop:config>
申明一下就可以了
<aop:config>
<aop:pointcut id="systemDaoMethods" expression="execution(* com.unitedbiz.system.dao.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="systemDaoMethods"/>
</aop:config>
申明一下就可以了