解决方法:
1,
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<!-- 事务控制 -->
<tx:annotation-driven transaction-manager="transactionManager" />
2,service层方法上加 @Transactional
解决方法:
1,
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<!-- 事务控制 -->
<tx:annotation-driven transaction-manager="transactionManager" />
2,service层方法上加 @Transactional